IsPlayerInZone
#1

Код:
SetTimer("pezona",500, true);

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[i][zTeam] == 12)
	    {
	        GameTextForPlayer(playerid, "bla bla",5000, 1);
	        return 1;
		}
		else if(IsPlayerInZone(playerid, i) && ZoneInfo[i][zTeam] == 13)
	    {
	        GameTextForPlayer(playerid, "bla bla",5000, 1);
	        return 1;
		}
		else if(IsPlayerInZone(playerid, i) && ZoneInfo[i][zTeam] == 14)
	    {
	        GameTextForPlayer(playerid, "bla bla",5000, 1);
	        return 1;
		}
		else if(IsPlayerInZone(playerid, i) && ZoneInfo[i][zTeam] == 15)
	    {
     	   GameTextForPlayer(playerid, "bla bla",5000, 1);
      	   return 1;
	    }
	    }
	return 1;// hйhй
	}
the problem is: if i am id 0 is show to me that message"bla bla" but i'am id 0+..(1,2.....)isn't show it!
Reply


Messages In This Thread
IsPlayerInZone - by Visio - 07.05.2012, 12:16
Re: IsPlayerInZone - by Jonny5 - 07.05.2012, 12:19
Re: IsPlayerInZone - by Visio - 07.05.2012, 12:20
Re: IsPlayerInZone - by Jonny5 - 07.05.2012, 12:33
Re: IsPlayerInZone - by Visio - 07.05.2012, 12:37
Re: IsPlayerInZone - by Visio - 07.05.2012, 13:50
Re: IsPlayerInZone - by ViniBorn - 07.05.2012, 13:52
Re: IsPlayerInZone - by Visio - 07.05.2012, 14:13
Re: IsPlayerInZone - by ViniBorn - 07.05.2012, 14:17
Re: IsPlayerInZone - by Visio - 07.05.2012, 14:19

Forum Jump:


Users browsing this thread: 1 Guest(s)