Count. /kick & /ban.
#2

pawn Код:
new KickAndBans = 0;
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    if (reason == 2) { KickAndBans += 1; }
    return 1;
}
pawn Код:
stock DisplayKickAndBans(playerid)
{
    new string[64];
    format(string, sizeof(string), "There has been %i kick and bans", KickAndBans);
    SendClientMessage(playerid, 0xFFFFFFFF, string);
    return 1;
}
Althought you can make separate variables, one for bans and other for kicks, this one counts both in one.
Reply


Messages In This Thread
Count. /kick & /ban. - by iGetty - 27.02.2011, 02:34
Re: Count. /kick & /ban. - by admantis - 27.02.2011, 03:27
Re: Count. /kick & /ban. - by iGetty - 27.02.2011, 05:21
Re: Count. /kick & /ban. - by grand.Theft.Otto - 02.03.2011, 21:10
Re: Count. /kick & /ban. - by Lorrden - 02.03.2011, 21:18
Re: Count. /kick & /ban. - by admantis - 02.03.2011, 21:29
Re: Count. /kick & /ban. - by [NRP]Blade - 02.03.2011, 21:31
Re: Count. /kick & /ban. - by iGetty - 02.03.2011, 21:54
Re: Count. /kick & /ban. - by [NRP]Blade - 02.03.2011, 21:59
Re: Count. /kick & /ban. - by Lorrden - 02.03.2011, 22:22

Forum Jump:


Users browsing this thread: 1 Guest(s)