Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Nuclear
- if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)//Hamas
- {
- if(IsPlayerInNuclear(playerid))
- {
- if(Dominando[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD5, "Você ja está dominando um territorio.");
- return 1;
- }
- if(GuerranoNuclear == 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 os Hamas estão dominando a Base Nuclear!",playername);
- SendClientMessageToAll(COR_COSA, string);
- SendClientMessage(playerid, COLOR_GRAD3, "Fique esperto, o exercito foi avisado!");
- SendClientMessage(playerid, COLOR_GRAD5, "Espere 1 minuto para dominar está area .");
- GangZoneFlashForAll(GZNuclear,COLORGZ_LH);
- Dominando[playerid] = 1;
- ProvocoNuclear[playerid] = 1;
- GuerranoNuclear = 1;
- TempoGuerraNuclear = SetTimerEx("GuerraNuclear", 60000, 0, "i", playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD3, "Você não está em nenhum território!");
- }
- return 1;
- }
- if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15) //Al'queada
- {
- if(IsPlayerInNuclear(playerid))
- {
- if(Dominando[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD5, "Você ja está dominando um territorio.");
- return 1;
- }
- if(GuerranoNuclear == 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 A'lqueada estão dominando a Base Nuclear!",playername);
- SendClientMessageToAll(COR_COSA, string);
- SendClientMessage(playerid, COLOR_GRAD3, "Fique esperto, o exercito foi avisado!");
- SendClientMessage(playerid, COLOR_GRAD5, "Espere 1 minuto para dominar está area .");
- GangZoneFlashForAll(GZNuclear,COLORGZ_LH);
- Dominando[playerid] = 1;
- ProvocoNuclear[playerid] = 1;
- GuerranoNuclear = 1;
- TempoGuerraNuclear = SetTimerEx("GuerraNuclear", 60000, 0, "i", playerid);
- return 1;
- }
- if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3) //Exercito
- {
- if(IsPlayerInNuclear(playerid))
- {
- if(Dominando[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD5, "Você ja está dominando um territorio.");
- return 1;
- }
- if(GuerranoNuclear == 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 Exercito estão dominando a Base Nuclear!",playername);
- SendClientMessageToAll(COR_COSA, string);
- SendClientMessage(playerid, COLOR_GRAD3, "Fique esperto, os terroristas foram avisados!");
- SendClientMessage(playerid, COLOR_GRAD5, "Espere 1 minuto para dominar está area .");
- GangZoneFlashForAll(GZNuclear,COLORGZ_LH);
- Dominando[playerid] = 1;
- ProvocoNuclear[playerid] = 1;
- GuerranoNuclear = 1;
- TempoGuerraNuclear = SetTimerEx("GuerraNuclear", 60000, 0, "i", playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD3, "Você não está em nenhum território!");
- }
- return 1;
- }
- /////////////////////////////////////////////////////////
- // Nuclear
- public GuerraNuclear(playerid)
- {
- new string[128];
- new playername[MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
- {
- if(ProvocoNuclear[playerid] == 1)
- {
- if(IsPlayerInNuclear(playerid))
- {
- GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s e os Hamas Dominaram a Base Nuclear !",playername);
- SendClientMessageToAll(COR_COSA, string);
- SendClientMessage(playerid, COLOR_GRAD5, "Você dominou a Base Nuclear, a cada 5 minutos nela ganhará grana.");
- GangZoneStopFlashForAll(GZNuclear);
- GangZoneShowForAll(GZNuclear,COR_TAL);
- Dominando[playerid] = 0;
- ProvocoNuclear[playerid] = 0;
- GuerranoNuclear = 0;
- donoNuclear = 1;
- KillTimer(TempoGuerraNuclear);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_COSA, "Você não está na Base Nuclear.");
- Dominando[playerid] = 0;
- GangZoneStopFlashForAll(GZNuclear);
- GangZoneShowForAll(GZNuclear, 0xFFFFFF96);
- ProvocoNuclear[playerid] = 0;
- GuerranoNuclear = 0;
- donoNuclear = 0;
- KillTimer(TempoGuerraNuclear);
- return 1;
- }
- }
- return 1;
- }
- if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
- {
- if(ProvocoNuclear[playerid] == 1)
- {
- if(IsPlayerInNuclear(playerid))
- {
- GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s e a Al'queada Dominaram a Base Nuclear !",playername);
- SendClientMessageToAll(COR_COSA, string);
- SendClientMessage(playerid, COLOR_GRAD5, "Você dominou a Base Nuclear, a cada 5 minutos nela ganhará grana.");
- GangZoneStopFlashForAll(GZNuclear);
- GangZoneShowForAll(GZNuclear,COR_AL);
- Dominando[playerid] = 0;
- ProvocoNuclear[playerid] = 0;
- GuerranoNuclear = 0;
- donoNuclear = 1;
- KillTimer(TempoGuerraNuclear);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_COSA, "Você não está na Base Nuclear.");
- Dominando[playerid] = 0;
- GangZoneStopFlashForAll(GZNuclear);
- GangZoneShowForAll(GZNuclear, 0xFFFFFF96);
- ProvocoNuclear[playerid] = 0;
- GuerranoNuclear = 0;
- donoNuclear = 0;
- KillTimer(TempoGuerraNuclear);
- return 1;
- }
- }
- return 1;
- }
- if(PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)
- {
- if(ProvocoNuclear[playerid] == 1)
- {
- if(IsPlayerInNuclear(playerid))
- {
- GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s e o Exercito Dominaram a Base Nuclear !",playername);
- SendClientMessageToAll(COR_COSA, string);
- SendClientMessage(playerid, COLOR_GRAD5, "Você dominou a Base Nuclear, a cada 5 minutos nela ganhará grana.");
- GangZoneStopFlashForAll(GZNuclear);
- GangZoneShowForAll(GZNuclear,COR_EXE);
- Dominando[playerid] = 0;
- ProvocoNuclear[playerid] = 0;
- GuerranoNuclear = 0;
- donoNuclear = 1;
- KillTimer(TempoGuerraNuclear);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_COSA, "Você não está na Base Nuclear.");
- Dominando[playerid] = 0;
- GangZoneStopFlashForAll(GZNuclear);
- GangZoneShowForAll(GZNuclear, 0xFFFFFF96);
- ProvocoNuclear[playerid] = 0;
- GuerranoNuclear = 0;
- donoNuclear = 0;
- KillTimer(TempoGuerraNuclear);
- return 1;
- }
- }
- return 1;
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////
- //NUCLEAR
- if(PlayerInfo[i][pMembro] == 6 && donoNuclear == 1) // Hamas
- {
- if(IsPlayerInNuclear(i))
- {
- GivePlayerMoney(i, GranadoNuclear);
- format(string, sizeof(string), "Você recebeu R$%d, Por manter esta area sobre controle.",GranadoNuclear);
- SendClientMessage(i, COLOR_GRAD3, string);
- }
- }
- if(PlayerInfo[i][pLider] == 6 && donoNuclear == 1) // Hamas
- {
- if(IsPlayerInNuclear(i))
- {
- GivePlayerMoney(i, GranadoNuclear);
- format(string, sizeof(string), "Você recebeu R$%d, Por manter esta area sobre controle.",GranadoNuclear);
- SendClientMessage(i, COLOR_GRAD3, string);
- }
- }
- if(PlayerInfo[i][pMembro] == 15 && donoNuclear == 2) // Al'queada
- {
- if(IsPlayerInNuclear(i))
- {
- GivePlayerMoney(i, GranadoNuclear);
- format(string, sizeof(string), "Você recebeu R$%d, Por manter esta area sobre controle.",GranadoNuclear);
- SendClientMessage(i, COLOR_GRAD3, string);
- }
- }
- if(PlayerInfo[i][pLider] == 15 && donoNuclear == 2) // Al'queada
- {
- if(IsPlayerInNuclear(i))
- {
- GivePlayerMoney(i, GranadoNuclear);
- format(string, sizeof(string), "Você recebeu R$%d, Por manter esta area sobre controle.",GranadoNuclear);
- SendClientMessage(i, COLOR_GRAD3, string);
- }
- }
- if(PlayerInfo[i][pMembro] == 3 && donoNuclear == 3) // Exercito
- {
- if(IsPlayerInNuclear(i))
- {
- GivePlayerMoney(i, GranadoNuclear);
- format(string, sizeof(string), "Você recebeu R$%d, Por manter esta area sobre controle.",GranadoNuclear);
- SendClientMessage(i, COLOR_GRAD3, string);
- }
- }
- if(PlayerInfo[i][pLider] == 3 && donoNuclear == 3) // Exercito
- {
- if(IsPlayerInNuclear(i))
- {
- GivePlayerMoney(i, GranadoNuclear);
- format(string, sizeof(string), "Você recebeu R$%d, Por manter esta area sobre controle.",GranadoNuclear);
- SendClientMessage(i, COLOR_GRAD3, string);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement