Advertisement
BR_Gustavo

Sistema de Duelos

Oct 12th, 2018
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 15.68 KB | None | 0 0
  1. /*
  2.     Você pode bloquear os outros comandos com
  3.     if(GetPVarInt(playerid,"DL_NoDuelo") == 1)return SendClientMessage(playerid,0xFF0000FF,"ERRO: Você está em um duelo");
  4. */
  5.  
  6. #define FILTERSCRIPT
  7.  
  8. #include <a_samp>
  9. #include <zcmd>
  10. #include <sscanf>
  11.  
  12. #if defined FILTERSCRIPT
  13.  
  14. #define DIALOG_DUELO1 (323)
  15. #define DIALOG_DUELO2 (324)
  16. #define DIALOG_DUELO3 (325)
  17. #define DIALOG_DUELO4 (326)
  18.  
  19. forward P_MandarDuelo(playerid);
  20. public P_MandarDuelo(playerid)
  21. {
  22.     new Player1 =  GetPVarInt(playerid,"DL_DesafiouID"),MsgLocalDuelo[14],MsgMandarDuelo[150];
  23.     new Jogador1Nome[150],NomeArma1Duelo[50],NomeArma2Duelo[50];
  24.     GetPlayerName(playerid,Jogador1Nome,sizeof(Jogador1Nome));
  25.     GetWeaponName(GetPVarInt(playerid,"DL_DesafiouArma"),NomeArma1Duelo,sizeof(NomeArma1Duelo));
  26.     GetWeaponName(GetPVarInt(playerid,"DL_DesafiouArma2"),NomeArma2Duelo,sizeof(NomeArma2Duelo));
  27.     if(!IsPlayerConnected(Player1)){
  28.     SendClientMessage(playerid,0xFF0000FF,"ERRO: Esse jogador não está mais conectado");
  29.     SetPVarInt(playerid,"DL_DesafiouAlguem",0);
  30.     SetPVarInt(playerid,"DL_DesafiouID",-1);
  31.     return 1;}
  32.     if(GetPVarInt(Player1,"DL_NoDuelo") == 1){
  33.     SendClientMessage(playerid,0xFF0000FF,"ERRO: Esse jogador já está em um Duelo.");
  34.     SetPVarInt(playerid,"DL_DesafiouAlguem",0);
  35.     SetPVarInt(playerid,"DL_DesafiouID",-1);
  36.     return 1;}
  37.     if(GetPVarInt(playerid,"DL_DesafiouLugar") == 1){ MsgLocalDuelo = "Stadium";}else
  38.     if(GetPVarInt(playerid,"DL_DesafiouLugar") == 2){ MsgLocalDuelo = "Vice Stadium";}else
  39.     if(GetPVarInt(playerid,"DL_DesafiouLugar") == 3){ MsgLocalDuelo = "Ware House";}
  40.     SetPVarInt(Player1,"DL_DesafiouAlguem",1);
  41.     SetPVarInt(Player1,"DL_DesafiouID",playerid);
  42.     SendClientMessage(playerid,0x00BFFFFF,"Duel Challange Has Been Successfully send to player waiting to reject / accept!");
  43.     format(MsgMandarDuelo,sizeof(MsgMandarDuelo),"{FF0000}%s {00BFFF}Has challanged you to 1 vs 1 duel\n\nWeapon:%s & %s\nPlace: %s",Jogador1Nome,NomeArma1Duelo,NomeArma2Duelo,MsgLocalDuelo);
  44.     ShowPlayerDialog(Player1,DIALOG_DUELO4,DIALOG_STYLE_MSGBOX,"{FFFF00}Duel",MsgMandarDuelo,"Accept","Reject");
  45.     return 1;
  46. }
  47. forward P_AceitouODuelo(playerid);
  48. public P_AceitouODuelo(playerid)
  49. {
  50.     new Player1 = GetPVarInt(playerid,"DL_DesafiouID"),MsgLocalDuelo[15],MsgDuelo[150];
  51.     SetPVarInt(Player1,"DL_NoDuelo",1);
  52.     SetPVarInt(playerid,"DL_NoDuelo",1);
  53.     ResetPlayerWeapons(playerid);
  54.     ResetPlayerWeapons(Player1);
  55.     SetPlayerHealth(playerid,100);
  56.     SetPlayerArmour(playerid,100);
  57.     SetPlayerHealth(Player1,100);
  58.     SetPlayerArmour(Player1,100);
  59.     TogglePlayerControllable(playerid,0);
  60.     TogglePlayerControllable(Player1,0);
  61.     GivePlayerWeapon(playerid,GetPVarInt(playerid,"DL_DesafiouArma"),999);
  62.     GivePlayerWeapon(playerid,GetPVarInt(playerid,"DL_DesafiouArma2"),999);
  63.     GivePlayerWeapon(Player1,GetPVarInt(playerid,"DL_DesafiouArma"),999);
  64.     GivePlayerWeapon(Player1,GetPVarInt(playerid,"DL_DesafiouArma2"),999);
  65.     if(GetPVarInt(playerid,"DL_DesafiouLugar") == 1){
  66.     MsgLocalDuelo = "Stadium";
  67.     SetPlayerInterior(playerid,0);
  68.     SetPlayerPos(playerid,1308.5769,2151.4307,11.0234);
  69.     SetPlayerInterior(Player1,0);
  70.     SetPlayerPos(Player1,1382.4200,2150.0144,11.0234);}else
  71.     if(GetPVarInt(playerid,"DL_DesafiouLugar") == 2){
  72.     MsgLocalDuelo = "Vice Stadium";
  73.     SetPlayerInterior(playerid,16);
  74.     SetPlayerPos(playerid,-1374.6429,1243.1626,1039.8672);
  75.     SetPlayerInterior(Player1,16);
  76.     SetPlayerPos(Player1,-1425.7114,1249.0509,1039.8672);}else
  77.     if(GetPVarInt(playerid,"DL_DesafiouLugar") == 3){
  78.     MsgLocalDuelo = "Ware House";
  79.     SetPlayerInterior(playerid,1);
  80.     SetPlayerPos(playerid,1416.2416,-17.9103,1000.9261);
  81.     SetPlayerInterior(Player1,1);
  82.     SetPlayerPos(Player1,1367.5674,-17.5536,1000.9219);}
  83.     new NomeJogadoresDuelo[2][100];
  84.     GetPlayerName(playerid,NomeJogadoresDuelo[0],100);
  85.     GetPlayerName(Player1,NomeJogadoresDuelo[1],100);
  86.     format(MsgDuelo,sizeof(MsgDuelo),"|- A duel between \"%s[%d]\" and \"%s[%d]\" has started. |-Bet: [%d$] | Place %s -|",NomeJogadoresDuelo[0],playerid,NomeJogadoresDuelo[1],Player1,GetPVarInt(playerid,"DL_DesafiouAposta"),MsgLocalDuelo);
  87.     SendClientMessageToAll(0x00FF00FF,MsgDuelo);
  88.     SetPVarInt(playerid,"DL_DesafiouContagem",5);
  89.     SetPVarInt(Player1,"DL_DesafiouContagem",5);
  90.     SetPVarInt(playerid,"DL_DesafiouTimer",SetTimerEx("P_ContagemAbrirDuelo",1000,true,"u",playerid));
  91.     SetPVarInt(Player1,"DL_DesafiouTimer",SetTimerEx("P_ContagemAbrirDuelo",1000,true,"u",Player1));
  92.     return 1;
  93. }
  94. forward P_ContagemAbrirDuelo(playerid);
  95. public P_ContagemAbrirDuelo(playerid)
  96. {
  97.     if(GetPVarInt(playerid,"DL_DesafiouContagem") <=0){
  98.     TogglePlayerControllable(playerid,1);
  99.     GameTextForPlayer(playerid,"~r~GO GO GO!",1600,3);
  100.     SetPVarInt(playerid,"DL_DesafiouContagem",-1);
  101.     KillTimer(GetPVarInt(playerid,"DL_DesafiouTimer"));}else
  102.     if(GetPVarInt(playerid,"DL_DesafiouContagem") >=1){
  103.     new MsgTempoDuelo[50];
  104.     format(MsgTempoDuelo,sizeof(MsgTempoDuelo),"~g~%i",GetPVarInt(playerid,"DL_DesafiouContagem"));
  105.     GameTextForPlayer(playerid,MsgTempoDuelo,1000,3);
  106.     SetPVarInt(playerid,"DL_DesafiouContagem",GetPVarInt(playerid,"DL_DesafiouContagem")-1);}
  107.     return 1;
  108. }
  109. public OnFilterScriptInit()
  110. {
  111.     print("\n-------------------------------------");
  112.     print(" Sistema de duelo by Metatron Carregado...");
  113.     print("-------------------------------------\n");
  114.     return 1;
  115. }
  116.  
  117. public OnFilterScriptExit()
  118. {
  119.     return 1;
  120. }
  121. public OnPlayerConnect(playerid)
  122. {
  123.     return 1;
  124. }
  125. public OnPlayerDisconnect(playerid, reason)
  126. {
  127.     if(GetPVarInt(playerid,"DL_NoDuelo") == 1){
  128.     new Player1 = GetPVarInt(playerid,"DL_DesafiouID");
  129.     new JogadoresDueloNome[2][100],Float:QuantidadeVida,Float:QuantidadeColete;
  130.     GetPlayerName(playerid,JogadoresDueloNome[0],100);
  131.     GetPlayerName(Player1,JogadoresDueloNome[1],100);
  132.     GetPlayerHealth(Player1,QuantidadeVida);
  133.     GetPlayerArmour(Player1,QuantidadeColete);
  134.     new MsgGanhouDuelo[150];
  135.     format(MsgGanhouDuelo,sizeof(MsgGanhouDuelo),"%s Has won the 1 vs 1 duel against %s and still has %f health and %f armour",JogadoresDueloNome[1],JogadoresDueloNome[0],QuantidadeVida,QuantidadeColete);
  136.     SendClientMessageToAll(0xD15710FF,MsgGanhouDuelo);
  137.     ResetPlayerWeapons(Player1);
  138.     SpawnPlayer(Player1);
  139.     GivePlayerMoney(Player1,GetPVarInt(playerid,"DL_DesafiouAposta"));
  140.     SetPVarInt(Player1,"DL_DesafiouAlguem",0);
  141.     SetPVarInt(Player1,"DL_DesafiouID",-1);
  142.     SetPVarInt(Player1,"DL_DesafiouAposta",0);
  143.     SetPVarInt(Player1,"DL_NoDuelo",0);}
  144.     return 1;
  145. }
  146. public OnPlayerDeath(playerid, killerid, reason)
  147. {
  148.     if(GetPVarInt(playerid,"DL_NoDuelo") == 1){
  149.     new Player1 = GetPVarInt(playerid,"DL_DesafiouID");
  150.     new JogadoresDueloNome[2][100],Float:QuantidadeVida,Float:QuantidadeColete;
  151.     GetPlayerName(playerid,JogadoresDueloNome[0],100);
  152.     GetPlayerName(Player1,JogadoresDueloNome[1],100);
  153.     GetPlayerHealth(Player1,QuantidadeVida);
  154.     GetPlayerArmour(Player1,QuantidadeColete);
  155.     new MsgGanhouDuelo[150];
  156.     format(MsgGanhouDuelo,sizeof(MsgGanhouDuelo),"%s Has won the 1 vs 1 duel against %s and still has %f health and %f armour",JogadoresDueloNome[1],JogadoresDueloNome[0],QuantidadeVida,QuantidadeColete);
  157.     SendClientMessageToAll(0xD15710FF,MsgGanhouDuelo);
  158.     ResetPlayerWeapons(Player1);
  159.     SpawnPlayer(Player1);
  160.     ResetPlayerWeapons(playerid);
  161.     SpawnPlayer(playerid);
  162.     SetPVarInt(playerid,"DL_DesafiouAlguem",0);
  163.     SetPVarInt(playerid,"DL_DesafiouID",-1);
  164.     SetPVarInt(playerid,"DL_DesafiouAposta",0);
  165.     SetPVarInt(playerid,"DL_NoDuelo",0);
  166.     GivePlayerMoney(Player1,GetPVarInt(playerid,"DL_DesafiouAposta"));
  167.     SetPVarInt(Player1,"DL_DesafiouAlguem",0);
  168.     SetPVarInt(Player1,"DL_DesafiouID",-1);
  169.     SetPVarInt(Player1,"DL_DesafiouAposta",0);
  170.     SetPVarInt(Player1,"DL_NoDuelo",0);}
  171.     return 1;
  172. }
  173. //------------------------------------------------------------------------------
  174. CMD:duelo(playerid,params[])
  175. {
  176.     new DL_Apostando,Player1,MsgArmasDuelo[150];
  177.     // Coloque aqui o treco de bloquear comandos se estiver em eventos ou preso.
  178.     if(GetPVarInt(playerid,"DL_NoDuelo") == 1)return SendClientMessage(playerid,0xFF0000FF,"ERRO: Você já está em um duelo");
  179.     if(sscanf(params,"ud",Player1,DL_Apostando))return SendClientMessage(playerid,0xFF0000FF,"USAGE: /Duel [Player] [Bet]");
  180.     if(!IsPlayerConnected(Player1))return SendClientMessage(playerid,0xFF0000FF,"ERRO: Esse jogador não está conectado");{
  181.     if(Player1 == playerid)return SendClientMessage(playerid,0xFF0000FF,"ERRO: Você não pode desafiar você mesmo para um duelo.");
  182.     if(GetPVarInt(Player1,"DL_NoDuelo") == 1)return SendClientMessage(playerid,0xFF0000FF,"ERRO: Esse jogador já está em um Duelo.");
  183.     if(DL_Apostando > GetPlayerMoney(playerid) || DL_Apostando <= 0)return SendClientMessage(playerid,0xFF0000FF,"ERRO: Você não tem todo esse dinheiro para apostar");
  184.     if(DL_Apostando > GetPlayerMoney(Player1))return SendClientMessage(playerid,0xFF0000FF,"ERRO: Esse jogador não tem essa quantidade de dinheiro para apostar");
  185.     if(GetPVarInt(playerid,"DL_DesafiouAlguem") == 1)return SendClientMessage(playerid,0xFF0000FF,"ERRO: Você está esperando a resposta de um desafio");
  186. //  Coloque aqui o treco de verificar se o outro jogador está preso ou em um evento
  187. //  Exemplo:
  188. //  if(PlayerInfo[Player1][NoEvento] == 1)return SendClientMessage(playerid,0xFF0000FF,"ERRO: Esse jogador está em um evento e não pode ser desafiado");
  189. //
  190.     SetPVarInt(playerid,"DL_DesafiouAlguem",1);
  191.     SetPVarInt(playerid,"DL_DesafiouID",Player1);
  192.     SetPVarInt(playerid,"DL_DesafiouAposta",DL_Apostando);
  193.     strcat(MsgArmasDuelo,"{00FF00}Deagle\n{00FF00}Shot Gun\n{00FF00}SawnOff Shot Gun\n{00FF00}Combat Shout Gun\n{00FF00}UZI\n{00FF00}MP5\n{00FF00}M4\n{00FF00}Tec9");
  194.     ShowPlayerDialog(playerid,DIALOG_DUELO1,DIALOG_STYLE_LIST,"Duel Weapon 1",MsgArmasDuelo,"Choose","Cancel");}
  195.     return 1;
  196. }
  197. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  198. {
  199.     if(dialogid == DIALOG_DUELO1){
  200.     if(!response){
  201.     SetPVarInt(playerid,"DL_DesafiouAlguem",0);
  202.     SetPVarInt(playerid,"DL_DesafiouID",-1);}
  203.     if(response){
  204.     new MsgArmasDuelo[150];
  205.     strcat(MsgArmasDuelo,"{00FF00}Empty\n{00FF00}Deagle\n{00FF00}Shot Gun\n{00FF00}SawnOff Shot Gun\n{00FF00}Combat Shout Gun\n{00FF00}UZI\n{00FF00}MP5\n{00FF00}M4\n{00FF00}Tec9");
  206.     switch (listitem){
  207.     case 0: { SetPVarInt(playerid,"DL_DesafiouArma",24); ShowPlayerDialog(playerid,DIALOG_DUELO2,DIALOG_STYLE_LIST,"Duel Weapon 2",MsgArmasDuelo,"Choose","Back");}
  208.     case 1: { SetPVarInt(playerid,"DL_DesafiouArma",25); ShowPlayerDialog(playerid,DIALOG_DUELO2,DIALOG_STYLE_LIST,"Duel Weapon 2",MsgArmasDuelo,"Choose","Back");}
  209.     case 2: { SetPVarInt(playerid,"DL_DesafiouArma",26); ShowPlayerDialog(playerid,DIALOG_DUELO2,DIALOG_STYLE_LIST,"Duel Weapon 2",MsgArmasDuelo,"Choose","Back");}
  210.     case 3: { SetPVarInt(playerid,"DL_DesafiouArma",27); ShowPlayerDialog(playerid,DIALOG_DUELO2,DIALOG_STYLE_LIST,"Duel Weapon 2",MsgArmasDuelo,"Choose","Back");}
  211.     case 4: { SetPVarInt(playerid,"DL_DesafiouArma",28); ShowPlayerDialog(playerid,DIALOG_DUELO2,DIALOG_STYLE_LIST,"Duel Weapon 2",MsgArmasDuelo,"Choose","Back");}
  212.     case 5: { SetPVarInt(playerid,"DL_DesafiouArma",29); ShowPlayerDialog(playerid,DIALOG_DUELO2,DIALOG_STYLE_LIST,"Duel Weapon 2",MsgArmasDuelo,"Choose","Back");}
  213.     case 6: { SetPVarInt(playerid,"DL_DesafiouArma",31); ShowPlayerDialog(playerid,DIALOG_DUELO2,DIALOG_STYLE_LIST,"Duel Weapon 2",MsgArmasDuelo,"Choose","Back");}
  214.     case 7: { SetPVarInt(playerid,"DL_DesafiouArma",32); ShowPlayerDialog(playerid,DIALOG_DUELO2,DIALOG_STYLE_LIST,"Duel Weapon 2",MsgArmasDuelo,"Choose","Back");}}}}
  215.     if(dialogid == DIALOG_DUELO2){
  216.     if(!response){
  217.     new MsgArmasDuelo[150];
  218.     strcat(MsgArmasDuelo,"{00FF00}Deagle\n{00FF00}Shot Gun\n{00FF00}SawnOff Shot Gun\n{00FF00}Combat Shout Gun\n{00FF00}UZI\n{00FF00}MP5\n{00FF00}M4\n{00FF00}Tec9");
  219.     ShowPlayerDialog(playerid,DIALOG_DUELO1,DIALOG_STYLE_LIST,"Duel Weapon 1",MsgArmasDuelo,"Choose","Cancel");}
  220.     if(response){
  221.     switch (listitem){
  222.     case 0: { SetPVarInt(playerid,"DL_DesafiouArma2",GetPVarInt(playerid,"DL_DesafiouArma")); ShowPlayerDialog(playerid,DIALOG_DUELO3,DIALOG_STYLE_LIST,"Duel Place","{00FF00}Stadium\n{00FF00}Vice Stadium\n{00FF00}Ware House","Choose","Back");}
  223.     case 1: { SetPVarInt(playerid,"DL_DesafiouArma2",24); ShowPlayerDialog(playerid,DIALOG_DUELO3,DIALOG_STYLE_LIST,"Duel Place","{00FF00}Stadium\n{00FF00}Vice Stadium\n{00FF00}Ware House","Choose","Back");}
  224.     case 2: { SetPVarInt(playerid,"DL_DesafiouArma2",25); ShowPlayerDialog(playerid,DIALOG_DUELO3,DIALOG_STYLE_LIST,"Duel Place","{00FF00}Stadium\n{00FF00}Vice Stadium\n{00FF00}Ware House","Choose","Back");}
  225.     case 3: { SetPVarInt(playerid,"DL_DesafiouArma2",26); ShowPlayerDialog(playerid,DIALOG_DUELO3,DIALOG_STYLE_LIST,"Duel Place","{00FF00}Stadium\n{00FF00}Vice Stadium\n{00FF00}Ware House","Choose","Back");}
  226.     case 4: { SetPVarInt(playerid,"DL_DesafiouArma2",27); ShowPlayerDialog(playerid,DIALOG_DUELO3,DIALOG_STYLE_LIST,"Duel Place","{00FF00}Stadium\n{00FF00}Vice Stadium\n{00FF00}Ware House","Choose","Back");}
  227.     case 5: { SetPVarInt(playerid,"DL_DesafiouArma2",28); ShowPlayerDialog(playerid,DIALOG_DUELO3,DIALOG_STYLE_LIST,"Duel Place","{00FF00}Stadium\n{00FF00}Vice Stadium\n{00FF00}Ware House","Choose","Back");}
  228.     case 6: { SetPVarInt(playerid,"DL_DesafiouArma2",29); ShowPlayerDialog(playerid,DIALOG_DUELO3,DIALOG_STYLE_LIST,"Duel Place","{00FF00}Stadium\n{00FF00}Vice Stadium\n{00FF00}Ware House","Choose","Back");}
  229.     case 7: { SetPVarInt(playerid,"DL_DesafiouArma2",31); ShowPlayerDialog(playerid,DIALOG_DUELO3,DIALOG_STYLE_LIST,"Duel Place","{00FF00}Stadium\n{00FF00}Vice Stadium\n{00FF00}Ware House","Choose","Back");}
  230.     case 8: { SetPVarInt(playerid,"DL_DesafiouArma2",32); ShowPlayerDialog(playerid,DIALOG_DUELO3,DIALOG_STYLE_LIST,"Duel Place","{00FF00}Stadium\n{00FF00}Vice Stadium\n{00FF00}Ware House","Choose","Back");}}}}
  231.     if(dialogid == DIALOG_DUELO3){
  232.     if(!response){
  233.     new MsgArmasDuelo[150];
  234.     strcat(MsgArmasDuelo,"{00FF00}Empty\n{00FF00}Deagle\n{00FF00}Shot Gun\n{00FF00}SawnOff Shot Gun\n{00FF00}Combat Shout Gun\n{00FF00}UZI\n{00FF00}MP5\n{00FF00}M4\n{00FF00}Tec9");
  235.     ShowPlayerDialog(playerid,DIALOG_DUELO2,DIALOG_STYLE_LIST,"Duel Weapon 2",MsgArmasDuelo,"Choose","Back");}
  236.     if(response){
  237.     switch (listitem){
  238.     case 0: { SetPVarInt(playerid,"DL_DesafiouLugar",1); P_MandarDuelo(playerid);}
  239.     case 1: { SetPVarInt(playerid,"DL_DesafiouLugar",2); P_MandarDuelo(playerid);}
  240.     case 2: { SetPVarInt(playerid,"DL_DesafiouLugar",3); P_MandarDuelo(playerid);}}}}
  241.     if(dialogid == DIALOG_DUELO4){
  242.     if(!response){
  243.     new Player1 = GetPVarInt(playerid,"DL_DesafiouID");
  244.     SetPVarInt(Player1,"DL_DesafiouAlguem",0);
  245.     SetPVarInt(Player1,"DL_DesafiouID",-1);
  246.     new MsgRejeitarDuelo[100],NomeOutroJogador[50];
  247.     GetPlayerName(playerid,NomeOutroJogador,sizeof(NomeOutroJogador));
  248.     format(MsgRejeitarDuelo,sizeof(MsgRejeitarDuelo),"%s rejected the duel!",NomeOutroJogador);
  249.     SendClientMessage(Player1,0xFF0000FF,MsgRejeitarDuelo);
  250.     SetPVarInt(playerid,"DL_DesafiouAlguem",0);
  251.     SetPVarInt(playerid,"DL_DesafiouID",-1);}
  252.     if(response){
  253.     new Player1 = GetPVarInt(playerid,"DL_DesafiouID");
  254.     if(!IsPlayerConnected(Player1)){
  255.     SendClientMessage(Player1,0xFF0000FF,"ERRO: Esse jogador não está mais disponivel");
  256.     SetPVarInt(playerid,"DL_DesafiouAlguem",0);
  257.     SetPVarInt(playerid,"DL_DesafiouID",-1);
  258.     return 1;}
  259.     if(GetPVarInt(Player1,"DL_NoDuelo") == 1){
  260.     SendClientMessage(Player1,0xFF0000FF,"ERRO: Esse jogador não está mais disponivel");
  261.     SetPVarInt(playerid,"DL_DesafiouAlguem",0);
  262.     SetPVarInt(playerid,"DL_DesafiouID",-1);
  263.     return 1;}
  264.     SetPVarInt(playerid,"DL_DesafiouArma",GetPVarInt(Player1,"DL_DesafiouArma"));
  265.     SetPVarInt(playerid,"DL_DesafiouArma2",GetPVarInt(Player1,"DL_DesafiouArma2"));
  266.     SetPVarInt(playerid,"DL_DesafiouAposta",GetPVarInt(Player1,"DL_DesafiouAposta"));
  267.     SetPVarInt(playerid,"DL_DesafiouLugar",GetPVarInt(Player1,"DL_DesafiouLugar"));
  268.     P_AceitouODuelo(playerid);}}
  269.     return 1;
  270. }
  271. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement