EMT Heal Command Need Help
#1

Код:
		//------------------------------------------EMT AFTER DEATH COMMAND------------------------------------------//
		if(strcmp(cmd, "/EMT", true) == 0)
		{
    	 if (PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
		 {
    	 SetPlayerHealth(playerid, 100.0);
     	KillTimer(deadt[playerid]);
     	PlayerInfo[playerid][pDeaths] = 0;
     	SetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
	 	SetPlayerInterior(playerid, DeadInt[playerid]);
	 	SetPlayerVirtualWorld(playerid, DeadWorld[playerid]);
     	SetCameraBehindPlayer(playerid);
     	TogglePlayerControllable(playerid, 1);
     	ClearChatbox(playerid, 10);
     	SendClientMessage(playerid, COLOR_GRAD1, "   You admin healed yourself");
    	 }
	 	return 1;
		}
		//-----------------------------------------------------------------------------------------------------------//
i need it to have a distance between player and get the players id or name
Reply
#2

some one please help
Reply
#3

what do you mean by distance between player?

and as for the get name try this

Quote:

new pname[MAX_PLAYER_NAME];
string[128];
GetPlayerName(playerid,pname,sizeof(pname));
format(string,sizeof(string),"Player %s died",pname);

is that what you mean?
Reply
#4

Original This Is a admin command to heal them self but the medics dont have a command so i wanna make a duplicate
command that the medics can heal the dead guy on the ground
Reply
#5

help please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)