I want to check player position, How I Do ?
#2

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);
Reply


Messages In This Thread
I want to check player position, How I Do ? - by gunnrcrakr - 15.02.2012, 12:02
Re: I want to check player position, How I Do ? - by [MG]Dimi - 15.02.2012, 12:41

Forum Jump:


Users browsing this thread: 1 Guest(s)