pawn Код:
public GuerraPark(playerid)
{
new string[128];
new playername[MAX_PLAYER_NAME];
if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)
{
if(ProvocoPark[playerid] == 1)
{
if(IsPlayerInPark(playerid))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e a Policia Militar retomaram o controle do Park Gleen !",playername);
SendClientMessageToAll(COR_PM, string);
SendClientMessage(playerid, COLOR_GRAD5, "Vocк dominou o Park Gleen, mantenha a posiзгo.");
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark,GCOP_COLOR);
Dominando[playerid] = 0;
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 6;
KillTimer(TempoGuerraPark);
return true;
}
else
{
SendClientMessage(playerid, COR_PM, "Vocк nгo estб no Park Gleen.");
Dominando[playerid] = 0;
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark, 0xFFFFFF96);
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 0;
KillTimer(TempoGuerraPark);
return true;
}
}
return true;
}
if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
{
if(ProvocoPark[playerid] == 1)
{
if(IsPlayerInPark(playerid))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e a Policia Civil retomaram o controle do Park Gleen !",playername);
SendClientMessageToAll(COR_PC, string);
SendClientMessage(playerid, COR_PC, "Vocк dominou o Park Gleen, mantenha a posiзгo.");
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark,COR_PC);
Dominando[playerid] = 0;
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 6;
KillTimer(TempoGuerraPark);
return true;
}
else
{
SendClientMessage(playerid, COR_PC, "Vocк nгo estб no Park Gleen.");
Dominando[playerid] = 0;
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark, 0xFFFFFF96);
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 0;
KillTimer(TempoGuerraPark);
return true;
}
}
return true;
}
if(PlayerInfo[playerid][pMembro] == 14 || PlayerInfo[playerid][pLider] == 14)
{
if(ProvocoPark[playerid] == 1)
{
if(IsPlayerInPark(playerid))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e a Groove Street Dominaram o Park Gleen !",playername);
SendClientMessageToAll(TEAM_GROVE_COLOR, string);
SendClientMessage(playerid, COLOR_GRAD5, "Vocк dominou o Park Gleen, a cada 5 minutos nela ganharб grana.");
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark,TEAM_GROVE_COLOR);
Dominando[playerid] = 0;
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 1;
KillTimer(TempoGuerraPark);
return true;
}
else
{
SendClientMessage(playerid, COR_GRO, "Vocк nгo estб no Park Gleen.");
Dominando[playerid] = 0;
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark, 0xFFFFFF96);
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 0;
KillTimer(TempoGuerraPark);
return true;
}
}
return true;
}
if(PlayerInfo[playerid][pMembro] == 21 || PlayerInfo[playerid][pLider] == 21)
{
if(ProvocoPark[playerid] == 1)
{
if(IsPlayerInPark(playerid))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e os A.D.A Dominaram o Park Gleen !",playername);
SendClientMessageToAll(rosa, string);
SendClientMessage(playerid, COLOR_GRAD5, "Vocк dominou o Park Gleen, a cada 5 minutos nela ganharб grana.");
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark,rosa);
Dominando[playerid] = 0;
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 1;
KillTimer(TempoGuerraPark);
return true;
}
else
{
SendClientMessage(playerid, rosa, "Vocк nгo estб no Park Gleen.");
Dominando[playerid] = 0;
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark, 0xFFFFFF96);
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 0;
KillTimer(TempoGuerraPark);
return true;
}
}
return true;
}
if(PlayerInfo[playerid][pMembro] == 20 || PlayerInfo[playerid][pLider] == 20)
{
if(ProvocoPark[playerid] == 1)
{
if(IsPlayerInPark(playerid))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e os Hell Angels Dominaram o Park Gleen !",playername);
SendClientMessageToAll(COR_HA, string);
SendClientMessage(playerid, COLOR_GRAD5, "Vocк dominou o Park Gleen, a cada 5 minutos nela ganharб grana.");
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark,COR_HA);
Dominando[playerid] = 0;
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 7;
KillTimer(TempoGuerraPark);
return true;
}
else
{
SendClientMessage(playerid, COR_HA, "Vocк nгo estб no Park Gleen.");
Dominando[playerid] = 0;
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark, 0xFFFFFF96);
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 0;
KillTimer(TempoGuerraPark);
return true;
}
}
return true;
}
if(PlayerInfo[playerid][pMembro] == 19 || PlayerInfo[playerid][pLider] == 19)
{
if(ProvocoPark[playerid] == 1)
{
if(IsPlayerInPark(playerid))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e os Comando Vermelho Dominaram o Park Gleen !",playername);
SendClientMessageToAll(0xF6000000, string);
SendClientMessage(playerid, COLOR_GRAD5, "Vocк dominou o Park Gleen, a cada 5 minutos nela ganharб grana.");
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark,0xF60000AA);
Dominando[playerid] = 0;
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 7;
KillTimer(TempoGuerraPark);
return true;
}
else
{
SendClientMessage(playerid, 0xF6000000, "Vocк nгo estб no Park Gleen.");
Dominando[playerid] = 0;
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark, 0xFFFFFF96);
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 0;
KillTimer(TempoGuerraPark);
return true;
}
}
return true;
}
if(PlayerInfo[playerid][pMembro] == 17 || PlayerInfo[playerid][pLider] == 17)
{
if(ProvocoPark[playerid] == 1)
{
if(IsPlayerInPark(playerid))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e os Ballas Dominaram o Park Gleen !",playername);
SendClientMessageToAll(TEAM_BALLAS_COLOR, string);
SendClientMessage(playerid, COLOR_GRAD5, "Vocк dominou o Park Gleen, a cada 5 minutos nela ganharб grana.");
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark,TEAM_BALLAS_COLOR);
Dominando[playerid] = 0;
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 2;
KillTimer(TempoGuerraPark);
return true;
}
else
{
SendClientMessage(playerid, TEAM_BALLAS_COLOR, "Vocк nгo estб no Park Gleen.");
Dominando[playerid] = 0;
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark, 0xFFFFFF96);
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 0;
KillTimer(TempoGuerraPark);
return true;
}
}
return true;
}
if(PlayerInfo[playerid][pMembro] == 18 || PlayerInfo[playerid][pLider] == 18)
{
if(ProvocoPark[playerid] == 1)
{
if(IsPlayerInPark(playerid))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e o Vagos Dominaram o Park Gleen !",playername);
SendClientMessageToAll(TEAM_VAGOS_COLOR, string);
SendClientMessage(playerid, COLOR_GRAD5, "Vocк dominou o Park Gleen, a cada 5 minutos nela ganharб grana.");
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark,TEAM_VAGOS_COLOR);
Dominando[playerid] = 0;
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 3;
KillTimer(TempoGuerraPark);
return true;
}
else
{
SendClientMessage(playerid, TEAM_VAGOS_COLOR, "Vocк nгo estб no Park Gleen.");
Dominando[playerid] = 0;
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark, 0xFFFFFF96);
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 0;
KillTimer(TempoGuerraPark);
return true;
}
}
return true;
}
if(PlayerInfo[playerid][pMembro] == 5 || PlayerInfo[playerid][pLider] == 5)
{
if(ProvocoPark[playerid] == 1)
{
if(IsPlayerInPark(playerid))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e os Los Aztecas Dominaram o Park Gleen !",playername);
SendClientMessageToAll(TEAM_AZTECAS_COLOR, string);
SendClientMessage(playerid, COLOR_GRAD5, "Vocк dominou o Park Gleen, a cada 5 minutos nela ganharб grana.");
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark,TEAM_AZTECAS_COLOR);
Dominando[playerid] = 0;
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 4;
KillTimer(TempoGuerraPark);
return true;
}
else
{
SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Vocк nгo estб no Park Gleen.");
Dominando[playerid] = 0;
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark, 0xFFFFFF96);
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 0;
KillTimer(TempoGuerraPark);
return true;
}
}
return true;
}
return true;
}