30.03.2009, 20:24
Heres the code i've done...
They dont spawn straight away, like if i goto the location and world 121, they're not there. only apear when i do a respawning vehicles command..
Then i tried doing this.. Aswell as the above
And added it below the vehicles, under OnGameModeInit, still it didnt work.
pawn Код:
public OnVehicleSpawn(vehicleid)
{
for(new i=0;i<8;i++)
{
if(vehicleid == BJveh[i])
{
SetVehicleVirtualWorld(BJveh[i], 121);
}
}
for(new j=0;j<11;j++)
{
if(vehicleid == BJveh2[j])
{
SetVehicleVirtualWorld(BJveh2[j], 121);
}
}
return 1;
}
They dont spawn straight away, like if i goto the location and world 121, they're not there. only apear when i do a respawning vehicles command..
Then i tried doing this.. Aswell as the above
pawn Код:
stock SpawnStuntVehicles()
{
for(new vehicleid=0;vehicleid<19;vehicleid++)
{
for(new i=0;i<8;i++)
{
if(vehicleid == BJveh[i])
{
SetVehicleVirtualWorld(BJveh[i], 121);
}
}
for(new j=0;j<11;j++)
{
if(vehicleid == BJveh2[j])
{
SetVehicleVirtualWorld(BJveh2[j], 121);
}
}
}
return 1;
}