04.03.2015, 22:02
Hello!
I just started scripting, and I've been watching a lot of tutorials and they all say that with practise you get better, so I decided to script some minor things so I can get the hang of it..
I'm doing a simple script, when a player does "/vehicle" a car would spawn infront of them, but I've encounter a problem wich I hope you guys can help me figure out.
I don't know if it's possible to make the car spawn relativetly to the player, and if not, how do I do this?
Feel free to leave suggestions and comments below
Here's what I got so far
I just started scripting, and I've been watching a lot of tutorials and they all say that with practise you get better, so I decided to script some minor things so I can get the hang of it..
I'm doing a simple script, when a player does "/vehicle" a car would spawn infront of them, but I've encounter a problem wich I hope you guys can help me figure out.
I don't know if it's possible to make the car spawn relativetly to the player, and if not, how do I do this?
Feel free to leave suggestions and comments below
Here's what I got so far
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/vehicle", cmdtext, true, 8) ==0) { AddStaticVehicle() } return 0; }