SA-MP Forums Archive
Vehicles in skinselection - 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: Vehicles in skinselection (/showthread.php?tid=414054)



Vehicles in skinselection - Maraudeur - 07.02.2013

pawn Код:
SetPlayerPos(playerid, 88.795204, -261.606628, 3.796797);
            SetPlayerFacingAngle(playerid, 52.051254);
            SetPlayerCameraLookAt(playerid, 88.795204, -261.606628, 3.796797);
            SetPlayerCameraPos(playerid, 88.795204 + (5 * floatsin(-52.051254, degrees)), -261.606628 + (5 * floatcos(-52.051254, degrees)), 3.796797);
            SetPlayerVirtualWorld(playerid, 125);
            new truck;
            truck = AddStaticVehicle(514,91.8581,-263.8345,2.1703,52.9407,54,1);
            SetVehicleVirtualWorld(truck, GetPlayerVirtualWorld(playerid));
I'm really tired so I probaly missed something but i'll post this anyways to read when i wake up, help is greatly appreciated
I cant see the truck which the skin is supposed to be standing on


Re: Vehicles in skinselection - T0pAz - 07.02.2013

Did you double check the coordinates? Try replacing it with CreateVehicle because AddStaticVehicle only works inside the OnGameModeInit callback.