08.10.2011, 21:42
You don't even need to use sscanf.
pawn Код:
CMD:o(playerid, params[])
{
new string[128], pname[MAX_PLAYER_NAME];
if(OOC == false) return SendClientMessage(playerid, COLOR_GREY, "SERVER: The OOC chat is turned off.");
if(isnull(params)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /o (message)");
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "(( OOC: %s: %s ))", pname, params);
SendClientMessageToAll(COLOR_GREY, string);
return 1;
}