04.08.2009, 13:16
- isPlayerInArea
i have this code so when it enters the area it sets players health to 999999 whatever but i need it so it also shows a TextDraw and when you leave the area it Destroys the TextDraw and sets the players health back to 100.
how would i do this?
i have this code so when it enters the area it sets players health to 999999 whatever but i need it so it also shows a TextDraw and when you leave the area it Destroys the TextDraw and sets the players health back to 100.
pawn Код:
public isPlayerInArea()
{
new Float:X, Float:Y, Float:Z;
for(new i=0; i < MAX_PLAYERS; i++)
{
GetPlayerPos(i, X, Y, Z);
if (X <= 1931.533813 && X >= 1323.255126 && Y <= 2036.987426 && Y >= 1364.370117)
{
SetPlayerHealth(i, 9999999.9);
}
}
}