19.07.2014, 03:31
Prueba asн:
EDIT:
Para introducir cуdigo PAWN no uses el [ php] [/ php] (Sin espacios), usa [ pawn] [/pawn] (Sin espacios).
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
}
Para introducir cуdigo PAWN no uses el [ php] [/ php] (Sin espacios), usa [ pawn] [/pawn] (Sin espacios).