26.05.2015, 09:19
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);
}
}
}
}
}
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)
pawn Код:
if(gTeam[i] == TEAM_CRIMINAL)