If vehicle health is lower than 500 set player drunk level.
#6

Quote:
Originally Posted by johnathon956
you could do this to make it so your not drunk on exiting the vehicle

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  new Float:health;
  GetVehicleHealth(vehicleid, health);
  if(health < 650) SetPlayerDrunkLevel (playerid, 50000);
  return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
    SetPlayerDrunkLevel (playerid, 0);
        return 1;
}
I already have that.

Quote:
Originally Posted by Me
How can I check that the if the person is a passenger, it doesn't set their drunklevel to 50,000 ?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)