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
#2

no one knows ?? sorry to bump but its kinda urgent
Reply
#3

Quote:
Originally Posted by marinov
Посмотреть сообщение
no one knows ?? sorry to bump but its kinda urgent
lol blank_________________________no question ?? what you need ?? you post only code
Reply
#4

Quote:
Originally Posted by venice
Посмотреть сообщение
lol blank_________________________no question ?? what you need ?? you post only code
did u read the code ? the question is in there
Reply
#5

under OnPlayerDeath
pawn Код:
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 need something like this on the timer
pawn Код:
if(IsPlayerInArea(i, XZ-20, XZ+20, YZ-20, YZ+20))//wont work, how should I do it ?
how will I put the coords ? That one won't work
Reply
#6

can someone just help me already ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)