Ко всем forward
Код: Выделить всё
forward Anticheat();
Ко всем public или в конец мода
Код: Выделить всё
public Anticheat()
{
for(new i=GetMaxPlayers(); i!=0; )
{
i--;
if(IsPlayerConnected(i) && (GetSpeedKM(i) > 260))
{
SendClientMessage(i, 0xAFAFAFAA, "Вы кикнуты за Speedhack");
Kick(i);
}
}
}
в public OnGameModeInit
Код: Выделить всё
SetTimer("Anticheat",2000,1);