15.02.2009, 20:31
Is it somethink like this? Code:
pawn Код:
new InArea[MAX_PLAYERS];
public IsPlayerInArea()
{
new Float:X, Float:Y, Float:Z;
for(new i=0; i < MAX_PLAYERS; i++)
{
GetPlayerPos(i, X, Y, Z);
if (X <= -1665 && X >= -1832 && Y <= 973 && Y >= 784)
{
InArea[i] = 0;
SetPlayerHealth(i, 999999.9);
InArea[i] = 1;
}
else
{
InArea[i] = 1;
SetPlayerHealth(i, 100);
InArea[i] = 0;
}
}
}