31.08.2012, 10:05
some functions you will need:
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
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;
}
https://sampwiki.blast.hk/
And after watch on forum for some tutorials good luck