SA-MP Forums Archive
Invisable cars then selecting skin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Invisable cars then selecting skin (/showthread.php?tid=153489)



Invisable cars then selecting skin - KuHS - 09.06.2010

I have a problem. When im selecting skin (by default OnPlayerRequestClass(playerid, classid) it sets camera position to desert air port), there would be a vehicles (i added vehicles to OnGameModeInit using AddStaticVehicle), but it won't, there isn't any vehicle when selecting camera, why? When i spawn and go to that place i can see those vehicles. Vehicles positions are correct. So what is wrong?


Re: Invisable cars then selecting skin - DJDhan - 09.06.2010

Well yes, When you enter the server first time, it doesn't show the vehicles for you the first time you are at OnPlayerRequestClass stage. But you will notice when you go to class selection after the first time, you will see the cars during class selection.


Re: Invisable cars then selecting skin - KuHS - 09.06.2010

Is there any solution for first time?


Re: Invisable cars then selecting skin - Naxix - 09.06.2010

Quote:
Originally Posted by KuHS
Is there any solution for first time?
You might be able to force them to instant spawn and then force them class request?


Re: Invisable cars then selecting skin - DJDhan - 09.06.2010

Quote:
Originally Posted by Naxix
Quote:
Originally Posted by KuHS
Is there any solution for first time?
You might be able to force them to instant spawn and then force them class request?
That will be a mess.
Try using TogglePlayerSpectating under OnPlayerRequestClass.


Re: Invisable cars then selecting skin - Naxix - 09.06.2010

Quote:
Originally Posted by DJDhan
Quote:
Originally Posted by Naxix
Quote:
Originally Posted by KuHS
Is there any solution for first time?
You might be able to force them to instant spawn and then force them class request?
That will be a mess.
Ye, but may be the only solution?


Re: Invisable cars then selecting skin - KuHS - 09.06.2010

Not found a good solution yet. I have tried with Spectate, it wont help, tried to do auto spawn and then force selecting, it worked, but vehicles wont spawn anyway, when i spawned normal the vehicles has spawned. Any ideas?