Quote:
Originally Posted by FunnyBear
You need the sscanf include, then #include <sscanf> at the top of your script!
pawn Код:
CMD:cm(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 1 ) return SendClientMessage(playerid, -1, "You are not an admin!"); // Change
new text[128];
if(sscanf(params, "s", text)) return SendClientMessage(playerid, -1, "USAGE: /cm [Message]"); new text1[128]; format(text1, sizeof(text1), "Admin %s says: %s", GetName(playerid), text); SendClientMessageToAll(-1, text1); return 1; }
|
He wants the player to talk to the admins, not the admins talk to all players