09.07.2012, 07:00
as we know , the bot's have a high ping that's why i'm sharing this simple work
the FS just kick player have more then 1000 ping
the FS just kick player have more then 1000 ping
pawn Код:
#include <a_samp>
forward antibot(playerid);
#pragma tabsize 0
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n-------------------------------------------------");
print(" Anti Bot system ");
print(" by Mr.West");
print("--------------------------------------------------\n");
return 1;
}
#else
#endif
public antibot(playerid)
{
if(GetPlayerPing(playerid) > 1000)
SendClientMessage(playerid,-1 ,"you have been kicked , you can be a Bot!");
Kick(playerid);
}