diff --git a/changelog.txt b/changelog.txt index e104cbd..2ee89ce 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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). diff --git a/src/zombiereloaded.sp b/src/zombiereloaded.sp index 5058800..ae81bd4 100644 --- a/src/zombiereloaded.sp +++ b/src/zombiereloaded.sp @@ -15,7 +15,7 @@ #undef REQUIRE_PLUGIN #include -#define VERSION "2.5.1.11" +#define VERSION "2.5.1.12" #include "zr/zombiereloaded" #include "zr/global" diff --git a/src/zr/commands.inc b/src/zr/commands.inc index 64d4ff3..f081f2f 100644 --- a/src/zr/commands.inc +++ b/src/zr/commands.inc @@ -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 "); 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 "); 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 "); 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 "); return Plugin_Handled; } } diff --git a/src/zr/offsets.inc b/src/zr/offsets.inc index 3cf8cb1..1b4ee32 100644 --- a/src/zr/offsets.inc +++ b/src/zr/offsets.inc @@ -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[])