20.03.2010, 12:10
Never used it either, but uh, ok... An example then
But of course according to your script, you could put this in a timer to continue checking or something, and spawn is just a varible to use so the vehicle doesnt constantly respawn etc. I'd only check whatever vehicles that dont seem to spawn correctly on thier own though. Then OnVehicleRespawn you could reset the spawn varible back to 0 etc. This is just an example to point you in the right direction on how to go about fixing this problem
pawn Код:
if(IsVehicleStreamedIn(1,0)&&spawn[1]==0) // 1 is the vehicle ID, 0 is the playerid
{
SetVehicleToRespawn(1);
spawn[1]=1;
}