02.04.2013, 19:40
If you want it to say SERVER: Unkown Command, use this code.
and make sure you are putting return 1; at the end of each command and formatting them properly
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) SendClientMessage(playerid, COLOR_WHITE, "SERVER: Unknown command.");
return 1;
}
pawn Код:
#define COLOR_WHITE 0xFFFFFFAA