Advertisement
Guest User

Untitled

a guest
Apr 12th, 2012
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 9.37 KB | None | 0 0
  1. // Nuclear
  2.         if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)//Hamas
  3.         {
  4.             if(IsPlayerInNuclear(playerid))
  5.             {
  6.                 if(Dominando[playerid] == 1)
  7.                 {
  8.                     SendClientMessage(playerid, COLOR_GRAD5, "Você ja está dominando um territorio.");
  9.                     return 1;
  10.                 }
  11.                 if(GuerranoNuclear == 1)
  12.                 {
  13.                     SendClientMessage(playerid, COLOR_GRAD5, "Já está tendo uma guerra nesse territorio.");
  14.                     return 1;
  15.                 }
  16.                 GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
  17.                 format(string, sizeof(string), "%s e os Hamas estão dominando a Base Nuclear!",playername);
  18.                 SendClientMessageToAll(COR_COSA, string);
  19.                 SendClientMessage(playerid, COLOR_GRAD3, "Fique esperto, o exercito foi avisado!");
  20.                 SendClientMessage(playerid, COLOR_GRAD5, "Espere 1 minuto para dominar está area .");
  21.                 GangZoneFlashForAll(GZNuclear,COLORGZ_LH);
  22.                 Dominando[playerid] = 1;
  23.                 ProvocoNuclear[playerid] = 1;
  24.                 GuerranoNuclear = 1;
  25.                 TempoGuerraNuclear = SetTimerEx("GuerraNuclear", 60000, 0, "i", playerid);
  26.                 return 1;
  27.             }
  28.             else
  29.             {
  30.                 SendClientMessage(playerid, COLOR_GRAD3, "Você não está em nenhum território!");
  31.             }
  32.             return 1;
  33.         }
  34.         if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15) //Al'queada
  35.         {
  36.             if(IsPlayerInNuclear(playerid))
  37.             {
  38.                 if(Dominando[playerid] == 1)
  39.                 {
  40.                     SendClientMessage(playerid, COLOR_GRAD5, "Você ja está dominando um territorio.");
  41.                     return 1;
  42.                 }
  43.                 if(GuerranoNuclear == 1)
  44.                 {
  45.                     SendClientMessage(playerid, COLOR_GRAD5, "Já está tendo uma guerra nesse territorio.");
  46.                     return 1;
  47.                 }
  48.                 GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
  49.                 format(string, sizeof(string), "%s e a A'lqueada estão dominando a Base Nuclear!",playername);
  50.                 SendClientMessageToAll(COR_COSA, string);
  51.                 SendClientMessage(playerid, COLOR_GRAD3, "Fique esperto, o exercito foi avisado!");
  52.                 SendClientMessage(playerid, COLOR_GRAD5, "Espere 1 minuto para dominar está area .");
  53.                 GangZoneFlashForAll(GZNuclear,COLORGZ_LH);
  54.                 Dominando[playerid] = 1;
  55.                 ProvocoNuclear[playerid] = 1;
  56.                 GuerranoNuclear = 1;
  57.                 TempoGuerraNuclear = SetTimerEx("GuerraNuclear", 60000, 0, "i", playerid);
  58.                 return 1;
  59.             }
  60.         if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3) //Exercito
  61.         {
  62.             if(IsPlayerInNuclear(playerid))
  63.             {
  64.                 if(Dominando[playerid] == 1)
  65.                 {
  66.                     SendClientMessage(playerid, COLOR_GRAD5, "Você ja está dominando um territorio.");
  67.                     return 1;
  68.                 }
  69.                 if(GuerranoNuclear == 1)
  70.                 {
  71.                     SendClientMessage(playerid, COLOR_GRAD5, "Já está tendo uma guerra nesse territorio.");
  72.                     return 1;
  73.                 }
  74.                 GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
  75.                 format(string, sizeof(string), "%s e o Exercito estão dominando a Base Nuclear!",playername);
  76.                 SendClientMessageToAll(COR_COSA, string);
  77.                 SendClientMessage(playerid, COLOR_GRAD3, "Fique esperto, os terroristas foram avisados!");
  78.                 SendClientMessage(playerid, COLOR_GRAD5, "Espere 1 minuto para dominar está area .");
  79.                 GangZoneFlashForAll(GZNuclear,COLORGZ_LH);
  80.                 Dominando[playerid] = 1;
  81.                 ProvocoNuclear[playerid] = 1;
  82.                 GuerranoNuclear = 1;
  83.                 TempoGuerraNuclear = SetTimerEx("GuerraNuclear", 60000, 0, "i", playerid);
  84.                 return 1;
  85.             }
  86.             else
  87.             {
  88.                 SendClientMessage(playerid, COLOR_GRAD3, "Você não está em nenhum território!");
  89.             }
  90.             return 1;
  91.         }
  92.  
  93.  
  94. /////////////////////////////////////////////////////////
  95.  
  96.  
  97. // Nuclear
  98. public GuerraNuclear(playerid)
  99. {
  100.     new string[128];
  101.     new playername[MAX_PLAYER_NAME];
  102.     if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
  103.     {
  104.         if(ProvocoNuclear[playerid] == 1)
  105.         {
  106.             if(IsPlayerInNuclear(playerid))
  107.             {
  108.                 GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
  109.                 format(string, sizeof(string), "%s e os Hamas Dominaram a Base Nuclear !",playername);
  110.                 SendClientMessageToAll(COR_COSA, string);
  111.                 SendClientMessage(playerid, COLOR_GRAD5, "Você dominou a Base Nuclear, a cada 5 minutos nela ganhará grana.");
  112.                 GangZoneStopFlashForAll(GZNuclear);
  113.                 GangZoneShowForAll(GZNuclear,COR_TAL);
  114.                 Dominando[playerid] = 0;
  115.                 ProvocoNuclear[playerid] = 0;
  116.                 GuerranoNuclear = 0;
  117.                 donoNuclear = 1;
  118.                 KillTimer(TempoGuerraNuclear);
  119.                 return 1;
  120.             }
  121.             else
  122.             {
  123.                 SendClientMessage(playerid, COR_COSA, "Você não está na Base Nuclear.");
  124.                 Dominando[playerid] = 0;
  125.                 GangZoneStopFlashForAll(GZNuclear);
  126.                 GangZoneShowForAll(GZNuclear, 0xFFFFFF96);
  127.                 ProvocoNuclear[playerid] = 0;
  128.                 GuerranoNuclear = 0;
  129.                 donoNuclear = 0;
  130.                 KillTimer(TempoGuerraNuclear);
  131.                 return 1;
  132.             }
  133.         }
  134.         return 1;
  135.     }
  136.     if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
  137.     {
  138.         if(ProvocoNuclear[playerid] == 1)
  139.         {
  140.             if(IsPlayerInNuclear(playerid))
  141.             {
  142.                 GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
  143.                 format(string, sizeof(string), "%s e a Al'queada Dominaram a Base Nuclear !",playername);
  144.                 SendClientMessageToAll(COR_COSA, string);
  145.                 SendClientMessage(playerid, COLOR_GRAD5, "Você dominou a Base Nuclear, a cada 5 minutos nela ganhará grana.");
  146.                 GangZoneStopFlashForAll(GZNuclear);
  147.                 GangZoneShowForAll(GZNuclear,COR_AL);
  148.                 Dominando[playerid] = 0;
  149.                 ProvocoNuclear[playerid] = 0;
  150.                 GuerranoNuclear = 0;
  151.                 donoNuclear = 1;
  152.                 KillTimer(TempoGuerraNuclear);
  153.                 return 1;
  154.             }
  155.             else
  156.             {
  157.                 SendClientMessage(playerid, COR_COSA, "Você não está na Base Nuclear.");
  158.                 Dominando[playerid] = 0;
  159.                 GangZoneStopFlashForAll(GZNuclear);
  160.                 GangZoneShowForAll(GZNuclear, 0xFFFFFF96);
  161.                 ProvocoNuclear[playerid] = 0;
  162.                 GuerranoNuclear = 0;
  163.                 donoNuclear = 0;
  164.                 KillTimer(TempoGuerraNuclear);
  165.                 return 1;
  166.             }
  167.         }
  168.         return 1;
  169.     }
  170.     if(PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)
  171.     {
  172.         if(ProvocoNuclear[playerid] == 1)
  173.         {
  174.             if(IsPlayerInNuclear(playerid))
  175.             {
  176.                 GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
  177.                 format(string, sizeof(string), "%s e o Exercito Dominaram a Base Nuclear !",playername);
  178.                 SendClientMessageToAll(COR_COSA, string);
  179.                 SendClientMessage(playerid, COLOR_GRAD5, "Você dominou a Base Nuclear, a cada 5 minutos nela ganhará grana.");
  180.                 GangZoneStopFlashForAll(GZNuclear);
  181.                 GangZoneShowForAll(GZNuclear,COR_EXE);
  182.                 Dominando[playerid] = 0;
  183.                 ProvocoNuclear[playerid] = 0;
  184.                 GuerranoNuclear = 0;
  185.                 donoNuclear = 1;
  186.                 KillTimer(TempoGuerraNuclear);
  187.                 return 1;
  188.             }
  189.             else
  190.             {
  191.                 SendClientMessage(playerid, COR_COSA, "Você não está na Base Nuclear.");
  192.                 Dominando[playerid] = 0;
  193.                 GangZoneStopFlashForAll(GZNuclear);
  194.                 GangZoneShowForAll(GZNuclear, 0xFFFFFF96);
  195.                 ProvocoNuclear[playerid] = 0;
  196.                 GuerranoNuclear = 0;
  197.                 donoNuclear = 0;
  198.                 KillTimer(TempoGuerraNuclear);
  199.                 return 1;
  200.             }
  201.         }
  202.         return 1;
  203.     }
  204.     return 1;
  205. }
  206.  
  207.  
  208.  
  209. ////////////////////////////////////////////////////////////////
  210.  
  211. //NUCLEAR
  212.         if(PlayerInfo[i][pMembro] == 6 && donoNuclear == 1) // Hamas
  213.         {
  214.             if(IsPlayerInNuclear(i))
  215.             {
  216.             GivePlayerMoney(i, GranadoNuclear);
  217.             format(string, sizeof(string), "Você recebeu R$%d, Por manter esta area sobre controle.",GranadoNuclear);
  218.             SendClientMessage(i, COLOR_GRAD3, string);
  219.             }
  220.         }
  221.         if(PlayerInfo[i][pLider] == 6 && donoNuclear == 1) // Hamas
  222.         {
  223.             if(IsPlayerInNuclear(i))
  224.             {
  225.             GivePlayerMoney(i, GranadoNuclear);
  226.             format(string, sizeof(string), "Você recebeu R$%d, Por manter esta area sobre controle.",GranadoNuclear);
  227.             SendClientMessage(i, COLOR_GRAD3, string);
  228.             }
  229.         }
  230.         if(PlayerInfo[i][pMembro] == 15 && donoNuclear == 2) // Al'queada
  231.         {
  232.             if(IsPlayerInNuclear(i))
  233.             {
  234.             GivePlayerMoney(i, GranadoNuclear);
  235.             format(string, sizeof(string), "Você recebeu R$%d, Por manter esta area sobre controle.",GranadoNuclear);
  236.             SendClientMessage(i, COLOR_GRAD3, string);
  237.             }
  238.         }
  239.         if(PlayerInfo[i][pLider] == 15 && donoNuclear == 2) // Al'queada
  240.         {
  241.             if(IsPlayerInNuclear(i))
  242.             {
  243.             GivePlayerMoney(i, GranadoNuclear);
  244.             format(string, sizeof(string), "Você recebeu R$%d, Por manter esta area sobre controle.",GranadoNuclear);
  245.             SendClientMessage(i, COLOR_GRAD3, string);
  246.             }
  247.         }
  248.         if(PlayerInfo[i][pMembro] == 3 && donoNuclear == 3) // Exercito
  249.         {
  250.             if(IsPlayerInNuclear(i))
  251.             {
  252.             GivePlayerMoney(i, GranadoNuclear);
  253.             format(string, sizeof(string), "Você recebeu R$%d, Por manter esta area sobre controle.",GranadoNuclear);
  254.             SendClientMessage(i, COLOR_GRAD3, string);
  255.             }
  256.         }
  257.         if(PlayerInfo[i][pLider] == 3 && donoNuclear == 3) // Exercito
  258.         {
  259.             if(IsPlayerInNuclear(i))
  260.             {
  261.             GivePlayerMoney(i, GranadoNuclear);
  262.             format(string, sizeof(string), "Você recebeu R$%d, Por manter esta area sobre controle.",GranadoNuclear);
  263.             SendClientMessage(i, COLOR_GRAD3, string);
  264.             }
  265.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement