Advertisement
losnato

[FilterScript] Pickup Creator

Sep 18th, 2011
657
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 24.85 KB | None | 0 0
  1. /*
  2.                                         ********************************
  3.                                                 Pickup Creator
  4.                                         ********************************
  5. Descrição:
  6.         Permite criar pickups in-game e salva em bloco de notas na pasta scriptfiles.
  7. Versão:
  8.         1.1
  9. Developer:
  10.         Luke "Larceny" G.
  11.         "Lós" .
  12. ChangeLOG:
  13.         18/09/2011:
  14.                 Primeira versão.
  15.         19/09/2011
  16.                 v1.1
  17. Thanks To:
  18.         ZeeX                    - ZCMD Command Processor.
  19.         SA-MP Team              - For All.
  20. */
  21.  
  22. //====================== [ INCLUDES ] =========================//
  23. #include        <  a_samp   >
  24. #include        <   zcmd    >
  25.  
  26. //====================== [ CONFIGURAÇÕES ] =========================//
  27. #define         DialogTipos           1  //Mude aqui caso já tiver um dialog com esse ID.
  28. #define         DialogPickups         2  //Mude aqui caso já tiver um dialog com esse ID.
  29. #define         DialogTipos2          3  //Mude aqui caso já tiver um dialog com esse ID.
  30. #define         DialogCreditos        4  //Mude aqui caso já tiver um dialog com esse ID.
  31. #define         DialogAjuda           5  //Mude aqui caso já tiver um dialog com esse ID.
  32. #define         Dialog3Dpergunta      6  //Mude aqui caso já tiver um dialog com esse ID.
  33. #define         Dialog3DText          7  //Mude aqui caso já tiver um dialog com esse ID.
  34. #define         Dialog3DCor           8  //Mude aqui caso já tiver um dialog com esse ID.
  35.  
  36. //====================== [ VARIAVEIS GLOBAIS ] =====================//
  37. new
  38.     caracteres[100],
  39.     Float:X,
  40.     Float:Y,
  41.     Float:Z,
  42.     tipo,
  43.     texto[128],
  44.     File:arquivo;
  45.  
  46. #if defined FILTERSCRIPT
  47. public OnFilterScriptInit()
  48. {
  49.     print("\n--------------------------------------");
  50.     print(" Pickup Creator - Carregado");
  51.     print("--------------------------------------\n");
  52.     return 1;
  53. }
  54. #endif
  55.  
  56. public OnPlayerConnect(playerid)
  57. {
  58.     SendClientMessage(playerid, -1, "Use /criarpickup para uma nova pickup :)");
  59.     return 1;
  60. }
  61.  
  62. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  63. {
  64.     switch(dialogid)
  65.     {
  66.         case 1:
  67.         {
  68.             if(response == 0) return 1;
  69.             tipo = strval(inputtext);
  70.             if(0 < tipo > 23) return SendClientMessage(playerid, -1, "Use somente números de 0 ha 23.");
  71.             ShowPlayerDialog(playerid, DialogPickups, DIALOG_STYLE_LIST,"Criando Pickup", "Vida\nColete\nInformação\nCasa Azul\nCasa Verde\nDinheiro\nPílula\nDistintivo\nLogotipo GTA\nBomba\nCamera\nCaveira\nCifrão\nCamiseta\nDisquete\nCaveiras\nMulti-Player\nEstatua Sagrada\nPara-Quedas\nSeta Branca\nDrogas","Continuar","Cancelar");
  72.         }
  73.         case 2:
  74.         {
  75.             if(response == 0) return 1;
  76.             switch(listitem)
  77.             {
  78.                 case 0://vida
  79.                 {
  80.                     GetPlayerPos(playerid, X,Y,Z);
  81.                     CreatePickup(1240, tipo, X, Y, Z, -1);
  82.                     arquivo = fopen("Pickups.txt", io_append);
  83.                     format(caracteres, 256, "AddStaticPickup(1240, %d, %f, %f, %f, -1);\r\n", tipo, X, Y, Z);
  84.                     fwrite(arquivo, caracteres);
  85.                     fclose(arquivo);
  86.                     SendClientMessage(playerid, -1, "Pickup Criada!");
  87.                     ShowPlayerDialog(playerid, Dialog3Dpergunta, DIALOG_STYLE_MSGBOX,"3DText", "Você Gostaria de criar um 3DTextLabel na sua pickup?", "Sim", "Não");
  88.                 }
  89.                 case 1://colete
  90.                 {
  91.                     GetPlayerPos(playerid, X,Y,Z);
  92.                     CreatePickup(1242, tipo, X, Y, Z, -1);
  93.                     arquivo = fopen("Pickups.txt", io_append);
  94.                     format(caracteres, 256, "AddStaticPickup(1242, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  95.                     fwrite(arquivo, caracteres);
  96.                     fclose(arquivo);
  97.                     SendClientMessage(playerid, -1, "Pickup Criada!");
  98.                     ShowPlayerDialog(playerid, Dialog3Dpergunta, DIALOG_STYLE_MSGBOX,"3DText", "Você Gostaria de criar um 3DTextLabel na sua pickup?", "Sim", "Não");
  99.                 }
  100.                 case 2://Informação
  101.                 {
  102.                     GetPlayerPos(playerid, X,Y,Z);
  103.                     CreatePickup(1239, tipo, X, Y, Z, -1);
  104.                     arquivo = fopen("Pickups.txt", io_append);
  105.                     format(caracteres, 256, "AddStaticPickup(1239, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  106.                     fwrite(arquivo, caracteres);
  107.                     fclose(arquivo);
  108.                     SendClientMessage(playerid, -1, "Pickup Criada!");
  109.                     ShowPlayerDialog(playerid, Dialog3Dpergunta, DIALOG_STYLE_MSGBOX,"3DText", "Você Gostaria de criar um 3DTextLabel na sua pickup?", "Sim", "Não");
  110.                 }
  111.                 case 3://Casa azul
  112.                 {
  113.                     GetPlayerPos(playerid, X,Y,Z);
  114.                     CreatePickup(1272, tipo, X, Y, Z, -1);
  115.                     arquivo = fopen("Pickups.txt", io_append);
  116.                     format(caracteres, 256, "AddStaticPickup(1272, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  117.                     fwrite(arquivo, caracteres);
  118.                     fclose(arquivo);
  119.                     SendClientMessage(playerid, -1, "Pickup Criada!");
  120.                     ShowPlayerDialog(playerid, Dialog3Dpergunta, DIALOG_STYLE_MSGBOX,"3DText", "Você Gostaria de criar um 3DTextLabel na sua pickup?", "Sim", "Não");
  121.                 }
  122.                 case 4://Casa verde
  123.                 {
  124.                     GetPlayerPos(playerid, X,Y,Z);
  125.                     CreatePickup(1273, tipo, X, Y, Z, -1);
  126.                     arquivo = fopen("Pickups.txt", io_append);
  127.                     format(caracteres, 256, "AddStaticPickup(1273, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  128.                     fwrite(arquivo, caracteres);
  129.                     fclose(arquivo);
  130.                     SendClientMessage(playerid, -1, "Pickup Criada!");
  131.                     ShowPlayerDialog(playerid, Dialog3Dpergunta, DIALOG_STYLE_MSGBOX,"3DText", "Você Gostaria de criar um 3DTextLabel na sua pickup?", "Sim", "Não");
  132.                 }
  133.                 case 5://Dinheiro
  134.                 {
  135.                     GetPlayerPos(playerid, X,Y,Z);
  136.                     CreatePickup(1212, tipo, X, Y, Z, -1);
  137.                     arquivo = fopen("Pickups.txt", io_append);
  138.                     format(caracteres, 256, "AddStaticPickup(1212, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  139.                     fwrite(arquivo, caracteres);
  140.                     fclose(arquivo);
  141.                     SendClientMessage(playerid, -1, "Pickup Criada!");
  142.                     ShowPlayerDialog(playerid, Dialog3Dpergunta, DIALOG_STYLE_MSGBOX,"3DText", "Você Gostaria de criar um 3DTextLabel na sua pickup?", "Sim", "Não");
  143.                 }
  144.                 case 6://Pílula
  145.                 {
  146.                     GetPlayerPos(playerid, X,Y,Z);
  147.                     CreatePickup(1241, tipo, X, Y, Z, -1);
  148.                     arquivo = fopen("Pickups.txt", io_append);
  149.                     format(caracteres, 256, "AddStaticPickup(1241, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  150.                     fwrite(arquivo, caracteres);
  151.                     fclose(arquivo);
  152.                     SendClientMessage(playerid, -1, "Pickup Criada!");
  153.                     ShowPlayerDialog(playerid, Dialog3Dpergunta, DIALOG_STYLE_MSGBOX,"3DText", "Você Gostaria de criar um 3DTextLabel na sua pickup?", "Sim", "Não");
  154.                 }
  155.                 case 7://Distintivo
  156.                 {
  157.                     GetPlayerPos(playerid, X,Y,Z);
  158.                     CreatePickup(1247, tipo, X, Y, Z, -1);
  159.                     arquivo = fopen("Pickups.txt", io_append);
  160.                     format(caracteres, 256, "AddStaticPickup(1247, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  161.                     fwrite(arquivo, caracteres);
  162.                     fclose(arquivo);
  163.                     SendClientMessage(playerid, -1, "Pickup Criada!");
  164.                     ShowPlayerDialog(playerid, Dialog3Dpergunta, DIALOG_STYLE_MSGBOX,"3DText", "Você Gostaria de criar um 3DTextLabel na sua pickup?", "Sim", "Não");
  165.                 }
  166.                 case 8://logotipo
  167.                 {
  168.                     GetPlayerPos(playerid, X,Y,Z);
  169.                     CreatePickup(1248, tipo, X, Y, Z, -1);
  170.                     arquivo = fopen("Pickups.txt", io_append);
  171.                     format(caracteres, 256, "AddStaticPickup(1248, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  172.                     fwrite(arquivo, caracteres);
  173.                     fclose(arquivo);
  174.                     SendClientMessage(playerid, -1, "Pickup Criada!");
  175.                     ShowPlayerDialog(playerid, Dialog3Dpergunta, DIALOG_STYLE_MSGBOX,"3DText", "Você Gostaria de criar um 3DTextLabel na sua pickup?", "Sim", "Não");
  176.                 }
  177.                 case 9://Bomba
  178.                 {
  179.                     GetPlayerPos(playerid, X,Y,Z);
  180.                     CreatePickup(1252, tipo, X, Y, Z, -1);
  181.                     arquivo = fopen("Pickups.txt", io_append);
  182.                     format(caracteres, 256, "AddStaticPickup(1252, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  183.                     fwrite(arquivo, caracteres);
  184.                     fclose(arquivo);
  185.                     SendClientMessage(playerid, -1, "Pickup Criada!");
  186.                     ShowPlayerDialog(playerid, Dialog3Dpergunta, DIALOG_STYLE_MSGBOX,"3DText", "Você Gostaria de criar um 3DTextLabel na sua pickup?", "Sim", "Não");
  187.                 }
  188.                 case 10://Camera
  189.                 {
  190.                     GetPlayerPos(playerid, X,Y,Z);
  191.                     CreatePickup(1253, tipo, X, Y, Z, -1);
  192.                     arquivo = fopen("Pickups.txt", io_append);
  193.                     format(caracteres, 256, "AddStaticPickup(1253, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  194.                     fwrite(arquivo, caracteres);
  195.                     fclose(arquivo);
  196.                     SendClientMessage(playerid, -1, "Pickup Criada!");
  197.                     ShowPlayerDialog(playerid, Dialog3Dpergunta, DIALOG_STYLE_MSGBOX,"3DText", "Você Gostaria de criar um 3DTextLabel na sua pickup?", "Sim", "Não");
  198.                 }
  199.                 case 11://Caveira
  200.                 {
  201.                     GetPlayerPos(playerid, X,Y,Z);
  202.                     CreatePickup(1254, tipo, X, Y, Z, -1);
  203.                     arquivo = fopen("Pickups.txt", io_append);
  204.                     format(caracteres, 256, "AddStaticPickup(1254, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  205.                     fwrite(arquivo, caracteres);
  206.                     fclose(arquivo);
  207.                     SendClientMessage(playerid, -1, "Pickup Criada!");
  208.                     ShowPlayerDialog(playerid, Dialog3Dpergunta, DIALOG_STYLE_MSGBOX,"3DText", "Você Gostaria de criar um 3DTextLabel na sua pickup?", "Sim", "Não");
  209.                 }
  210.                 case 12://Cifrão
  211.                 {
  212.                     GetPlayerPos(playerid, X,Y,Z);
  213.                     CreatePickup(1274, tipo, X, Y, Z, -1);
  214.                     arquivo = fopen("Pickups.txt", io_append);
  215.                     format(caracteres, 256, "AddStaticPickup(1274, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  216.                     fwrite(arquivo, caracteres);
  217.                     fclose(arquivo);
  218.                     SendClientMessage(playerid, -1, "Pickup Criada!");
  219.                     ShowPlayerDialog(playerid, Dialog3Dpergunta, DIALOG_STYLE_MSGBOX,"3DText", "Você Gostaria de criar um 3DTextLabel na sua pickup?", "Sim", "Não");
  220.                 }
  221.                 case 13://Camiseta
  222.                 {
  223.                     GetPlayerPos(playerid, X,Y,Z);
  224.                     CreatePickup(1275, tipo, X, Y, Z, -1);
  225.                     arquivo = fopen("Pickups.txt", io_append);
  226.                     format(caracteres, 256, "AddStaticPickup(1275, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  227.                     fwrite(arquivo, caracteres);
  228.                     fclose(arquivo);
  229.                     SendClientMessage(playerid, -1, "Pickup Criada!");
  230.                     ShowPlayerDialog(playerid, Dialog3Dpergunta, DIALOG_STYLE_MSGBOX,"3DText", "Você Gostaria de criar um 3DTextLabel na sua pickup?", "Sim", "Não");
  231.                 }
  232.                 case 14://Save
  233.                 {
  234.                     GetPlayerPos(playerid, X,Y,Z);
  235.                     CreatePickup(1277, tipo, X, Y, Z, -1);
  236.                     arquivo = fopen("Pickups.txt", io_append);
  237.                     format(caracteres, 256, "AddStaticPickup(1277, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  238.                     fwrite(arquivo, caracteres);
  239.                     fclose(arquivo);
  240.                     SendClientMessage(playerid, -1, "Pickup Criada!");
  241.                     ShowPlayerDialog(playerid, Dialog3Dpergunta, DIALOG_STYLE_MSGBOX,"3DText", "Você Gostaria de criar um 3DTextLabel na sua pickup?", "Sim", "Não");
  242.                 }
  243.                 case 15://Caveiras
  244.                 {
  245.                     GetPlayerPos(playerid, X,Y,Z);
  246.                     CreatePickup(1313, tipo, X, Y, Z, -1);
  247.                     arquivo = fopen("Pickups.txt", io_append);
  248.                     format(caracteres, 256, "AddStaticPickup(1277, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  249.                     fwrite(arquivo, caracteres);
  250.                     fclose(arquivo);
  251.                     SendClientMessage(playerid, -1, "Pickup Criada!");
  252.                     ShowPlayerDialog(playerid, Dialog3Dpergunta, DIALOG_STYLE_MSGBOX,"3DText", "Você Gostaria de criar um 3DTextLabel na sua pickup?", "Sim", "Não");
  253.                 }
  254.                 case 16://Multiplayer
  255.                 {
  256.                     GetPlayerPos(playerid, X,Y,Z);
  257.                     CreatePickup(1314, tipo, X, Y, Z, -1);
  258.                     arquivo = fopen("Pickups.txt", io_append);
  259.                     format(caracteres, 256, "AddStaticPickup(1314, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  260.                     fwrite(arquivo, caracteres);
  261.                     fclose(arquivo);
  262.                     SendClientMessage(playerid, -1, "Pickup Criada!");
  263.                     ShowPlayerDialog(playerid, Dialog3Dpergunta, DIALOG_STYLE_MSGBOX,"3DText", "Você Gostaria de criar um 3DTextLabel na sua pickup?", "Sim", "Não");
  264.                 }
  265.                 case 17://Totem
  266.                 {
  267.                     GetPlayerPos(playerid, X,Y,Z);
  268.                     CreatePickup(1276, tipo, X, Y, Z, -1);
  269.                     arquivo = fopen("Pickups.txt", io_append);
  270.                     format(caracteres, 256, "AddStaticPickup(1276, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  271.                     fwrite(arquivo, caracteres);
  272.                     fclose(arquivo);
  273.                     SendClientMessage(playerid, -1, "Pickup Criada!");
  274.                     ShowPlayerDialog(playerid, Dialog3Dpergunta, DIALOG_STYLE_MSGBOX,"3DText", "Você Gostaria de criar um 3DTextLabel na sua pickup?", "Sim", "Não");
  275.                 }
  276.                 case 18://Paraquedas
  277.                 {
  278.                     GetPlayerPos(playerid, X,Y,Z);
  279.                     CreatePickup(1310, tipo, X, Y, Z, -1);
  280.                     arquivo = fopen("Pickups.txt", io_append);
  281.                     format(caracteres, 256, "AddStaticPickup(1310, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  282.                     fwrite(arquivo, caracteres);
  283.                     fclose(arquivo);
  284.                     SendClientMessage(playerid, -1, "Pickup Criada!");
  285.                     ShowPlayerDialog(playerid, Dialog3Dpergunta, DIALOG_STYLE_MSGBOX,"3DText", "Você Gostaria de criar um 3DTextLabel na sua pickup?", "Sim", "Não");
  286.                 }
  287.                 case 19://Seta
  288.                 {
  289.                     GetPlayerPos(playerid, X,Y,Z);
  290.                     CreatePickup(1318, tipo, X, Y, Z, -1);
  291.                     arquivo = fopen("Pickups.txt", io_append);
  292.                     format(caracteres, 256, "AddStaticPickup(1279, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  293.                     fwrite(arquivo, caracteres);
  294.                     fclose(arquivo);
  295.                     SendClientMessage(playerid, -1, "Pickup Criada!");
  296.                     ShowPlayerDialog(playerid, Dialog3Dpergunta, DIALOG_STYLE_MSGBOX,"3DText", "Você Gostaria de criar um 3DTextLabel na sua pickup?", "Sim", "Não");
  297.                 }
  298.                 case 20://Drogas
  299.                 {
  300.                     GetPlayerPos(playerid, X,Y,Z);
  301.                     CreatePickup(1279, tipo, X, Y, Z, -1);
  302.                     arquivo = fopen("Pickups.txt", io_append);
  303.                     format(caracteres, 256, "AddStaticPickup(1279, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  304.                     fwrite(arquivo, caracteres);
  305.                     fclose(arquivo);
  306.                     SendClientMessage(playerid, -1, "Pickup Criada!");
  307.                     ShowPlayerDialog(playerid, Dialog3Dpergunta, DIALOG_STYLE_MSGBOX,"3DText", "Você Gostaria de criar um 3DTextLabel na sua pickup?", "Sim", "Não");
  308.                 }
  309.             }
  310.         }
  311.         case 6:
  312.         {
  313.             if(response == 0) return 1;
  314.             ShowPlayerDialog(playerid, Dialog3DText, DIALOG_STYLE_INPUT,"Criando 3D", "{FFFFFF}Digite o texto da sua 3DText", "Continuar", "Cancelar");
  315.         }
  316.         case 7:
  317.         {
  318.             if(response == 0) return 1;
  319.             strmid(texto, (inputtext), 0, strlen(inputtext), 255);
  320.             ShowPlayerDialog(playerid, Dialog3DCor, DIALOG_STYLE_LIST,"Escolha uma cor", "{AFAFAF}Cinza\n{33AA33}Verde\n{FF0000}Vermelho\n{FFFF00}Amarelo\n{FFFFFF}Branco\n{C2A2DA}Roxo\n{2641FE}Azul\n{F69521}Laranja", "Continuar", "Cancelar");
  321.         }
  322.         case 8:
  323.         {
  324.             switch(listitem)
  325.             {
  326.                 case 0:
  327.                 {
  328.                     if(response == 0) return 1;
  329.                     GetPlayerPos(playerid, X, Y, Z);
  330.                     new string[ 100 ];
  331.                     format(string, 150, "%s", texto);
  332.                     Create3DTextLabel(texto, 0xAFAFAFAA, X, Y, Z, 10, 0, -1);
  333.                     arquivo = fopen("Pickups.txt", io_append);
  334.                     format(caracteres, 256,"Create3DTextLabel(\"%s\", 0xAFAFAFAA, %f, %f, %f, 10, 0, 0);\r\n", string, X, Y, Z);
  335.                     fwrite(arquivo, caracteres);
  336.                     fclose(arquivo);
  337.                 }
  338.                 case 1:
  339.                 {
  340.                     if(response == 0) return 1;
  341.                     GetPlayerPos(playerid, X, Y, Z);
  342.                     new string[ 100 ];
  343.                     format(string, 150, "%s", texto);
  344.                     Create3DTextLabel(texto, 0x33AA33AA, X, Y, Z, 10, 0, -1);
  345.                     arquivo = fopen("Pickups.txt", io_append);
  346.                     format(caracteres, 256,"Create3DTextLabel(\"%s\", 0x33AA33AA, %f, %f, %f, 10, 0, 0);\r\n", string, X, Y, Z);
  347.                     fwrite(arquivo, caracteres);
  348.                     fclose(arquivo);
  349.                 }
  350.                 case 2:
  351.                 {
  352.                     if(response == 0) return 1;
  353.                     GetPlayerPos(playerid, X, Y, Z);
  354.                     new string[ 100 ];
  355.                     format(string, 150, "%s", texto);
  356.                     Create3DTextLabel(texto, 0xFF0000AA, X, Y, Z, 10, 0, -1);
  357.                     arquivo = fopen("Pickups.txt", io_append);
  358.                     format(caracteres, 256,"Create3DTextLabel(\"%s\", 0xFF0000AA, %f, %f, %f, 10, 0, 0);\r\n", string, X, Y, Z);
  359.                     fwrite(arquivo, caracteres);
  360.                     fclose(arquivo);
  361.                 }
  362.                 case 3:
  363.                 {
  364.                     if(response == 0) return 1;
  365.                     GetPlayerPos(playerid, X, Y, Z);
  366.                     new string[ 100 ];
  367.                     format(string, 150, "%s", texto);
  368.                     Create3DTextLabel(texto, 0xFFFF00AA, X, Y, Z, 10, 0, -1);
  369.                     arquivo = fopen("Pickups.txt", io_append);
  370.                     format(caracteres, 256,"Create3DTextLabel(\"%s\", 0xFFFF00AA, %f, %f, %f, 10, 0, 0);\r\n", string, X, Y, Z);
  371.                     fwrite(arquivo, caracteres);
  372.                     fclose(arquivo);
  373.                 }
  374.                 case 4:
  375.                 {
  376.                     if(response == 0) return 1;
  377.                     GetPlayerPos(playerid, X, Y, Z);
  378.                     new string[ 100 ];
  379.                     format(string, 150, "%s", texto);
  380.                     Create3DTextLabel(texto, 0xFFFFFFAA, X, Y, Z, 10, 0, -1);
  381.                     arquivo = fopen("Pickups.txt", io_append);
  382.                     format(caracteres, 256,"Create3DTextLabel(\"%s\", 0xFFFFFFAA, %f, %f, %f, 10, 0, 0);\r\n", string, X, Y, Z);
  383.                     fwrite(arquivo, caracteres);
  384.                     fclose(arquivo);
  385.                 }
  386.                 case 5:
  387.                 {
  388.                     if(response == 0) return 1;
  389.                     GetPlayerPos(playerid, X, Y, Z);
  390.                     new string[ 100 ];
  391.                     format(string, 150, "%s", texto);
  392.                     Create3DTextLabel(texto, 0xC2A2DAAA, X, Y, Z, 10, 0, -1);
  393.                     arquivo = fopen("Pickups.txt", io_append);
  394.                     format(caracteres, 256,"Create3DTextLabel(\"%s\", 0xC2A2DAAA, %f, %f, %f, 10, 0, 0);\r\n", string, X, Y, Z);
  395.                     fwrite(arquivo, caracteres);
  396.                     fclose(arquivo);
  397.                 }
  398.                 case 6:
  399.                 {
  400.                     if(response == 0) return 1;
  401.                     GetPlayerPos(playerid, X, Y, Z);
  402.                     new string[ 100 ];
  403.                     format(string, 150, "%s", texto);
  404.                     Create3DTextLabel(texto, 0x2641FEAA, X, Y, Z, 10, 0, -1);
  405.                     arquivo = fopen("Pickups.txt", io_append);
  406.                     format(caracteres, 256,"Create3DTextLabel(\"%s\", 0x2641FEAA, %f, %f, %f, 10, 0, 0);\r\n", string, X, Y, Z);
  407.                     fwrite(arquivo, caracteres);
  408.                     fclose(arquivo);
  409.                 }
  410.                 case 7:
  411.                 {
  412.                     if(response == 0) return 1;
  413.                     GetPlayerPos(playerid, X, Y, Z);
  414.                     new string[ 100 ];
  415.                     format(string, 150, "%s", texto);
  416.                     Create3DTextLabel(texto, 0xF69521FF, X, Y, Z, 10, 0, -1);
  417.                     arquivo = fopen("Pickups.txt", io_append);
  418.                     format(caracteres, 256,"Create3DTextLabel(\"%s\", 0xF69521FF, %f, %f, %f, 10, 0, 0);\r\n", string, X, Y, Z);
  419.                     fwrite(arquivo, caracteres);
  420.                     fclose(arquivo);
  421.                 }
  422.             }
  423.         }
  424.     }
  425.     return 1;
  426. }
  427.  
  428. CMD:criarpickup(playerid,params[])
  429. {
  430.     ShowPlayerDialog(playerid, DialogTipos, DIALOG_STYLE_INPUT,"Criando Pickup", "Escolha o tipo da sua pickup.\n\nRecomendado: 1\n\nPara saber os tipos digite /tipospickup", "Continuar","Cancelar");
  431.     return 1;
  432. }
  433.  
  434. CMD:creditospickup(playerid, params[])
  435. {
  436.     new string[100];
  437.     strcat(string, "{00FFFF}Los & Larceny{FFFFFF} - Criação do filterscript.");
  438.     strcat(string, "{00FFFF}ZeeX{FFFFFF} - Include ZCMD.");
  439.     strcat(string, "{00FFFF}SA:MP Team{FFFFFF} - Tudo.");
  440.     ShowPlayerDialog(playerid, DialogCreditos, DIALOG_STYLE_MSGBOX,"Autores", string, "Ok", "");
  441.     return 1;
  442. }
  443.  
  444. CMD:ajudapickup(playerid, params[])
  445. {
  446.     new string[100];
  447.     strcat(string, "{00FFFF}/criarpickup{FFFFFF} - Cria uma pickup em suas configurações.");
  448.     strcat(string, "{00FFFF}/tipospickups{FFFFFF} - Vê os tipos das pickups.");
  449.     strcat(string, "{00FFFF}/creditospickup{FFFFFF} - Vê os créditos do sistema.");
  450.     ShowPlayerDialog(playerid, DialogAjuda, DIALOG_STYLE_MSGBOX,"Ajuda", string, "Ok", "");
  451.     return 1;
  452. }
  453.  
  454. CMD:tipospickup(playerid, params[])
  455. {
  456.     new string[900];
  457.     strcat(string, "{00FFFF}0{FFFFFF} - A pickup não é mostrada.\n");
  458.     strcat(string, "{00FFFF}1{FF00FF}(RECOMENDADA){FFFFFF} - A pickup existe o tempo todo.\n");
  459.     strcat(string, "{00FFFF}2{FFFFFF} - É pegavel, e respawna após um tempo.\n");
  460.     strcat(string, "{00FFFF}3{FFFFFF} - É pegavel, e respawna após ser pega.\n");
  461.     strcat(string, "{00FFFF}4{FFFFFF} - Desaparece tempo depois de ser criada.\n");
  462.     strcat(string, "{00FFFF}5{FFFFFF} - Desaparece tempo depois de ser criada.\n");
  463.     strcat(string, "{00FFFF}8{FFFFFF} - É pegavel, mais não tem efeito algum, desaparece automaticamente.\n");
  464.     strcat(string, "{00FFFF}11{FFFFFF} - Explode alguns segundos depois de ser criada.\n");
  465.     strcat(string, "{00FFFF}12{FFFFFF} - Explode alguns segundos depois de ser criada.\n");
  466.     strcat(string, "{00FFFF}13{FFFFFF} - Desce devagar para o solo.\n");
  467.     strcat(string, "{00FFFF}14{FFFFFF} - Pegavel somente em veículo.\n");
  468.     strcat(string, "{00FFFF}15{FFFFFF} - Pegavel, respawna após ser pega.\n");
  469.     strcat(string, "{00FFFF}19{FFFFFF} - É pegavel, mais não tem nenhum efeito.\n");
  470.     strcat(string, "{00FFFF}22{FFFFFF} - Pegavel, respawna após ser pega.\n");
  471.     strcat(string, "{00FFFF}23{FFFFFF} - Pegavel, mais não afeta a pickup.\n");
  472.     ShowPlayerDialog(playerid, DialogAjuda, DIALOG_STYLE_MSGBOX,"Ajuda", string, "Ok", "");
  473.     return 1;
  474. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement