24.01.2011, 09:01
Put something on the code to respawn the vehicle when it spawn... Can't explain better but something like that...
I am not sure if is this the function!
Not tested, hope it work!
I am not sure if is this the function!
pawn Код:
public OnVehicleSpawn(vehicleid)
{
for(new i=1; i<MAX_VEHICLES; i++)
{
SetVehicleNumberPlate(i, "TEAMCWA");
SetVehicleToRespawn(carid);
}
new string[128];
format(string,sizeof(string),"[Vehicle Spawn] Vehicle ID: %d Spawned",vehicleid);
VGas[vehicleid] = Rand(10,100);
WriteToLog("VehicleLog",string);
return 1;
}