21.07.2010, 06:38
A little Bug fix. The bug is, that when you type /occ this would pop up. "((Ooc: Emanuel_Rodriguez)" it would say this when you just type /occ "USAGE: /ooc [message]". So here you go and have fun with it!
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/ooc", true, 4))
{
if(!cmdtext[4])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /ooc [message]");
new str[256], pname[256];
GetPlayerName(playerid, pname, 256);
format(str, 256, "(( Ooc: %s:%s ))", pname, cmdtext[4]);
SendClientMessageToAll(COLOR_BLUE, str);
return 1;
}
return 0;
}