20.05.2012, 15:28
Is it possible to make a function to check if a vehicle is spawned or not?
I'm trying to create a fuel script and I want to set the spawned vehicles fuel to 100% ongamemodeinit,
I have
Is it possible?
Thanks!
I want
I'm trying to create a fuel script and I want to set the spawned vehicles fuel to 100% ongamemodeinit,
I have
pawn Код:
public OnGameModeInit()
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
print("Vehicle %d fuel set to 100%%");
VehicleFuel[i] = 100;
}
return 1;
}
Thanks!
I want
pawn Код:
public OnGameModeInit()
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
if(IsVehicleSpawned(i))
{
print("All fuel set to 100%%");
VehicleFuel[i] = 100;
}
}
return 1;
}