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
|
2008.11.13 - 2.5.1.11 - Richard
|
||||||
* ZSpawn fix confirmed.
|
* ZSpawn fix confirmed.
|
||||||
* Added debug messages on OnPlayerDisconnect and PlayerDeath. (zr_debug must be 2, might spam the console).
|
* Added debug messages on OnPlayerDisconnect and PlayerDeath. (zr_debug must be 2, might spam the console).
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#undef REQUIRE_PLUGIN
|
#undef REQUIRE_PLUGIN
|
||||||
#include <market>
|
#include <market>
|
||||||
|
|
||||||
#define VERSION "2.5.1.11"
|
#define VERSION "2.5.1.12"
|
||||||
|
|
||||||
#include "zr/zombiereloaded"
|
#include "zr/zombiereloaded"
|
||||||
#include "zr/global"
|
#include "zr/global"
|
||||||
|
@ -135,12 +135,12 @@ public Action:Command_SetClassKnockback(client, argc)
|
|||||||
{
|
{
|
||||||
if (client == 0)
|
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;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
else
|
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;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -179,12 +179,12 @@ public Action:Command_GetClassKnockback(client, argc)
|
|||||||
{
|
{
|
||||||
if (client == 0)
|
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;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
else
|
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;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,9 +20,9 @@ new offsBuyZone;
|
|||||||
new offsColor;
|
new offsColor;
|
||||||
new offsRender;
|
new offsRender;
|
||||||
|
|
||||||
new Handle:hGameConf = INVALID_HANDLE;
|
new Handle:g_hGameConf = INVALID_HANDLE;
|
||||||
new Handle:hRemoveAllItems = INVALID_HANDLE;
|
new Handle:g_hRemoveAllItems = INVALID_HANDLE;
|
||||||
new Handle:hTerminateRound = INVALID_HANDLE;
|
new Handle:g_hTerminateRound = INVALID_HANDLE;
|
||||||
|
|
||||||
FindOffsets()
|
FindOffsets()
|
||||||
{
|
{
|
||||||
@ -105,17 +105,17 @@ FindOffsets()
|
|||||||
|
|
||||||
SetupGameData()
|
SetupGameData()
|
||||||
{
|
{
|
||||||
hGameConf = LoadGameConfigFile("plugin.zombiereloaded");
|
g_hGameConf = LoadGameConfigFile("plugin.zombiereloaded");
|
||||||
|
|
||||||
StartPrepSDKCall(SDKCall_Player);
|
StartPrepSDKCall(SDKCall_Player);
|
||||||
PrepSDKCall_SetFromConf(hGameConf, SDKConf_Virtual, "RemoveAllItems");
|
PrepSDKCall_SetFromConf(g_hGameConf, SDKConf_Virtual, "RemoveAllItems");
|
||||||
hRemoveAllItems = EndPrepSDKCall();
|
g_hRemoveAllItems = EndPrepSDKCall();
|
||||||
|
|
||||||
StartPrepSDKCall(SDKCall_GameRules);
|
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_Float, SDKPass_Plain);
|
||||||
PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_Plain);
|
PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_Plain);
|
||||||
hTerminateRound = EndPrepSDKCall();
|
g_hTerminateRound = EndPrepSDKCall();
|
||||||
}
|
}
|
||||||
|
|
||||||
SetPlayerVelocity(client, const Float:vec[3])
|
SetPlayerVelocity(client, const Float:vec[3])
|
||||||
@ -187,12 +187,13 @@ AddPlayerDeath(client, amount)
|
|||||||
|
|
||||||
RemoveAllPlayersWeapons(client)
|
RemoveAllPlayersWeapons(client)
|
||||||
{
|
{
|
||||||
SDKCall(hRemoveAllItems, client);
|
SDKCall(g_hRemoveAllItems, client);
|
||||||
}
|
}
|
||||||
|
|
||||||
TerminateRound(Float:delay, reason)
|
TerminateRound(Float:delay, reason)
|
||||||
{
|
{
|
||||||
SDKCall(hTerminateRound, delay, reason);
|
if (g_hTerminateRound == INVALID_HANDLE) return;
|
||||||
|
SDKCall(g_hTerminateRound, delay, reason);
|
||||||
}
|
}
|
||||||
|
|
||||||
SetPlayerModel(client, const String:model[])
|
SetPlayerModel(client, const String:model[])
|
||||||
|
Loading…
Reference in New Issue
Block a user