change kick system to warn system.
#2

pawn Код:
new CBugWarns[MAX_PLAYERS];


OnPlayerConnects(playerid)
{
         CBugWarns[playerid] = 0;
         return 1;
}



public OnPlayerCBug(playerid) {
    CBugWarns[playerid] += 1;
   
    if(CBugWarns[playerid] == 3){
    Kick(playerid);
    //optional messages
    }
    return 1;
}
Something like that. You store the warnings in a var and every time you detect the player C-bugging you add 1 to it. Once it hits 3 warnins, or any other amount you wish, it'll kick the player.
Reply


Messages In This Thread
change kick system to warn system. - by Champ - 14.07.2013, 12:27
Re: change kick system to warn system. - by Mado - 14.07.2013, 12:32
Re: change kick system to warn system. - by Champ - 14.07.2013, 12:39
Respuesta: change kick system to warn system. - by Xabi - 14.07.2013, 12:40
Re: change kick system to warn system. - by Mado - 14.07.2013, 12:44

Forum Jump:


Users browsing this thread: 1 Guest(s)