SA-MP Forums Archive
How do I get X, Y, Z Only? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How do I get X, Y, Z Only? (/showthread.php?tid=421264)



How do I get X, Y, Z Only? - Eminem 2ka9 - 08.03.2013

i only want to get x y z.... what command do i use?


Re: CreateDynamicCP problem - MP2 - 08.03.2013

Look at the syntax:

native CreateDynamicCP(Float, Float:y, Float:z, Floatize, worldid = -1, interiorid = -1, playerid = -1, Floattreamdistance = 100.0);

You're putting:

skin, x, y, z, angle

You need x, y, z.


Re: How do I get X, Y, Z Only? - Denying - 09.03.2013

Getting x, y and z of what if I may ask?


Re: How do I get X, Y, Z Only? - JaKe Elite - 09.03.2013

Please be more specific.

Showings player's X, Y, Z coordinates?
or something like a save system

Next time don't be rush and be specific.


Re: How do I get X, Y, Z Only? - tyler12 - 09.03.2013

Use /rs and it saves in ../GTA San Andreas User Files/SAMP/rawpositions.txt


Re: How do I get X, Y, Z Only? - Broker - 09.03.2013

pawn Код:
CMD:pos(playerid, params[])
{
        new string1[256];
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid,X,Y,Z);
        format(string1,sizeof(string1),"Position = X: %.0f , Y: %.0f , Z: %.0f",X,Y,Z);
        SendClientMessage(playerid,COLOR_GREEN,string1);
        return 1;
}
use this


Re: How do I get X, Y, Z Only? - DaRk_RaiN - 09.03.2013

Use /save ingame, Duh.
The out put will be found in
C:\Users\User\Documents\GTA San Andreas User Files\SAMP\savedpositions