Coordinates of the character?
#1

Well I've been wondering for long time how to get the coordinates of a character, example now I want to create some kind of drug smuggling, so when he take the drugs, he'd get an object to his back, my question now is how to get the location/coordinates of it is there any kind of a filterscript or anything? thank you.
Reply
#2

Use this function:

pawn Код:
GetPlayerPos
Should be used like this:
pawn Код:
new Float:PosX, Float:PosY, Float:PosZ; //Variables to store the position
GetPlayerPos(playerid, PosX, PosY, PosZ);//Pos gets stored in the variables
Reply
#3

I think this is what you could be looking for: https://sampforum.blast.hk/showthread.php?tid=182317

I thought this because:

Quote:

... so when he take the drugs, he'd get an object to his back ...

If you want to get the coordinates of where to put the object on the player, use that program.
Reply
#4

I don't want his POSITION on the ground, thanks DanishHaq I'll check it out.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)