21.09.2014, 07:15
Like this, or ? xd
Код:
CMD:sethp(playerid,params[]) { if(PlayerInfo[playerid][pAdmin] >= 1)//Change it to rcon if u want to { new playa;//id of the player if(sscanf(params,"u",playa)) return SCM(playerid, -1, "/sethp [ID/Name]"); if(!IsPlayerConnected(playa)) return SCM(playerid,-1,"Player is not on server"); SetPlayerHealth(playa, 100);//Sets player's health to 100 format(string, sizeof(string), "Admin %s healded u", GetName(playerid)); SendClientMessage(playa, -1, string); format(string, sizeof(string), "You healded %s", GetName(playa)); SendClientMessage(playerid, -1, string); } else { SCM(playerid,-1,"Only Admins"); } return 1; }