I want to check player position, How I Do ? - 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: I want to check player position, How I Do ? (
/showthread.php?tid=318484)
I want to check player position, How I Do ? -
gunnrcrakr - 15.02.2012
When player stand on sky at z = 5000(Height) I want to check when player stay that player to death.
new Float

,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(PlayerInfo[playerid][z] > 5000)
{
SetPlayerHealth(playerid, 0);
}
How I do it, Please help me thank you, Sorry my language :')
Re: I want to check player position, How I Do ? -
[MG]Dimi - 15.02.2012
Quote:
Originally Posted by gunnrcrakr
When player stand on sky at z = 5000(Height) I want to check when player stay that player to death.
new Float  ,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(PlayerInfo[playerid][z] > 5000)
{
SetPlayerHealth(playerid, 0);
}
How I do it, Please help me thank you, Sorry my language :')
|
pawn Код:
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(z > 5000.0) SetPlayerHealth(playerid,0.0);