24.05.2010, 16:39
Limpar chat
no public onplayercommand
no onplayertext
no public onplayercommand
pawn Code:
if(strcmp(cmdtext,"/limparchat", true) == 0)
{
if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 1337)
for(new a = 0; a < 100; a++)
{
SendClientMessageToAll(0xFFFFFFFF, " ");
}
return 1;
}
pawn Code:
if(strfind(text, "189.", true) != -1 || strfind(text, "201.", true) != -1 || strfind(text, "200.", true) != -1 || strfind(text, "69.", true) != -1 || strfind(text, "187.", true) != -1){
SendClientMessage(playerid,COLOR_LIGHTRED,"Desculpe mais aki nao tem divulgaзao xD! ;)");
format(string, sizeof(string), "~%s levou kick automбtico. Motivo: Aki ninguem divulga!" ,PlayerNamex(playerid));
SendClientMessageToAll(COLOR_LIGHTRED, string);
Kick(playerid);
return 0;