Refill vehicle at respawn
#1

How to refill the civil cars with 100 fuel at respawn?
Reply
#2

pawn Код:
public OnVehicleSpawn(vehicleid)
{
    SetVehicleFuel(vehicleid,100); //or whatever you use to change fuel value
    return 1;
}
Reply
#3

if civil cars for example
pawn Код:
if(vehicleid != [ARMY/COPS/CIA/MEDIC]Vehicle IDs)
{
   SetVehicleFuel(vehicleid,100); //or whatever you use to change fuel value
    return 1;
}
I don't know your gamemode.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)