mute cmd help
#10

pawn Код:
public OnPlayerText(playerid, text[])
{
    if ( PlayerInfo[ playerid ][ Muted ] == 1 )
    {
        FormatMSG( playerid, COLOR_ULTRARED, "You are muted, if you continue to speak you will be kicked. ({33CCFF}%d{FF0000}/5)", PlayerInfo[ playerid ][ MuteWarnings ] );
        PlayerInfo[ playerid ][ MuteWarnings ]++;
        return 0;
    }
    if ( PlayerInfo[ playerid ][ MuteWarnings ] > 5 ) // If you players got warned
    {
        SendClientMessage( playerid, COLOR_ULTRARED, "You have been warned! Now you have been kicked" );
        FormatLog( "KickLog", "*** %s(%d) have been auto-kicked. Reason: Exceding max mute warnings !", PlayerName( playerid ), playerid );
        Kick( playerid );
        return 0;
    }
    return 1;
}
Reply


Messages In This Thread
mute cmd help - by Dangjai - 04.10.2014, 22:23
Respuesta: mute cmd help - by !R1Ch@rD! - 04.10.2014, 22:32
Re: Respuesta: mute cmd help - by Dangjai - 04.10.2014, 22:42
Respuesta: Re: Respuesta: mute cmd help - by !R1Ch@rD! - 04.10.2014, 22:43
Re: Respuesta: Re: Respuesta: mute cmd help - by Dangjai - 04.10.2014, 22:47
Respuesta: Re: Respuesta: Re: Respuesta: mute cmd help - by !R1Ch@rD! - 04.10.2014, 22:51
Re: mute cmd help - by Dangjai - 04.10.2014, 22:55
Respuesta: mute cmd help - by !R1Ch@rD! - 04.10.2014, 23:00
Re: mute cmd help - by Dangjai - 04.10.2014, 23:08
Re: mute cmd help - by MasonSFW - 05.10.2014, 01:24

Forum Jump:


Users browsing this thread: 3 Guest(s)