Applied game rules not available fix by Grey Echo.
This commit is contained in:
parent
c28343fc20
commit
c49fcb2142
@ -1,3 +1,6 @@
|
||||
2008.11.16 - 2.5.1.12 - Richard
|
||||
* Applied game rules not available fix from Grey Echo.
|
||||
|
||||
2008.11.13 - 2.5.1.11 - Richard
|
||||
* ZSpawn fix confirmed.
|
||||
* Added debug messages on OnPlayerDisconnect and PlayerDeath. (zr_debug must be 2, might spam the console).
|
||||
|
@ -15,7 +15,7 @@
|
||||
#undef REQUIRE_PLUGIN
|
||||
#include <market>
|
||||
|
||||
#define VERSION "2.5.1.11"
|
||||
#define VERSION "2.5.1.12"
|
||||
|
||||
#include "zr/zombiereloaded"
|
||||
#include "zr/global"
|
||||
|
@ -135,12 +135,12 @@ public Action:Command_SetClassKnockback(client, argc)
|
||||
{
|
||||
if (client == 0)
|
||||
{
|
||||
PrintToServer("Sets the specified class knockback. Usage: zr_set_class_knockback classname value");
|
||||
PrintToServer("Sets the specified class knockback. Usage: zr_set_class_knockback <classname> <knockback>");
|
||||
return Plugin_Handled;
|
||||
}
|
||||
else
|
||||
{
|
||||
PrintToConsole(client, "Sets the specified class knockback. Usage: zr_set_class_knockback classname value");
|
||||
PrintToConsole(client, "Sets the specified class knockback. Usage: zr_set_class_knockback <classname> <knockback>");
|
||||
return Plugin_Handled;
|
||||
}
|
||||
}
|
||||
@ -179,12 +179,12 @@ public Action:Command_GetClassKnockback(client, argc)
|
||||
{
|
||||
if (client == 0)
|
||||
{
|
||||
PrintToServer("Gets the specified class knockback. Usage: zr_get_class_knockback classname");
|
||||
PrintToServer("Gets the specified class knockback. Usage: zr_get_class_knockback <classname>");
|
||||
return Plugin_Handled;
|
||||
}
|
||||
else
|
||||
{
|
||||
PrintToConsole(client, "Gets the specified class knockback. Usage: zr_get_class_knockback classname");
|
||||
PrintToConsole(client, "Gets the specified class knockback. Usage: zr_get_class_knockback <classname>");
|
||||
return Plugin_Handled;
|
||||
}
|
||||
}
|
||||
|
@ -20,9 +20,9 @@ new offsBuyZone;
|
||||
new offsColor;
|
||||
new offsRender;
|
||||
|
||||
new Handle:hGameConf = INVALID_HANDLE;
|
||||
new Handle:hRemoveAllItems = INVALID_HANDLE;
|
||||
new Handle:hTerminateRound = INVALID_HANDLE;
|
||||
new Handle:g_hGameConf = INVALID_HANDLE;
|
||||
new Handle:g_hRemoveAllItems = INVALID_HANDLE;
|
||||
new Handle:g_hTerminateRound = INVALID_HANDLE;
|
||||
|
||||
FindOffsets()
|
||||
{
|
||||
@ -105,17 +105,17 @@ FindOffsets()
|
||||
|
||||
SetupGameData()
|
||||
{
|
||||
hGameConf = LoadGameConfigFile("plugin.zombiereloaded");
|
||||
g_hGameConf = LoadGameConfigFile("plugin.zombiereloaded");
|
||||
|
||||
StartPrepSDKCall(SDKCall_Player);
|
||||
PrepSDKCall_SetFromConf(hGameConf, SDKConf_Virtual, "RemoveAllItems");
|
||||
hRemoveAllItems = EndPrepSDKCall();
|
||||
PrepSDKCall_SetFromConf(g_hGameConf, SDKConf_Virtual, "RemoveAllItems");
|
||||
g_hRemoveAllItems = EndPrepSDKCall();
|
||||
|
||||
StartPrepSDKCall(SDKCall_GameRules);
|
||||
PrepSDKCall_SetFromConf(hGameConf, SDKConf_Signature, "TerminateRound");
|
||||
PrepSDKCall_SetFromConf(g_hGameConf, SDKConf_Signature, "TerminateRound");
|
||||
PrepSDKCall_AddParameter(SDKType_Float, SDKPass_Plain);
|
||||
PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_Plain);
|
||||
hTerminateRound = EndPrepSDKCall();
|
||||
g_hTerminateRound = EndPrepSDKCall();
|
||||
}
|
||||
|
||||
SetPlayerVelocity(client, const Float:vec[3])
|
||||
@ -187,12 +187,13 @@ AddPlayerDeath(client, amount)
|
||||
|
||||
RemoveAllPlayersWeapons(client)
|
||||
{
|
||||
SDKCall(hRemoveAllItems, client);
|
||||
SDKCall(g_hRemoveAllItems, client);
|
||||
}
|
||||
|
||||
TerminateRound(Float:delay, reason)
|
||||
{
|
||||
SDKCall(hTerminateRound, delay, reason);
|
||||
if (g_hTerminateRound == INVALID_HANDLE) return;
|
||||
SDKCall(g_hTerminateRound, delay, reason);
|
||||
}
|
||||
|
||||
SetPlayerModel(client, const String:model[])
|
||||
|
Loading…
Reference in New Issue
Block a user