Take ID of player :O - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Take ID of player :O (
/showthread.php?tid=103952)
Take ID of player :O -
ordixp - 22.10.2009
Good evening,
I try with GetPlayerPos save the ID of a player in a variable. But I can not I do not know why ...
Thank you for telling me how
Re: Take ID of player :O -
Correlli - 22.10.2009
GetPlayerPos function is to get player's position. If you just want to save player's ID to a variable, then just do something like this:
But if you mean the position, then try this:
pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
That will store player's x, y and z coordinates to the x, y and z floats.