08.08.2012, 03:46
Hello, I am trying to make a filterscript (Not going to say what for... secret ;3) and I need to find out the co-ordinates of the objects attached to the player sent as a message.
I am currently using "GetPlayerObjectPos" but I'm not quite sure if that's the right thing...
Anyway, here's my current code. Can someone help me?
I am currently using "GetPlayerObjectPos" but I'm not quite sure if that's the right thing...
Anyway, here's my current code. Can someone help me?
Код:
command(objectpos, playerid, prams[]) { new Float:x, Float:y, Float:z; GetPlayerObjectPos(playerid, 19515, x, y, z); SendClientMessage(playerid, COLOR_WHITE, "%x"); SendClientMessage(playerid, COLOR_WHITE, "%y"); SendClientMessage(playerid, COLOR_WHITE, "%z"); return 1; }