12.02.2011, 14:55
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
SetPVarInt(playerid, "Cmds", GetPVarInt(playerid, "Cmds") + 1);
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
new string[128];
format(string,sizeof(string),"Command typed: %d",GetPVarInt(playerid, "Cmds"));
SendClientMessage(playerid,color,string);
return 1;
}
return 0;
}