19.05.2009, 21:19
There's a problem with that command anyway, the way you have it set up is a player can type
"/oocbacon cheese"
and it would say "((OOC: SilentHuntR:cheese ))"
try this
"/oocbacon cheese"
and it would say "((OOC: SilentHuntR:cheese ))"
try this
pawn Код:
if(!strcmp(cmdtext,"/ooc ",true,5)||!strcmp(cmdtext,"/o ",true,3))
{
new find = strfind(cmdtext," ",true);
if(!cmdtext[find+1])return SendClientMessage(playerid, COLOR_RED, "Right Usage: \"/occ\" or \"/o\" [text]");
new string[256]; //bite me
GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"((OOC: %s:%s ))", string, cmdtext[find+1]);
return SendClientMessageToAll(COLOR_OOC, string);
}

