[HELP ME] /warn command
#9

Quote:
Originally Posted by pds2k12
Посмотреть сообщение
I made you a very basic, warn system, maybe you could finish it

pawn Код:
new
    Warn[MAX_PLAYERS];

CMD:warn( playerid, params[ ] )
{
    new targetid;
    if( sscanf( params, "u",targetid ) )
        return SendClientMessage( playerid, -1, "Usage: /warn [PlayerName/ID]" );

    Warn[targetid] ++;
    return true;
}

public OnPlayerUpdate((playerid)
{
    if(Warns[playerid] >= 3)
        return Kick(playerid); //kicking the player if he reaches 3 or more warning
    return true;
}
Why would you check if the player has 3 warnings OnPlayerUpdate when the only way for them to get warnings is through the warn command?
Reply


Messages In This Thread
[HELP ME] /warn command - by jdog105 - 28.10.2013, 23:01
Re: [HELP ME] /warn command - by Patrick - 28.10.2013, 23:07
Re: [HELP ME] /warn command - by DStreet - 28.10.2013, 23:20
Re: [HELP ME] /warn command - by jdog105 - 28.10.2013, 23:30
Re: [HELP ME] /warn command - by jdog105 - 28.10.2013, 23:36
Re: [HELP ME] /warn command - by SAMProductions - 29.10.2013, 02:45
Re: [HELP ME] /warn command - by jdog105 - 30.10.2013, 18:41
Re: [HELP ME] /warn command - by Areax - 30.10.2013, 20:35
Re: [HELP ME] /warn command - by KingHual - 30.10.2013, 20:42
Re: [HELP ME] /warn command - by AnonScripter - 30.10.2013, 23:14

Forum Jump:


Users browsing this thread: 2 Guest(s)