[HELP]I need help figuring out what code to put for a spawn car command
#1

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.
Reply
#2

Any replys? I don't get why no one replys to my questions.
Reply
#3

Can you explain it better, please?
Reply
#4

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.
Reply
#5

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 )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)