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

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 :')
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)