14.09.2018, 15:02
Hey I was trying this command processor, but I've added this
and it isn't sending me a message about unkown cmds.
Thanks in advance!
PHP код:
public OnPlayerCommandPerformed(playerid, cmd[], params[], result, flags){
if(P[playerid][Logged] == false)return 1;
if(P[playerid][IsSpawned] == false)return 1;
if(result == -1) {
SendClientMessage(playerid, 0xff0000ff, "*SERVER {ffffff}Unknown command. Please refer to /help");
return 0;
}
return 1;
}
Thanks in advance!