Actions inside a Gang-Zones
#6

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


Messages In This Thread
Actions inside a Gang-Zones - by GeKo - 08.02.2009, 13:43
Re: Actions inside a Gang-Zones - by SmartyPants - 08.02.2009, 16:20
Re: Actions inside a Gang-Zones - by GeKo - 08.02.2009, 19:34
Re: Actions inside a Gang-Zones - by LarzI - 08.02.2009, 19:36
Re: Actions inside a Gang-Zones - by GeKo - 08.02.2009, 19:43
Re: Actions inside a Gang-Zones - by SmartyPants - 08.02.2009, 22:30

Forum Jump:


Users browsing this thread: 1 Guest(s)