help checking area
#1

pawn Код:
//under OnPlayerDeath

    if(pInfo[playerid][Team] == 2)
    {
        new Float:XZ;
        new Float:YZ;
        new Float:ZZ;
        GetPlayerPos(playerid, XZ, YZ, ZZ);
        {
            DeathArea = GangZoneCreate(XZ-20, YZ-20, XZ+20, YZ+20);
        }
        GangZoneShowForAll(DeathArea, VIRUS_ZONE_COLOR);
    }
   
//then I used timers to check if the player is in the area
//and I need to use IsPlayerInArea, how will I put the coords ?

if(IsPlayerInArea(i, XZ-20, XZ+20, YZ-20, YZ+20))//wont work, how should I do it ?
Reply


Messages In This Thread
help checking area - by marinov - 06.04.2011, 21:01
Re: help checking area - by marinov - 07.04.2011, 00:40
Re: help checking area - by Venice - 07.04.2011, 02:56
Re: help checking area - by marinov - 07.04.2011, 03:17
Re: help checking area - by marinov - 07.04.2011, 12:01
Re: help checking area - by marinov - 07.04.2011, 21:10

Forum Jump:


Users browsing this thread: 2 Guest(s)