//------------------------ Dominar --------------------------
if(strcmp(cmd, "/dominar", true) == 0 || strcmp(cmd, "/do", true) == 0)
{
//otros
if(PlayerInfo[playerid][pMembro] == 23 || PlayerInfo[playerid][pLider] == 23)// C.V
{
if(IsPlayerInPark(playerid))
{
if(Dominando[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Vocк ja estб dominando um territorio.");
return 1;
}
if(GuerranoPark == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma guerra nesse territorio.");
return 1;
}
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e O Comando Vermelho estгo dominando o Park!",playername);
SendClientMessageToAll(COLOR_COMANDO, string);
SendClientMessage(playerid, COLOR_GRAD3, "Fique esperto, todas as gangues foram avisadas!");
SendClientMessage(playerid, COLOR_GRAD5, "Espere 1 minuto para dominar estб area .");
GangZoneFlashForAll(GZPark,COLOR_COMANDO);
Dominando[playerid] = 1;
ProvocoPark[playerid] = 1;
GuerranoPark = 1;
TempoGuerraPark = SetTimerEx("GuerraPark", 60000, 0, "i", playerid);
return 1;
if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)//------Policai militar----
{
if(IsPlayerInPark(playerid))
{
if(Dominando[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Vocк ja estб dominando um territorio.");
return 1;
}
if(GuerranoPark == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma guerra nesse territorio.");
return 1;
}
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e a Policia Militare estгo dominando o Park Gleen!",playername);
SendClientMessageToAll(COP_COLOR, string);
SendClientMessage(playerid, COLOR_GRAD3, "Fique esperto, todas as gangues foram avisadas!");
SendClientMessage(playerid, COLOR_GRAD5, "Espere 1 minuto para dominar estб area .");
GangZoneFlashForAll(GZPark,COP_COLOR);
Dominando[playerid] = 1;
ProvocoPark[playerid] = 1;
GuerranoPark = 1;
TempoGuerraPark = SetTimerEx("GuerraPark", 60000, 0, "i", playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD3, "Vocк nгo estб em nenhun territуrio!");
return 1;
}
}
return 1;
}
return 1;
}
///fim ===
public GuerraPark(playerid)
{
new string [256];
new playername[MAX_PLAYER_NAME];
if(PlayerInfo[playerid][pMembro] == 23 || PlayerInfo[playerid][pLider] == 23)//VCOMANDO VERMELHO
{
if(ProvocoPark[playerid] == 1)
{
if(IsPlayerInPark(playerid))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e o Comando Vermelho Dominaram o Park Gleen!",playername);
SendClientMessageToAll(COLOR_COMANDO, string);
SendClientMessage(playerid, COLOR_GRAD5, "Vocк dominou o Park, a cada 3 minutos nele ganhara grana.");
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark,COLOR_COMANDO);
Dominando[playerid] = 0;
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 1;
KillTimer(TempoGuerraPark);
return 1;
}
else
{
SendClientMessage(playerid, TEAM_VAGOS_COLOR, "Vocк nгo estб no Park gleen.");
Dominando[playerid] = 0;
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark,0xEDF2FFFF);
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 0;
KillTimer(TempoGuerraPark);
return 1;
}
}
return 1;
}
if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)//PM(aVA)
{
if(ProvocoPark[playerid] == 1)
{
if(IsPlayerInPark(playerid))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e o Comando Vermelho Dominaram o Park Gleen!",playername);
SendClientMessageToAll(COP_COLOR, string);
SendClientMessage(playerid, COLOR_GRAD5, "Vocк dominou o Park, a cada 3 minutos nele ganhara grana.");
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark,COP_COLOR);
Dominando[playerid] = 0;
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 1;
KillTimer(TempoGuerraPark);
}
return 1;
}
}
return 1;
}
return 1;
}
//------------------------ Dominar --------------------------
if(strcmp(cmd, "/dominar", true) == 0 || strcmp(cmd, "/do", true) == 0)
{
if(PlayerInfo[playerid][pMembro] == 23 || PlayerInfo[playerid][pLider] == 23)// C.V
{
if(IsPlayerInPark(playerid))
{
if(Dominando[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Vocк ja estб dominando um territorio.");
return 1;
}
if(GuerranoPark == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma guerra nesse territorio.");
return 1;
}
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e O Comando Vermelho estгo dominando o Park!",playername);
SendClientMessageToAll(COLOR_COMANDO, string);
SendClientMessage(playerid, COLOR_GRAD3, "Fique esperto, todas as gangues foram avisadas!");
SendClientMessage(playerid, COLOR_GRAD5, "Espere 1 minuto para dominar estб area .");
GangZoneFlashForAll(GZPark,COLOR_COMANDO);
Dominando[playerid] = 1;
ProvocoPark[playerid] = 1;
GuerranoPark = 1;
TempoGuerraPark = SetTimerEx("GuerraPark", 60000, 0, "i", playerid);
return 1;
}
}
if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)//------Policai militar----
{
if(IsPlayerInPark(playerid))
{
if(Dominando[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Vocк ja estб dominando um territorio.");
return 1;
}
if(GuerranoPark == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma guerra nesse territorio.");
return 1;
}
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e a Policia Militare estгo dominando o Park Gleen!",playername);
SendClientMessageToAll(COP_COLOR, string);
SendClientMessage(playerid, COLOR_GRAD3, "Fique esperto, todas as gangues foram avisadas!");
SendClientMessage(playerid, COLOR_GRAD5, "Espere 1 minuto para dominar estб area .");
GangZoneFlashForAll(GZPark,COP_COLOR);
Dominando[playerid] = 1;
ProvocoPark[playerid] = 1;
GuerranoPark = 1;
TempoGuerraPark = SetTimerEx("GuerraPark", 60000, 0, "i", playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD3, "Vocк nгo estб em nenhun territуrio!");
return 1;
}
}
return 1;
}
public GuerraPark(playerid)
{
new string [256];
new playername[MAX_PLAYER_NAME];
if(PlayerInfo[playerid][pMembro] == 23 || PlayerInfo[playerid][pLider] == 23)//VCOMANDO VERMELHO
{
if(ProvocoPark[playerid] == 1)
{
if(IsPlayerInPark(playerid))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e o Comando Vermelho Dominaram o Park Gleen!",playername);
SendClientMessageToAll(COLOR_COMANDO, string);
SendClientMessage(playerid, COLOR_GRAD5, "Vocк dominou o Park, a cada 3 minutos nele ganhara grana.");
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark,COLOR_COMANDO);
Dominando[playerid] = 0;
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 1;
KillTimer(TempoGuerraPark);
return 1;
}
else
{
SendClientMessage(playerid, TEAM_VAGOS_COLOR, "Vocк nгo estб no Park gleen.");
Dominando[playerid] = 0;
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark,0xEDF2FFFF);
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 0;
KillTimer(TempoGuerraPark);
return 1;
}
}
if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)//PM(aVA)
{
if(ProvocoPark[playerid] == 1)
{
if(IsPlayerInPark(playerid))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e o Comando Vermelho Dominaram o Park Gleen!",playername);
SendClientMessageToAll(COP_COLOR, string);
SendClientMessage(playerid, COLOR_GRAD5, "Vocк dominou o Park, a cada 3 minutos nele ganhara grana.");
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark,COP_COLOR);
Dominando[playerid] = 0;
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 1;
KillTimer(TempoGuerraPark);
return 1;
}
}
}
}
return 1;
}
Esqueceu de postar os erros. |