If the vehicle health lower than 250, remove the player
#4

Maybe something like that?
Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
	if(newstate == PLAYER_STATE_DRIVER)
	{
		new Float:Health;
		GetVehicleHealth(GetPlayerVehicleID(playerid),Health);
		if(Health < 300.0)
		{
			new Float:X;
			new Float:Y;
			new Float:Z;
			GetPlayerPos(playerid,X,Y,Z);
			SetPlayerPos(playerid,X,Y,Z);
		}
		return 1;
	}
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)