05.01.2013, 16:34
use a simple variable.
E.g:
Then in case of false login add
Add this under OnPlayerConnect to avoid bugs
E.g:
pawn Код:
new Warns[MAX_PLAYERS];
pawn Код:
Warns[playerid] ++;
if(Warns[playerid] =< 3)return SendClientMessage(playerid, -1, "3 false attempts will get you kicked");
if(Warns[playerid] == 3)return Kick(playerid);
pawn Код:
Warns[playerid] =0;