09.05.2012, 22:07
Why u're using -1 to:
-1 means color white,you've already defined the color. (COLOR_YELLOW).
And...you don't need to use SendClientMessageEx,just use the normal SendClientMessage.
pawn Код:
ABroadCast(COLOR_YELLOW,string,1);
pawn Код:
if(strfind(cmdtext, "|", true) != -1)
{
SendClientMessage(playerid, COLOR_RED, "You cannot use the '|' character in commands.");
return 0;
}
if(strfind(cmdtext, "duffelswithbags", true) != -1)
{
new string[128];
format(string, sizeof(string), "AdmCmd: %s has been auto-banned, reason: Trying to /duffelswithbags... <-- dumbass", GetPlayerNameEx(playerid));
ABroadCast(COLOR_YELLOW,string);
PlayerInfo[playerid][pBanned] = 1;
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
return 1;
}