[Question] speedometer
#4

some functions you will need:
pawn Код:
GetVehicleVelocity
GetVehicleModel(GetPlayerVehicleID(playerid) );
GetVehicleHealth
TextDrawCreator ( this is not function) ..search for Zamaroht's Textdraw to make a textdraw, and make a box..after use it in combination with what i said..and what you learning and yeah a nice Fuel system

new Fuel = 100;
forward FuelLost(vehicleid);
public FuelLost(vehicleid)
{
       Fuel --;
      if(Fuel == 0)
     {
              for(new i = 0;i != MAX_PLAYERS;i++)
               {
                         RemovePlayerFromVehicle(i);
                }
     }
     return 1;
}

OnPlayerEnterVehicle(playerid,vehicleid,isspasanger)
{
        SetTimerEx("FuelLost", 3000, true, "d", vehicleid);
       return 1;
}
watch here for functions and what they do and how to use it...
https://sampwiki.blast.hk/

And after watch on forum for some tutorials good luck
Reply


Messages In This Thread
[Question] speedometer - by leomessie - 31.08.2012, 09:55
Re: [Question] speedometer - by ThePrograme - 31.08.2012, 09:57
Re: [Question] speedometer - by Balla - 31.08.2012, 09:58
Re: [Question] speedometer - by XStormiest - 31.08.2012, 10:05

Forum Jump:


Users browsing this thread: 1 Guest(s)