22.01.2017, 19:50
Quote:
thanks,
also, if I were to use 'IsPlayerAdmin' and else/if statements, how would I put it in 'CMD://cmd' is it the same way as 'OnPlayerCommand'? |
PHP код:
//layout 1
CMD:exit(playerid){
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000, "[ERROR]: You are not authorized to use this command");
SendRconCommand("exit");
return 1;
}
//layout 2
CMD:exit(playerid){
if(IsPlayerAdmin(playerid)){
SendRconCommand("exit");
}
else SendClientMessage(playerid, 0xFF0000, "[ERROR]: You are not authorized to use this command");
return 1;
}