set player position in diffrents positions - 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: set player position in diffrents positions (
/showthread.php?tid=294656)
set player position in diffrents positions -
marik1322 - 02.11.2011
i am building a race system.
and i need to know how to put the players in diffrents positions??
Re: set player position in diffrents positions -
Kingunit - 02.11.2011
Use SetPlayerPos.
Re: set player position in diffrents positions -
Stigg - 02.11.2011
Do you mean grid positions ?
Re: set player position in diffrents positions -
marik1322 - 02.11.2011
yes but if i will use SetPlayerPos
all the players that join to race will be in the same positions
i need distance between the players
Re: set player position in diffrents positions -
Kingunit - 02.11.2011
pawn Код:
stock GetDistance( Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2 )
{
return floatround( floatsqroot( ( ( x1 - x2 ) * ( x1 - x2 ) ) + ( ( y1 - y2 ) * ( y1 - y2 ) ) + ( ( z1 - z2 ) * ( z1 - z2 ) ) ) ) );
}
Re: set player position in diffrents positions -
marik1322 - 02.11.2011
tnx man!! you are pro!!
but how i use that in command ??