- 0
IsPlayerInZone
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
gunskill
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?
Link to comment
Share on other sites
0 answers to this question
Recommended Posts