[HELP]I need help figuring out what code to put for a spawn car command - 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: [HELP]I need help figuring out what code to put for a spawn car command (
/showthread.php?tid=314123)
[HELP]I need help figuring out what code to put for a spawn car command -
stormchaser206 - 28.01.2012
Hello,
I am trying to figure out do I put this:
Код:
GetPlayerPos(playerid,x,y,z);
CreateVehicle(497,x-3.0,y,z,0.0,1,1,300);
underneath the command text thing, or something else.
Re: [HELP]I need help figuring out what code to put for a spawn car command -
stormchaser206 - 29.01.2012
Any replys? I don't get why no one replys to my questions.
Re: [HELP]I need help figuring out what code to put for a spawn car command -
fiki574 - 29.01.2012
Can you explain it better, please?
Re: [HELP]I need help figuring out what code to put for a spawn car command -
stormchaser206 - 29.01.2012
Ok, I was using the code:
Код:
GetPlayerPos(playerid,x,y,z);
CreateVehicle(497,x-3.0,y,z,0.0,1,1,300);
For a dialog. I was wondering if I would use that or something else for a Spawn Car Command.
Re: [HELP]I need help figuring out what code to put for a spawn car command -
Konstantinos - 29.01.2012
Yes it needs. You need to get player's position to create the vehicle on his position and
if you want you can
PutPlayerInVehicle(playerid, vehicleid, 0); ( Optional )