[HELP]Battery Life and Engine Life system
#2

Try to set the random values when gamemode is connected or when the car is spawned for example:

Code:
public OnGameModeInit()
{
	for(new i;i < MAX_VEHICLEs;i++)
	{
		VehicleInfo[vehicleid][BatteryLife] = random(500);
		VehicleInfo[vehicleid][EngineLife] = random(500);
	}
	return 1;
}
Reply


Messages In This Thread
[HELP]Battery Life and Engine Life system - by Mavis100 - 17.05.2014, 11:51
Re: [HELP]Battery Life and Engine Life system - by Dziugsas - 17.05.2014, 11:58

Forum Jump:


Users browsing this thread: 1 Guest(s)