22.07.2012, 20:19
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