05.10.2011, 01:44
Hello!
I got a fuel system, and it fills the cars on server startup.
But i have NPCs in vehicles and they cant refuel by them self and get out of fuel.
So how to do to get vehicle ids to get like 9999 fuel? i want id 548 and id 592 to get 9999 in fuel on startup.
Code on OnGameModeInit:
I got a fuel system, and it fills the cars on server startup.
But i have NPCs in vehicles and they cant refuel by them self and get out of fuel.
So how to do to get vehicle ids to get like 9999 fuel? i want id 548 and id 592 to get 9999 in fuel on startup.
Code on OnGameModeInit:
pawn Код:
for(new i=0;i<MAX_VEHICLES;i++) {
fuel[i] = 250 + random(150);
}