23.10.2012, 20:17
Many people on my server got crash. I think that this gives crash.
Any ideas?
Any ideas?
PHP код:
new engandlialwayson;
forward EngineAndLightsTurnedOn();
// OnGameModeInit
engandlialwayson = SetTimer("EngineAndLightsTurnedOn", 10000, 1);
// OnGameModeExit
KillTimer(engandlialwayson);
public EngineAndLightsTurnedOn()
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
GetVehicleParamsEx(i, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(i, 1, 1, alarm, doors, bonnet, boot, objective);
}
return 1;
}