Please help me for /sethealth
#7

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;
}
Reply


Messages In This Thread
Please help me for /sethealth - by rashidkhoso37 - 21.09.2014, 06:23
Re: Please help me for /sethealth - by Ricagor - 21.09.2014, 06:28
Re: Please help me for /sethealth - by rashidkhoso37 - 21.09.2014, 06:34
Re: Please help me for /sethealth - by durd2001 - 21.09.2014, 06:52
Re: Please help me for /sethealth - by DobbysGamertag - 21.09.2014, 07:03
Re: Please help me for /sethealth - by Ricagor - 21.09.2014, 07:15
Re: Please help me for /sethealth - by mirza1221 - 21.09.2014, 07:15
Re: Please help me for /sethealth - by Ricagor - 21.09.2014, 07:18
Re: Please help me for /sethealth - by Ox1gEN - 21.09.2014, 07:34
Re: Please help me for /sethealth - by M0HAMMAD - 21.09.2014, 07:35

Forum Jump:


Users browsing this thread: 1 Guest(s)