Need Small help Rep + - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need Small help Rep + (
/showthread.php?tid=572448)
Need Small help Rep + -
MBilal - 28.04.2015
Hello Everyone this is anti fake kill code
Код:
if(gettime() - GetPVarInt(playerid,"PlayerLastDeath") < 1) Ban(playerid);
SetPVarInt(playerid,"PlayerLastDeath",gettime());
its giving some problem banning some time innocent Players.
Re: Need Small help Rep + -
Sithis - 28.04.2015
Simple: do not ban automatically but spectate the suspicious player.
Re: Need Small help Rep + -
HydraHumza - 28.04.2015
just change it to MessageToAdmins and check urself
Re: Need Small help Rep + -
Shaktimaan - 28.04.2015
Just do it like this
create a variable and count the number of admins which are online.
now place some codes that if no admin is present then server will kick the player and if 1 admin is present then server will send a adminmessage to the admin