22.06.2012, 06:56
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
else
{
new string[150];
format(string, sizeof(string), "Error: The command %s is unknown", cmdtext);
xPlayerPlaySound( playerid, 31202);
return SendClientMessage(playerid, -1, string);
}
}