Why it doesn't work ?
#6

pawn Код:
PUBLIC:Explosions()
{
    foreach(new i:Player)
    {
        if(IsPlayerInRangeOfPoint(i, 10.0, -1479.7295,971.4417,10.7425))
        {
            if(CentraleBlown == 0)
            {
                if(gTeam[i] != TEAM_COP && gTeam[i] != TEAM_ARMY && gTeam[i] != TEAM_CIA && gTeam[i] != TEAM_LEADERRAID && gTeam[i] != TEAM_COLEADERRAID && gTeam[i] != TEAM_RAID && gTeam[i] != TEAM_LEADERSWAT && gTeam[i] != TEAM_COLEADERSWAT && gTeam[i] != TEAM_SWAT)
                {
                    SendClientMessage(i,COLOR_RED,"Vous devez exploser la centrale йlйctrique afin d'йviter les explosions.");
                    new Float:x, Float:y, Float:z;
                    GetPlayerPos(i, x, y, z);
                    CreateExplosion(x,y,z, 9, 10.0);
                }
            }
        }  
    }
}
Instead of:
pawn Код:
if(gTeam[i] != TEAM_COP && gTeam[i] != TEAM_ARMY && gTeam[i] != TEAM_CIA && gTeam[i] != TEAM_LEADERRAID && gTeam[i] != TEAM_COLEADERRAID && gTeam[i] != TEAM_RAID && gTeam[i] != TEAM_LEADERSWAT && gTeam[i] != TEAM_COLEADERSWAT && gTeam[i] != TEAM_SWAT)
You can create a class for criminal and do:
pawn Код:
if(gTeam[i] == TEAM_CRIMINAL)
Reply


Messages In This Thread
Why it doesn't work ? - by KillerDVX - 24.05.2015, 15:12
Re: Why it doesn't work ? - by Vince - 24.05.2015, 16:09
Re : Why it doesn't work ? - by KillerDVX - 25.05.2015, 23:25
Re: Why it doesn't work ? - by BKarner - 26.05.2015, 05:05
Re: Why it doesn't work ? - by DaniceMcHarley - 26.05.2015, 08:50
Re: Why it doesn't work ? - by J4Rr3x - 26.05.2015, 09:19

Forum Jump:


Users browsing this thread: 1 Guest(s)