Advertisement
losnato

[FilterScript] Pickup Creator [ EN ]

Oct 5th, 2011
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 23.73 KB | None | 0 0
  1. /*
  2.                                         ********************************
  3.                                                 Pickup Creator
  4.                                         ********************************
  5. Description:
  6.         Allow you make pickups and 3Dtext with some clicks in-game!
  7. Version:
  8.         1.0
  9. Developer:
  10.         "Lós" .
  11.         Luke "Larceny" G.
  12. ChangeLOG:
  13.         18/09/2011:
  14.                 First version.
  15. Thanks To:
  16.         ZeeX                    - ZCMD Command Processor.
  17.         SA-MP Team              - For All.
  18. */
  19.  
  20. //====================== [ INCLUDES ] =========================//
  21. #include        <  a_samp   >
  22. #include        <   zcmd    >
  23.  
  24. //====================== [ CONFIGURAÇÕES ] =========================//
  25. #define         DialogType           1  //Change it if you have a dialog with it ID
  26. #define         DialogPickups         2  //Change it if you have a dialog with it ID
  27. #define         DialogType2          3  //Change it if you have a dialog with it ID
  28. #define         DialogCredits        4  //Change it if you have a dialog with it ID
  29. #define         DialogHelp           5  //Change it if you have a dialog with it ID
  30. #define         Dialog3DQuestion      6  //Change it if you have a dialog with it ID
  31. #define         Dialog3DText          7  //Change it if you have a dialog with it ID
  32. #define         Dialog3DColor           8  //Change it if you have a dialog with it ID
  33.  
  34. //====================== [ VARIAVEIS GLOBAIS ] =====================//
  35. new
  36.     caracteres[100],
  37.     Float:X,
  38.     Float:Y,
  39.     Float:Z,
  40.     tipo,
  41.     texto[128],
  42.     File:arquivo;
  43.  
  44. public OnFilterScriptInit()
  45. {
  46.     print("\n--------------------------------------");
  47.     print(" Pickup Creator - Successfully loaded");
  48.     print("--------------------------------------\n");
  49.     return 1;
  50. }
  51.  
  52. public OnPlayerConnect(playerid)
  53. {
  54.     SendClientMessage(playerid, -1, "Use: /pickupcreate for make a new project :)");
  55.     return 1;
  56. }
  57.  
  58. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  59. {
  60.     switch(dialogid)
  61.     {
  62.         case 1:
  63.         {
  64.             if(response == 0) return 1;
  65.             tipo = strval(inputtext);
  66.             if(0 < tipo > 23) return SendClientMessage(playerid, -1, "Use only 0 - 23.");
  67.             ShowPlayerDialog(playerid, DialogPickups, DIALOG_STYLE_LIST,"Pickup Creator", "Hearth\nArmour\nInfo\nBlue House\nGreen House\nMoney\nAspirine\nBadge\nGTA3 Sign\nBomb\nCamera\nSkull\nMoney ($)\nT-Shirt\nDisk\nSkulls\nMultiplayer Icon\nStatue\nParachute\nWhite Arrow\nDrugs","Continue","Cancel");
  68.         }
  69.         case 2:
  70.         {
  71.             if(response == 0) return 1;
  72.             switch(listitem)
  73.             {
  74.                 case 0://vida
  75.                 {
  76.                     GetPlayerPos(playerid, X,Y,Z);
  77.                     CreatePickup(1240, tipo, X, Y, Z, -1);
  78.                     arquivo = fopen("CP.txt", io_append);
  79.                     format(caracteres, 256, "AddStaticPickup(1240, %d, %f, %f, %f, -1);\r\n", tipo, X, Y, Z);
  80.                     fwrite(arquivo, caracteres);
  81.                     fclose(arquivo);
  82.                     SendClientMessage(playerid, -1, "Ready!");
  83.                     ShowPlayerDialog(playerid, Dialog3DQuestion, DIALOG_STYLE_MSGBOX,"3DText", "Did you want do a 3DTextLabel?", "Yes", "Not");
  84.                 }
  85.                 case 1://colete
  86.                 {
  87.                     GetPlayerPos(playerid, X,Y,Z);
  88.                     CreatePickup(1242, tipo, X, Y, Z, -1);
  89.                     arquivo = fopen("CP.txt", io_append);
  90.                     format(caracteres, 256, "AddStaticPickup(1242, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  91.                     fwrite(arquivo, caracteres);
  92.                     fclose(arquivo);
  93.                     SendClientMessage(playerid, -1, "Ready!");
  94.                     ShowPlayerDialog(playerid, Dialog3DQuestion, DIALOG_STYLE_MSGBOX,"3DText", "Did you want do a 3DTextLabel?", "Yes", "Not");
  95.                 }
  96.                 case 2://Informação
  97.                 {
  98.                     GetPlayerPos(playerid, X,Y,Z);
  99.                     CreatePickup(1239, tipo, X, Y, Z, -1);
  100.                     arquivo = fopen("CP.txt", io_append);
  101.                     format(caracteres, 256, "AddStaticPickup(1239, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  102.                     fwrite(arquivo, caracteres);
  103.                     fclose(arquivo);
  104.                     SendClientMessage(playerid, -1, "Ready!");
  105.                     ShowPlayerDialog(playerid, Dialog3DQuestion, DIALOG_STYLE_MSGBOX,"3DText", "Did you want do a 3DTextLabel?", "Yes", "Not");
  106.                 }
  107.                 case 3://Casa azul
  108.                 {
  109.                     GetPlayerPos(playerid, X,Y,Z);
  110.                     CreatePickup(1272, tipo, X, Y, Z, -1);
  111.                     arquivo = fopen("CP.txt", io_append);
  112.                     format(caracteres, 256, "AddStaticPickup(1272, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  113.                     fwrite(arquivo, caracteres);
  114.                     fclose(arquivo);
  115.                     SendClientMessage(playerid, -1, "Ready!");
  116.                     ShowPlayerDialog(playerid, Dialog3DQuestion, DIALOG_STYLE_MSGBOX,"3DText", "Did you want do a 3DTextLabel?", "Yes", "Not");
  117.                 }
  118.                 case 4://Casa verde
  119.                 {
  120.                     GetPlayerPos(playerid, X,Y,Z);
  121.                     CreatePickup(1273, tipo, X, Y, Z, -1);
  122.                     arquivo = fopen("CP.txt", io_append);
  123.                     format(caracteres, 256, "AddStaticPickup(1273, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  124.                     fwrite(arquivo, caracteres);
  125.                     fclose(arquivo);
  126.                     SendClientMessage(playerid, -1, "Ready!");
  127.                     ShowPlayerDialog(playerid, Dialog3DQuestion, DIALOG_STYLE_MSGBOX,"3DText", "Did you want do a 3DTextLabel?", "Yes", "Not");
  128.                 }
  129.                 case 5://Dinheiro
  130.                 {
  131.                     GetPlayerPos(playerid, X,Y,Z);
  132.                     CreatePickup(1212, tipo, X, Y, Z, -1);
  133.                     arquivo = fopen("CP.txt", io_append);
  134.                     format(caracteres, 256, "AddStaticPickup(1212, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  135.                     fwrite(arquivo, caracteres);
  136.                     fclose(arquivo);
  137.                     SendClientMessage(playerid, -1, "Ready!");
  138.                     ShowPlayerDialog(playerid, Dialog3DQuestion, DIALOG_STYLE_MSGBOX,"3DText", "Did you want do a 3DTextLabel?", "Yes", "Not");
  139.                 }
  140.                 case 6://Pílula
  141.                 {
  142.                     GetPlayerPos(playerid, X,Y,Z);
  143.                     CreatePickup(1241, tipo, X, Y, Z, -1);
  144.                     arquivo = fopen("CP.txt", io_append);
  145.                     format(caracteres, 256, "AddStaticPickup(1241, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  146.                     fwrite(arquivo, caracteres);
  147.                     fclose(arquivo);
  148.                     SendClientMessage(playerid, -1, "Ready!");
  149.                     ShowPlayerDialog(playerid, Dialog3DQuestion, DIALOG_STYLE_MSGBOX,"3DText", "Did you want do a 3DTextLabel?", "Yes", "Not");
  150.                 }
  151.                 case 7://Distintivo
  152.                 {
  153.                     GetPlayerPos(playerid, X,Y,Z);
  154.                     CreatePickup(1247, tipo, X, Y, Z, -1);
  155.                     arquivo = fopen("CP.txt", io_append);
  156.                     format(caracteres, 256, "AddStaticPickup(1247, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  157.                     fwrite(arquivo, caracteres);
  158.                     fclose(arquivo);
  159.                     SendClientMessage(playerid, -1, "Ready!");
  160.                     ShowPlayerDialog(playerid, Dialog3DQuestion, DIALOG_STYLE_MSGBOX,"3DText", "Did you want do a 3DTextLabel?", "Yes", "Not");
  161.                 }
  162.                 case 8://logotipo
  163.                 {
  164.                     GetPlayerPos(playerid, X,Y,Z);
  165.                     CreatePickup(1248, tipo, X, Y, Z, -1);
  166.                     arquivo = fopen("CP.txt", io_append);
  167.                     format(caracteres, 256, "AddStaticPickup(1248, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  168.                     fwrite(arquivo, caracteres);
  169.                     fclose(arquivo);
  170.                     SendClientMessage(playerid, -1, "Ready!");
  171.                     ShowPlayerDialog(playerid, Dialog3DQuestion, DIALOG_STYLE_MSGBOX,"3DText", "Did you want do a 3DTextLabel?", "Yes", "Not");
  172.                 }
  173.                 case 9://Bomba
  174.                 {
  175.                     GetPlayerPos(playerid, X,Y,Z);
  176.                     CreatePickup(1252, tipo, X, Y, Z, -1);
  177.                     arquivo = fopen("CP.txt", io_append);
  178.                     format(caracteres, 256, "AddStaticPickup(1252, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  179.                     fwrite(arquivo, caracteres);
  180.                     fclose(arquivo);
  181.                     SendClientMessage(playerid, -1, "Ready!");
  182.                     ShowPlayerDialog(playerid, Dialog3DQuestion, DIALOG_STYLE_MSGBOX,"3DText", "Did you want do a 3DTextLabel?", "Yes", "Not");
  183.                 }
  184.                 case 10://Camera
  185.                 {
  186.                     GetPlayerPos(playerid, X,Y,Z);
  187.                     CreatePickup(1253, tipo, X, Y, Z, -1);
  188.                     arquivo = fopen("CP.txt", io_append);
  189.                     format(caracteres, 256, "AddStaticPickup(1253, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  190.                     fwrite(arquivo, caracteres);
  191.                     fclose(arquivo);
  192.                     SendClientMessage(playerid, -1, "Ready!");
  193.                     ShowPlayerDialog(playerid, Dialog3DQuestion, DIALOG_STYLE_MSGBOX,"3DText", "Did you want do a 3DTextLabel?", "Yes", "Not");
  194.                 }
  195.                 case 11://Caveira
  196.                 {
  197.                     GetPlayerPos(playerid, X,Y,Z);
  198.                     CreatePickup(1254, tipo, X, Y, Z, -1);
  199.                     arquivo = fopen("CP.txt", io_append);
  200.                     format(caracteres, 256, "AddStaticPickup(1254, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  201.                     fwrite(arquivo, caracteres);
  202.                     fclose(arquivo);
  203.                     SendClientMessage(playerid, -1, "Ready!");
  204.                     ShowPlayerDialog(playerid, Dialog3DQuestion, DIALOG_STYLE_MSGBOX,"3DText", "Did you want do a 3DTextLabel?", "Yes", "Not");
  205.                 }
  206.                 case 12://Cifrão
  207.                 {
  208.                     GetPlayerPos(playerid, X,Y,Z);
  209.                     CreatePickup(1274, tipo, X, Y, Z, -1);
  210.                     arquivo = fopen("CP.txt", io_append);
  211.                     format(caracteres, 256, "AddStaticPickup(1274, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  212.                     fwrite(arquivo, caracteres);
  213.                     fclose(arquivo);
  214.                     SendClientMessage(playerid, -1, "Ready!");
  215.                     ShowPlayerDialog(playerid, Dialog3DQuestion, DIALOG_STYLE_MSGBOX,"3DText", "Did you want do a 3DTextLabel?", "Yes", "Not");
  216.                 }
  217.                 case 13://Camiseta
  218.                 {
  219.                     GetPlayerPos(playerid, X,Y,Z);
  220.                     CreatePickup(1275, tipo, X, Y, Z, -1);
  221.                     arquivo = fopen("CP.txt", io_append);
  222.                     format(caracteres, 256, "AddStaticPickup(1275, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  223.                     fwrite(arquivo, caracteres);
  224.                     fclose(arquivo);
  225.                     SendClientMessage(playerid, -1, "Ready!");
  226.                     ShowPlayerDialog(playerid, Dialog3DQuestion, DIALOG_STYLE_MSGBOX,"3DText", "Did you want do a 3DTextLabel?", "Yes", "Not");
  227.                 }
  228.                 case 14://Save
  229.                 {
  230.                     GetPlayerPos(playerid, X,Y,Z);
  231.                     CreatePickup(1277, tipo, X, Y, Z, -1);
  232.                     arquivo = fopen("CP.txt", io_append);
  233.                     format(caracteres, 256, "AddStaticPickup(1277, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  234.                     fwrite(arquivo, caracteres);
  235.                     fclose(arquivo);
  236.                     SendClientMessage(playerid, -1, "Ready!");
  237.                     ShowPlayerDialog(playerid, Dialog3DQuestion, DIALOG_STYLE_MSGBOX,"3DText", "Did you want do a 3DTextLabel?", "Yes", "Not");
  238.                 }
  239.                 case 15://Caveiras
  240.                 {
  241.                     GetPlayerPos(playerid, X,Y,Z);
  242.                     CreatePickup(1313, tipo, X, Y, Z, -1);
  243.                     arquivo = fopen("CP.txt", io_append);
  244.                     format(caracteres, 256, "AddStaticPickup(1277, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  245.                     fwrite(arquivo, caracteres);
  246.                     fclose(arquivo);
  247.                     SendClientMessage(playerid, -1, "Ready!");
  248.                     ShowPlayerDialog(playerid, Dialog3DQuestion, DIALOG_STYLE_MSGBOX,"3DText", "Did you want do a 3DTextLabel?", "Yes", "Not");
  249.                 }
  250.                 case 16://Multiplayer
  251.                 {
  252.                     GetPlayerPos(playerid, X,Y,Z);
  253.                     CreatePickup(1314, tipo, X, Y, Z, -1);
  254.                     arquivo = fopen("CP.txt", io_append);
  255.                     format(caracteres, 256, "AddStaticPickup(1314, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  256.                     fwrite(arquivo, caracteres);
  257.                     fclose(arquivo);
  258.                     SendClientMessage(playerid, -1, "Ready!");
  259.                     ShowPlayerDialog(playerid, Dialog3DQuestion, DIALOG_STYLE_MSGBOX,"3DText", "Did you want do a 3DTextLabel?", "Yes", "Not");
  260.                 }
  261.                 case 17://Totem
  262.                 {
  263.                     GetPlayerPos(playerid, X,Y,Z);
  264.                     CreatePickup(1276, tipo, X, Y, Z, -1);
  265.                     arquivo = fopen("CP.txt", io_append);
  266.                     format(caracteres, 256, "AddStaticPickup(1276, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  267.                     fwrite(arquivo, caracteres);
  268.                     fclose(arquivo);
  269.                     SendClientMessage(playerid, -1, "Ready!");
  270.                     ShowPlayerDialog(playerid, Dialog3DQuestion, DIALOG_STYLE_MSGBOX,"3DText", "Did you want do a 3DTextLabel?", "Yes", "Not");
  271.                 }
  272.                 case 18://Paraquedas
  273.                 {
  274.                     GetPlayerPos(playerid, X,Y,Z);
  275.                     CreatePickup(1310, tipo, X, Y, Z, -1);
  276.                     arquivo = fopen("CP.txt", io_append);
  277.                     format(caracteres, 256, "AddStaticPickup(1310, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  278.                     fwrite(arquivo, caracteres);
  279.                     fclose(arquivo);
  280.                     SendClientMessage(playerid, -1, "Ready!");
  281.                     ShowPlayerDialog(playerid, Dialog3DQuestion, DIALOG_STYLE_MSGBOX,"3DText", "Did you want do a 3DTextLabel?", "Yes", "Not");
  282.                 }
  283.                 case 19://Seta
  284.                 {
  285.                     GetPlayerPos(playerid, X,Y,Z);
  286.                     CreatePickup(1318, tipo, X, Y, Z, -1);
  287.                     arquivo = fopen("CP.txt", io_append);
  288.                     format(caracteres, 256, "AddStaticPickup(1279, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  289.                     fwrite(arquivo, caracteres);
  290.                     fclose(arquivo);
  291.                     SendClientMessage(playerid, -1, "Ready!");
  292.                     ShowPlayerDialog(playerid, Dialog3DQuestion, DIALOG_STYLE_MSGBOX,"3DText", "Did you want do a 3DTextLabel?", "Yes", "Not");
  293.                 }
  294.                 case 20://Drogas
  295.                 {
  296.                     GetPlayerPos(playerid, X,Y,Z);
  297.                     CreatePickup(1279, tipo, X, Y, Z, -1);
  298.                     arquivo = fopen("CP.txt", io_append);
  299.                     format(caracteres, 256, "AddStaticPickup(1279, %d, %f, %f, %f, 0);\r\n", tipo, X, Y, Z);
  300.                     fwrite(arquivo, caracteres);
  301.                     fclose(arquivo);
  302.                     SendClientMessage(playerid, -1, "Ready!");
  303.                     ShowPlayerDialog(playerid, Dialog3DQuestion, DIALOG_STYLE_MSGBOX,"3DText", "Did you want do a 3DTextLabel?", "Yes", "Not");
  304.                 }
  305.             }
  306.         }
  307.         case 6:
  308.         {
  309.             if(response == 0) return 1;
  310.             ShowPlayerDialog(playerid, Dialog3DText, DIALOG_STYLE_INPUT,"Creating 3D", "{FFFFFF}Write the text", "Continue", "Cancel");
  311.         }
  312.         case 7:
  313.         {
  314.             if(response == 0) return 1;
  315.             strmid(texto, (inputtext), 0, strlen(inputtext), 255);
  316.             ShowPlayerDialog(playerid, Dialog3DColor, DIALOG_STYLE_LIST,"Color", "{AFAFAF}Gray\n{33AA33}Green\n{FF0000}Red\n{FFFF00}Yellow\n{FFFFFF}White\n{C2A2DA}Purple\n{2641FE}Blue\n{F69521}Orange", "Continue", "Cancel");
  317.         }
  318.         case 8:
  319.         {
  320.             switch(listitem)
  321.             {
  322.                 case 0:
  323.                 {
  324.                     if(response == 0) return 1;
  325.                     GetPlayerPos(playerid, X, Y, Z);
  326.                     new string[ 100 ];
  327.                     format(string, 150, "%s", texto);
  328.                     Create3DTextLabel(texto, 0xAFAFAFAA, X, Y, Z, 10, 0, -1);
  329.                     arquivo = fopen("CP.txt", io_append);
  330.                     format(caracteres, 256,"Create3DTextLabel(\"%s\", 0xAFAFAFAA, %f, %f, %f, 10, 0, 0);\r\n", string, X, Y, Z);
  331.                     fwrite(arquivo, caracteres);
  332.                     fclose(arquivo);
  333.                 }
  334.                 case 1:
  335.                 {
  336.                     if(response == 0) return 1;
  337.                     GetPlayerPos(playerid, X, Y, Z);
  338.                     new string[ 100 ];
  339.                     format(string, 150, "%s", texto);
  340.                     Create3DTextLabel(texto, 0x33AA33AA, X, Y, Z, 10, 0, -1);
  341.                     arquivo = fopen("CP.txt", io_append);
  342.                     format(caracteres, 256,"Create3DTextLabel(\"%s\", 0x33AA33AA, %f, %f, %f, 10, 0, 0);\r\n", string, X, Y, Z);
  343.                     fwrite(arquivo, caracteres);
  344.                     fclose(arquivo);
  345.                 }
  346.                 case 2:
  347.                 {
  348.                     if(response == 0) return 1;
  349.                     GetPlayerPos(playerid, X, Y, Z);
  350.                     new string[ 100 ];
  351.                     format(string, 150, "%s", texto);
  352.                     Create3DTextLabel(texto, 0xFF0000AA, X, Y, Z, 10, 0, -1);
  353.                     arquivo = fopen("CP.txt", io_append);
  354.                     format(caracteres, 256,"Create3DTextLabel(\"%s\", 0xFF0000AA, %f, %f, %f, 10, 0, 0);\r\n", string, X, Y, Z);
  355.                     fwrite(arquivo, caracteres);
  356.                     fclose(arquivo);
  357.                 }
  358.                 case 3:
  359.                 {
  360.                     if(response == 0) return 1;
  361.                     GetPlayerPos(playerid, X, Y, Z);
  362.                     new string[ 100 ];
  363.                     format(string, 150, "%s", texto);
  364.                     Create3DTextLabel(texto, 0xFFFF00AA, X, Y, Z, 10, 0, -1);
  365.                     arquivo = fopen("CP.txt", io_append);
  366.                     format(caracteres, 256,"Create3DTextLabel(\"%s\", 0xFFFF00AA, %f, %f, %f, 10, 0, 0);\r\n", string, X, Y, Z);
  367.                     fwrite(arquivo, caracteres);
  368.                     fclose(arquivo);
  369.                 }
  370.                 case 4:
  371.                 {
  372.                     if(response == 0) return 1;
  373.                     GetPlayerPos(playerid, X, Y, Z);
  374.                     new string[ 100 ];
  375.                     format(string, 150, "%s", texto);
  376.                     Create3DTextLabel(texto, 0xFFFFFFAA, X, Y, Z, 10, 0, -1);
  377.                     arquivo = fopen("CP.txt", io_append);
  378.                     format(caracteres, 256,"Create3DTextLabel(\"%s\", 0xFFFFFFAA, %f, %f, %f, 10, 0, 0);\r\n", string, X, Y, Z);
  379.                     fwrite(arquivo, caracteres);
  380.                     fclose(arquivo);
  381.                 }
  382.                 case 5:
  383.                 {
  384.                     if(response == 0) return 1;
  385.                     GetPlayerPos(playerid, X, Y, Z);
  386.                     new string[ 100 ];
  387.                     format(string, 150, "%s", texto);
  388.                     Create3DTextLabel(texto, 0xC2A2DAAA, X, Y, Z, 10, 0, -1);
  389.                     arquivo = fopen("CP.txt", io_append);
  390.                     format(caracteres, 256,"Create3DTextLabel(\"%s\", 0xC2A2DAAA, %f, %f, %f, 10, 0, 0);\r\n", string, X, Y, Z);
  391.                     fwrite(arquivo, caracteres);
  392.                     fclose(arquivo);
  393.                 }
  394.                 case 6:
  395.                 {
  396.                     if(response == 0) return 1;
  397.                     GetPlayerPos(playerid, X, Y, Z);
  398.                     new string[ 100 ];
  399.                     format(string, 150, "%s", texto);
  400.                     Create3DTextLabel(texto, 0x2641FEAA, X, Y, Z, 10, 0, -1);
  401.                     arquivo = fopen("CP.txt", io_append);
  402.                     format(caracteres, 256,"Create3DTextLabel(\"%s\", 0x2641FEAA, %f, %f, %f, 10, 0, 0);\r\n", string, X, Y, Z);
  403.                     fwrite(arquivo, caracteres);
  404.                     fclose(arquivo);
  405.                 }
  406.                 case 7:
  407.                 {
  408.                     if(response == 0) return 1;
  409.                     GetPlayerPos(playerid, X, Y, Z);
  410.                     new string[ 100 ];
  411.                     format(string, 150, "%s", texto);
  412.                     Create3DTextLabel(texto, 0xF69521FF, X, Y, Z, 10, 0, -1);
  413.                     arquivo = fopen("CP.txt", io_append);
  414.                     format(caracteres, 256,"Create3DTextLabel(\"%s\", 0xF69521FF, %f, %f, %f, 10, 0, 0);\r\n", string, X, Y, Z);
  415.                     fwrite(arquivo, caracteres);
  416.                     fclose(arquivo);
  417.                 }
  418.             }
  419.         }
  420.     }
  421.     return 1;
  422. }
  423.  
  424. CMD:pickupcreate(playerid,params[])
  425. {
  426.     ShowPlayerDialog(playerid, DialogType, DIALOG_STYLE_INPUT,"Pickup Creator", "Chose the type of your pickup.\nRecommended: 1\n\nTo the types of pickups type /typepickup", "Continue","Cancel");
  427.     return 1;
  428. }
  429.  
  430. CMD:credits(playerid, params[])
  431. {
  432.     new string[100];
  433.     strcat(string, "{00FFFF}Los & Larceny{FFFFFF} - Developers.");
  434.     strcat(string, "{00FFFF}ZeeX{FFFFFF} - ZCMD.");
  435.     strcat(string, "{00FFFF}SA:MP Team{FFFFFF} - All.");
  436.     ShowPlayerDialog(playerid, DialogCredits, DIALOG_STYLE_MSGBOX,"Credits", string, "Ok", "");
  437.     return 1;
  438. }
  439.  
  440. CMD:helppickup(playerid, params[])
  441. {
  442.     new string[100];
  443.     strcat(string, "{00FFFF}/pickupcreate{FFFFFF} - Start a new project.");
  444.     strcat(string, "{00FFFF}/typepickup{FFFFFF} - See the types of pickups.");
  445.     strcat(string, "{00FFFF}/credits{FFFFFF} - Credits of system.");
  446.     ShowPlayerDialog(playerid, DialogHelp, DIALOG_STYLE_MSGBOX,"Help", string, "Ok", "");
  447.     return 1;
  448. }
  449.  
  450. CMD:typepickup(playerid, params[])
  451. {
  452.     new string[900];
  453.     strcat(string, "{00FFFF}0{FFFFFF} - The pickup does not display.\n");
  454.     strcat(string, "{00FFFF}1{FF00FF}(RECOMENDADA){FFFFFF} - Not pickupable, exists all the time.\n");
  455.     strcat(string, "{00FFFF}2{FFFFFF} - Pickupable, respawns after some time.\n");
  456.     strcat(string, "{00FFFF}3{FFFFFF} - Pickupable, respawns after death.\n");
  457.     strcat(string, "{00FFFF}4{FFFFFF} - Disappears shortly after created.\n");
  458.     strcat(string, "{00FFFF}5{FFFFFF} - Disappears shortly after created.\n");
  459.     strcat(string, "{00FFFF}8{FFFFFF} - Pickupable, but has no effect.\n");
  460.     strcat(string, "{00FFFF}11{FFFFFF} - Blows up a few seconds after being created.\n");
  461.     strcat(string, "{00FFFF}12{FFFFFF} - Blows up a few seconds after being created.\n");
  462.     strcat(string, "{00FFFF}13{FFFFFF} - Slowly decends to the ground.\n");
  463.     strcat(string, "{00FFFF}14{FFFFFF} - Pickupable, but only when in a vehicle.\n");
  464.     strcat(string, "{00FFFF}15{FFFFFF} - Pickupable, respawns after death.\n");
  465.     strcat(string, "{00FFFF}19{FFFFFF} - Pickupable, but has no effect.\n");
  466.     strcat(string, "{00FFFF}22{FFFFFF} - Pickupable, respawns after death.\n");
  467.     strcat(string, "{00FFFF}23{FFFFFF} - ickupable, but doesn't disappear on pickup.\n");
  468.     ShowPlayerDialog(playerid, DialogHelp, DIALOG_STYLE_MSGBOX,"Types", string, "Ok", "");
  469.     return 1;
  470. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement