Jump to content
  • 0

IsPlayerInZone


gunskill

Question

Deci am o problema am facut un timer

[pawn]SetTimer("pezona",500, true);[/pawn]

care verifica daca playerul este intr-o zona

si forward si publicul

[pawn]forward pezona();

public pezona()

{

    for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)

for(new i=0; i<sizeof(ZoneInfo); i++)

{

    if(IsPlayerInZone(playerid, i) && ZoneInfo[zTeam] == 12)

    {

        GameTextForPlayer(playerid, "blabla",5000, 1);

        return 1;

}

else if(IsPlayerInZone(playerid, i) && ZoneInfo[zTeam] == 13)

    {

        GameTextForPlayer(playerid, "blabla",5000, 1);

        return 1;

}

else if(IsPlayerInZone(playerid, i) && ZoneInfo[zTeam] == 14)

    {

        GameTextForPlayer(playerid, "blabla",5000, 1);

        return 1;

}

else if(IsPlayerInZone(playerid, i) && ZoneInfo[zTeam] == 15)

    {

      GameTextForPlayer(playerid, "blabla",5000, 1);

        return 1;

    }

    }

return 1;// héhé

}[/pawn]

dar problema este ca verifica doar la id 0,de ce?

rszadc33936a6e246e39ea2.png
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.