Give - health when car collides
#2

Код:
new Float:health;
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	new playerstate = GetPlayerState(playerid);
	if (playerstate == PLAYER_STATE_ONFOOT)
	GetPlayerHealth(playerid, health);
	
	
	SetPlayerHealth(playerid, 100);
	return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
   SetPlayerHealth(playerid, health);
	return 1;
}
+Rep me if I helped you.
Reply


Messages In This Thread
[SOLVED - Give - health when car collides] (solved code in last post) - by Jstylezzz - 11.07.2012, 15:07
Re: Give - health when car collides - by Captain_Mani - 11.07.2012, 16:33
Re: Give - health when car collides - by clarencecuzz - 11.07.2012, 16:36
Re: Give - health when car collides - by Andregood - 11.07.2012, 16:39
Re: Give - health when car collides - by clarencecuzz - 11.07.2012, 16:43
Re: Give - health when car collides - by Jstylezzz - 11.07.2012, 17:09

Forum Jump:


Users browsing this thread: 1 Guest(s)