08.02.2009, 22:30
yeah liek this
pawn Код:
public GodArea(playerid)
{
if(IsPlayerInArea(playerid, 1109.398, 116.7788, 1331.278, 303.6248))//change cords to ur own
{
SetPlayerHealth(playerid, 99999);
}
return 1;
}
pawn Код:
stock IsPlayerInArea(playerid, Float:max_x, Float:min_x, Float:max_y, Float:min_y)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if(X <= max_x && X >= min_x && Y <= max_y && Y >= min_y) return 1;
return 0;
}
pawn Код:
SetTimer("GodArea",2000,0);