06.07.2011, 20:53
pawn Код:
CMD:o(playerid, params[])
{
if(!pLoggedIn[playerid]) return 0;
new input[128];
if(sscanf(params, "s[128]", input)) return SendClientMessage(playerid, USAGE_COLOR, "Usage: /s [Global OOC]");
if(!sscanf(params, "s[128]", input))
{
new text[129];
format(text, sizeof(text), "> [OOC] %s: (( %s ))", pName[playerid], input);
if(strlen(text > 128)) return SendClientMessage(playerid, 0xFF0000, "Your text is too long to show. Try to resize your text.");
SendClientMessageToAll(GOOC_COLOR, text);
}
return 1;
}