29.11.2013, 04:07
Isso!
pawn Код:
public GuerraMata(playerid)
{
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
if(ProvocoMata[playerid] == 1)
{
if(IsPlayerInMata(playerid))
{
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3 || PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "O exercito conseguiu dominar Angel Pine");
}
GangZoneStopFlashForAll(GZMata);
GangZoneShowForAll(GZMata,COR_EXE);
Dominando[playerid] = 0;
ProvocoMata[playerid] = 0;
GuerranoMata = 0;
donomata = 3;
KillTimer(TempoGuerraMata);
return 1;
}
else
{
SendClientMessage(playerid, COR_EXE, "Vocк nгo estб no Mata.");
Dominando[playerid] = 0;
GangZoneStopFlashForAll(GZMata);
GangZoneShowForAll(GZMata, COR_EXE);
ProvocoMata[playerid] = 0;
GuerranoMata = 0;
donomata = 0;
KillTimer(TempoGuerraMata);
return 1;
}
}
return 1;
}
if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
if(ProvocoMata[playerid] == 1)
{
if(IsPlayerInMata(playerid))
{
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3 || PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "A Al-Qaeda conseguiu dominar Angel Pine");
}
GangZoneStopFlashForAll(GZMata);
GangZoneShowForAll(GZMata,COR_FARC);
Dominando[playerid] = 0;
ProvocoMata[playerid] = 0;
GuerranoMata = 0;
donomata = 6;
KillTimer(TempoGuerraMata);
return 1;
}
else
{
SendClientMessage(playerid, COR_FARC, "Vocк nгo estб no Mata.");
Dominando[playerid] = 0;
GangZoneStopFlashForAll(GZMata);
GangZoneShowForAll(GZMata, COR_FARC);
ProvocoMata[playerid] = 0;
GuerranoMata = 0;
donomata = 0;
KillTimer(TempoGuerraMata);
return 1;
}
}
return 1;
}
return 1;
}