26.07.2014, 11:44
(
Последний раз редактировалось Hanger; 26.07.2014 в 12:46.
)
A little snippet include to protect players from spawn-killing each other with no timers involved. Created this for Scripting Help thread and decided to publish it in a visible place for other kiddos'
Info:
Installation
PASTEBIN LINK
Info:
Код:
/* Spawn protection time in seconds */ #define ANTI_SPAWN_KILL_TIME 10 /* Maximum serverside health - in case you have 99.9 anticheat */ #define MAX_HEALTH 100.00 /* Health to set when player spawns if falling from a high place, player will be killed regardless of this amount */ #define SPAWN_HEALTH 999.99
Код:
Save the document from pastebin; Place it under pawno\includes folder; Rename it to "asp".inc; Add to your script "#include <asp>"; Compile your script;