Quick question about vehicles and VirtualWorlds
#1

Heres the code i've done...

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;
}
And added it below the vehicles, under OnGameModeInit, still it didnt work.
Reply


Messages In This Thread
Quick question about vehicles and VirtualWorlds - by Outbreak - 30.03.2009, 20:24
Re: Quick question about vehicles and VirtualWorlds - by ICECOLDKILLAK8 - 30.03.2009, 21:43
Re: Quick question about vehicles and VirtualWorlds - by Outbreak - 31.03.2009, 21:30
Re: Quick question about vehicles and VirtualWorlds - by Norn - 31.03.2009, 21:43
Re: Quick question about vehicles and VirtualWorlds - by Outbreak - 31.03.2009, 23:31

Forum Jump:


Users browsing this thread: 1 Guest(s)