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

Quote:
Originally Posted by Last_Stand_Guardian
Try:
Quote:
Originally Posted by Memoryz
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  new Float:health;
  GetVehicleHealth(vehicleid, health);
  if(health < 650) SetPlayerDrunkLevel (playerid, 50000);
  return 1;
}
This works perfectly, thanks.

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)