Weird issue with vehicles - 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)
+--- Thread: Weird issue with vehicles (
/showthread.php?tid=399828)
Weird issue with vehicles -
[CG]Milito - 15.12.2012
Hello guys!
I got another problem, when a player type /suicide and respawn, sometimes the cars are not appearing! :P Everything works fine exept this.
Re: Weird issue with vehicles -
Face9000 - 15.12.2012
Show us /suicde command and OnPlayerSpawn callback.
Also, be sure you set player(s) world compared to vehicle player world. (Ex: if you're playing in virtual world 0, your cars must be in same virtual world).
Re: Weird issue with vehicles -
maramizo - 15.12.2012
Under OnPlayerSpawn, add:
pawn Код:
SetPlayerVirtualWorld(playerid, 0);