Muted no mutea D: [Ayuda]
#3

Prueba asн:

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(PlayerInfo[playerid][Muted] == 1)  // Si estб muteado
    {
        PlayerInfo[playerid][MuteWarnings]++; // Incrementa las advertencias
        new string[128];
        if(PlayerInfo[playerid][MuteWarnings] < ServerInfo[MaxMuteWarnings]) { // Si todavнa no llego al lнmite de advertencias
            format(string, sizeof(string),"CUIDADO: Estбs muteado, si continuas hablando serбs kickeado. (%d / %d)", PlayerInfo[playerid][MuteWarnings], ServerInfo[MaxMuteWarnings] );
            SendClientMessage(playerid,red,string);
        } else { // Si llego al lнmite de advertencias
            SendClientMessage(playerid,red,"Has sido advertido ! Ahora has sido kickeado");
            format(string, sizeof(string),"***%s [%d] ha sido Kickeado por exceder las muteadas", PlayerName2(playerid), playerid);
            SendClientMessageToAll(red,string);
            SaveToFile("KickLog",string); Kick(playerid);
        }
    }  
    return 0; // Ingora el texto por defecto
}
EDIT:

Para introducir cуdigo PAWN no uses el [ php] [/ php] (Sin espacios), usa [ pawn] [/pawn] (Sin espacios).
Reply


Messages In This Thread
Muted no mutea D: [Ayuda] - by Zodiaco - 19.07.2014, 03:21
Respuesta: Muted no mutea D: [Ayuda] - by Juance - 19.07.2014, 03:29
Respuesta: Muted no mutea D: [Ayuda] - by Scope25 - 19.07.2014, 03:31
Respuesta: Muted no mutea D: [Ayuda] - by Juance - 19.07.2014, 03:34

Forum Jump:


Users browsing this thread: 1 Guest(s)