10.10.2011, 12:45
pawn Код:
CMD:ooc(playerid, params[])
{
new OOCT[126];
new string[246];
if(sscanf(params, "s[126]", OOCT)) return SendClientMessage(playerid, COLOR_RED, "USE: /ooc [message]");
if(ooc == 0)
{
return SendClientMessage(playerid, COLOR_GREY, "The OOC channel is closed!");
}
else
{
format(string, sizeof(string), "(( OOC: %s: %s ))", pName(playerid), OOCT);
SendClientMessageToAll(COLOR_GREY, string);
print(string);
return 1;
}
return 1;
}