14.02.2017, 12:26
I've done it like that. All that code in 1s timer with player loop.
You can also do it without warnings, just kick for first time, but player for example can be pushed by vehicle so warning method is better.
Code:
if(pInfo[playerid][player_freeze] > 0) { if(GetPlayerSpeed(playerid) > 2) { pInfo[playerid][player_cheat_warns]++; } } if( pInfo[playerid][player_cheat_warns]>3) { Kick(playerid); continue; }