[Help] Possition problem
#5

You can use GetPlayerPos for that, example:

pawn Код:
new Float:x, Float:y, Float:z; // float variables x, y and z to use them in GetPlayerPos
GetPlayerPos(playerid, x, y, z); // gets the player's position and stores it into the variables we made
// now you have the player's position co-ordinates (x, y and z) so let's use them
CarInfo[car][cLocationx] = x; // you can put x + 4 here if you want
CarInfo[car][cLocationy] = y;
CarInfo[car][cLocationz] = z;
CarInfo[car][cAngle] = 359.2072; // no need to change this
Reply


Messages In This Thread
[Help] Possition problem - by devil shill - 22.07.2012, 17:35
Re: [Help] Possition problem - by devil shill - 22.07.2012, 19:37
Re: [Help] Possition problem - by XStormiest - 22.07.2012, 19:42
Re: [Help] Possition problem - by devil shill - 22.07.2012, 20:13
Re: [Help] Possition problem - by [KHK]Khalid - 22.07.2012, 20:19
Re: [Help] Possition problem - by devil shill - 22.07.2012, 20:32

Forum Jump:


Users browsing this thread: 1 Guest(s)