change kick system to warn system.
#1

I have a cbug system but when player cbug it directly kicks the player without giving any warning. here is the code ↓

pawn Код:
forward OnPlayerCBug(playerid);
public OnPlayerCBug(playerid) {
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    new str2[128];
    format(str2, sizeof(str2), "{F81414}[Anti-Cbug] {FFFFFF}has kicked {F81414}%s {FFFFFF}for Crouch bugging with weapon {F81414}(%s)", playername, aWeaponNames[WeaponID[playerid]]);
    SendClientMessageToAll(COLOR_WHITE, str2);
    CheckCrouch[playerid] = 0;
    Kick(playerid);
    return 1;
}
I have tried to add warning system but it was bugged. Help me in changing this to warning system.
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: 2 Guest(s)