Quote:
Originally Posted by (*|Flake|*)
pawn Код:
CMD:say(playerid, params[]) { if(PlayerStat[playerid][AdminLevel] >= 4) //If the players admin level is 4 { new str[256]; //Defining the string that'll act as your message if(sscanf(params, "s", str)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Usage: /Say [Global Text]"); format(str, 256, "Server: %s", params); SendClientMessageToAll(-1, str); } else SendClientMessage(playerid, "You're not a high enough.. blah blah"); return 1; }
Haven't tested it but it should work..
|
Your SendClientMessage is wrong..
replace with:
SendClientMessage(playerid, COLOR_LIGHTRED, "You're not a high enough.. blah blah");