Need Small Help
#2

use a simple variable.
E.g:
pawn Код:
new Warns[MAX_PLAYERS];
Then in case of false login add
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);
Add this under OnPlayerConnect to avoid bugs
pawn Код:
Warns[playerid] =0;
Reply


Messages In This Thread
Need Small Help - by sscarface - 05.01.2013, 16:24
Re: Need Small Help - by DaRk_RaiN - 05.01.2013, 16:34
Re: Need Small Help - by sscarface - 05.01.2013, 16:38

Forum Jump:


Users browsing this thread: 1 Guest(s)