15.02.2012, 12:04
I cannot use any other administration commands, only makeadmin since it needs rcon to work....
and here is the other command.
and here is the other command.
Code:
CMD:sethp(playerid, params[]) { new id, hp, sendername[MAX_PLAYER_NAME], string[128]; if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command."); else if(sscanf(params,"ui", id, hp)) return SCM(playerid, COLOR_GREY,"USAGE: /sethp [playerid/partofname] [ammount]"); else if(!IsPlayerConnected(id)) return SCM(playerid, COLOR_RED,"Invalid player ID."); else { SetPlayerHealth(id, hp); format(string, sizeof(string),"Your Health Has Been Set To %i By Administrator %s", hp, sendername); SendClientMessage(id, COLOR_GREEN, string); } return 1; }