11.11.2011, 16:46
You need to return 1 inside the command. Return 0 is sent otherwise, and if 0 is sent, SA-MP is told to relay the 'unknown command' message.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/test", cmdtext, true) == 0) {
if(IsPlayerAdmin(playerid)) {
SendClientMessage(playerid, 0xFF00FFFF, "test1");
}
else
{
SendClientMessage(playerid, 0xFF00FFFF, "test2");
}
return 1;
}
return 0;
}