31.05.2010, 14:59
pawn Код:
if(strcmp(cmd, "/o", true) == 0)
{
strmid(tmp, cmdtext, 3, strlen(cmdtext));
if(!strlen(tmp))
{
SendClientMessage(playerid,COLOR_RED,"USAGE: /o [message]");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string),"(([OOC] [%s]: %s ))",sendername,tmp);
SendClientMessageToAll(COLOR_LIGHTBLUE,string);
print(string);
return 1;
}