SA-MP Forums Archive
help - 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: help (/showthread.php?tid=248211)



help - omer5198 - 12.04.2011

i want to make something... but i have a problem with it...
i want that when you type /command a vehicle will spawn and you will be in it as a driver...
i did:
Код:
new vehicleid = CreateVehicle(522, X, Y, Z, A, 0, 0, 60);
PutPlayerInVehicle(playerid, vehicleid, 0);
the problem is that i did that when you type /command you VW(virtual world) will change to 50... but the Vehicle crerates on VW 0!!! so it doesn't put me in the vehicle!!! plz help


Re: help - Alby Fire - 12.04.2011

pawn Код:
new
    vehicleid = CreateVehicle(522, X, Y, Z, A, 0, 0, 60);
SetPlayerVirtualWorld(playerid, 0);
SetVehicleVirtualWorld(vehicleid, 0);
PutPlayerInVehicle(playerid, vehicleid, 0);