Advertisement
Gireada

Inventori

May 25th, 2013
495
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 25.18 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3.  
  4.  
  5. new PlayerText:Inventori0[MAX_PLAYERS];
  6. new PlayerText:Inventori1[MAX_PLAYERS];
  7. new PlayerText:Inventori2[MAX_PLAYERS];
  8. new PlayerText:Inventori3[MAX_PLAYERS];
  9. new PlayerText:Inventori4[MAX_PLAYERS];
  10. new PlayerText:Inventori5[MAX_PLAYERS];
  11. new PlayerText:Inventori6[MAX_PLAYERS];
  12. new PlayerText:Inventori7[MAX_PLAYERS];
  13. new PlayerText:Inventori8[MAX_PLAYERS];
  14. new PlayerText:Inventori9[MAX_PLAYERS];
  15. new PlayerText:Inventori10[MAX_PLAYERS];
  16. new PlayerText:Inventori11[MAX_PLAYERS];
  17. new PlayerText:Inventori12[MAX_PLAYERS];
  18. new PlayerText:Inventori13[MAX_PLAYERS];
  19. new PlayerText:Inventori14[MAX_PLAYERS];
  20. new PlayerText:Inventori15[MAX_PLAYERS];
  21. new PlayerText:Inventori16[MAX_PLAYERS];
  22. new PlayerText:Inventori17[MAX_PLAYERS];
  23. new PlayerText:Inventori18[MAX_PLAYERS];
  24. new PlayerText:Inventori19[MAX_PLAYERS];
  25. new PlayerText:Inventori20[MAX_PLAYERS];
  26. new PlayerText:Inventori21[MAX_PLAYERS];
  27. new PlayerText:Inventori22[MAX_PLAYERS];
  28. new PlayerText:Inventori23[MAX_PLAYERS];
  29. new PlayerText:Inventori24[MAX_PLAYERS];
  30. new PlayerText:Inventori25[MAX_PLAYERS];
  31. new PlayerText:Inventori26[MAX_PLAYERS];
  32. new PlayerText:Inventori27[MAX_PLAYERS];
  33. new PlayerText:Inventori28[MAX_PLAYERS];
  34.  
  35. public OnFilterScriptInit()
  36. {
  37.     print("\n--------------------------------------");
  38.     print(" Inventar by Gireada");
  39.     print("--------------------------------------\n");
  40.     return 1;
  41. }
  42.  
  43. public OnFilterScriptExit()
  44. {
  45.     return 1;
  46. }
  47.  
  48.  
  49. main()
  50. {
  51.     print("\n----------------------------------");
  52.     print(" Inventar by Gireada");
  53.     print("----------------------------------\n");
  54. }
  55.  
  56.  
  57. CMD:inventori(playerid, params[])
  58. {
  59.     vehicles[0] = 0;
  60.     vehicles[1] = 0;
  61.     vehicles[2] = 0;
  62.     new nume[MAX_PLAYER_NAME];
  63.     GetPlayerName(playerid, nume, sizeof(nume));
  64.     new i=0;
  65.     for(new v=buyablecars; v<MAX_VEHICLES; v++)
  66.     {
  67.         if(i==maxpersvehi)
  68.         {break;}
  69.         if(IsValidVehicle(v))
  70.         {
  71.             if(strcmp(VehInfo[v][Propietar], nume, true) == 0)
  72.             {
  73.                 if(vehicles[i] == 0)
  74.                 {
  75.                     vehicles[i] = v;i++;
  76.                 }
  77.             }
  78.         }
  79.     }
  80.     for (new i = arma2[playerid]; i < 13; i++)
  81.     {
  82.         GetPlayerWeaponData(playerid, i, weapons2[playerid][i][0], weapons2[playerid][i][1]);
  83.     }
  84.     arma2[playerid] = 3;
  85.     if(vehicles[0] != 0)
  86.     {
  87.         PlayerTextDrawSetPreviewModel(playerid, Inventori22[playerid], vehicles[0]);
  88.         PlayerTextDrawShow(playerid, Inventori22[playerid]);
  89.     }
  90.     if(vehicles[1] != 0)
  91.     {
  92.         PlayerTextDrawSetPreviewModel(playerid, Inventori23[playerid], vehicles[1]);
  93.         PlayerTextDrawShow(playerid, Inventori23[playerid]);
  94.     }
  95.     if(vehicles[2] != 0)
  96.     {
  97.         PlayerTextDrawSetPreviewModel(playerid, Inventori24[playerid], vehicles[2]);
  98.         PlayerTextDrawShow(playerid, Inventori24[playerid]);
  99.     }
  100.     new Float:Viata, Float:Armura;
  101.     GetPlayerHealth(playerid,Viata);
  102.     GetPlayerArmour(playerid,Armura);
  103.     new string[256];
  104.  
  105.  
  106.     PlayerTextDrawSetPreviewModel(playerid, Inventori6[playerid], GetPlayerSkin(playerid));
  107.     format(string, sizeof(string), "%s",nume);
  108.     PlayerTextDrawSetString(playerid, Inventori5[playerid], string); // Nume
  109.  
  110.     format(string, sizeof(string), "Varsta: %d",PlayerInfo[playerid][Varsta]);
  111.     PlayerTextDrawSetString(playerid, Inventori11[playerid], string); // Varsta
  112.  
  113.     format(string, sizeof(string), "Oras: %s",PlayerInfo[playerid][Oras]);
  114.     PlayerTextDrawSetString(playerid, Inventori12[playerid], string); // Oras
  115.  
  116.     format(string, sizeof(string), "Numar: %d",PlayerInfo[playerid][Numar]);
  117.     PlayerTextDrawSetString(playerid, Inventori13[playerid], string); // Numar
  118.  
  119.     format(string, sizeof(string), "Viata: %.0f%",Viata);
  120.     PlayerTextDrawSetString(playerid, Inventori14[playerid], string); // Viata
  121.  
  122.     format(string, sizeof(string), "Armura: %.0f%",Armura);
  123.     PlayerTextDrawSetString(playerid, Inventori15[playerid], string); // Armura
  124.  
  125.     format(string, sizeof(string), "Vehicule: %d",PlayerInfo[playerid][Vehicule]);
  126.     PlayerTextDrawSetString(playerid, Inventori16[playerid], string); // Vehicule
  127.  
  128.     format(string, sizeof(string), "Cautat: %d",PlayerInfo[playerid][Wanted]);
  129.     PlayerTextDrawSetString(playerid, Inventori17[playerid], string); // Cautat
  130.  
  131.  
  132.     PlayerTextDrawShow(playerid, Inventori0[playerid]);
  133.     PlayerTextDrawShow(playerid, Inventori1[playerid]);
  134.     PlayerTextDrawShow(playerid, Inventori2[playerid]);
  135.     PlayerTextDrawShow(playerid, Inventori3[playerid]);
  136.     PlayerTextDrawShow(playerid, Inventori4[playerid]);
  137.     PlayerTextDrawShow(playerid, Inventori5[playerid]);
  138.     PlayerTextDrawShow(playerid, Inventori6[playerid]);
  139.     PlayerTextDrawShow(playerid, Inventori7[playerid]);
  140.     PlayerTextDrawShow(playerid, Inventori8[playerid]);
  141.     PlayerTextDrawShow(playerid, Inventori9[playerid]);
  142.     PlayerTextDrawShow(playerid, Inventori10[playerid]);
  143.     PlayerTextDrawShow(playerid, Inventori11[playerid]);
  144.     PlayerTextDrawShow(playerid, Inventori12[playerid]);
  145.     PlayerTextDrawShow(playerid, Inventori13[playerid]);
  146.     PlayerTextDrawShow(playerid, Inventori14[playerid]);
  147.     PlayerTextDrawShow(playerid, Inventori15[playerid]);
  148.     PlayerTextDrawShow(playerid, Inventori16[playerid]);
  149.     PlayerTextDrawShow(playerid, Inventori17[playerid]);
  150.     PlayerTextDrawShow(playerid, Inventori18[playerid]);
  151.     PlayerTextDrawShow(playerid, Inventori19[playerid]);
  152.     PlayerTextDrawShow(playerid, Inventori20[playerid]);
  153.     PlayerTextDrawShow(playerid, Inventori21[playerid]);
  154.     PlayerTextDrawShow(playerid, Inventori22[playerid]);
  155.     PlayerTextDrawShow(playerid, Inventori23[playerid]);
  156.     PlayerTextDrawShow(playerid, Inventori24[playerid]);
  157.     PlayerTextDrawShow(playerid, Inventori25[playerid]);
  158.     PlayerTextDrawShow(playerid, Inventori26[playerid]);
  159.     PlayerTextDrawShow(playerid, Inventori27[playerid]);
  160.     PlayerTextDrawShow(playerid, Inventori28[playerid]);
  161.  
  162.     PlayerTextDrawSetPreviewModel(playerid, Inventori6[playerid], GetPlayerSkin(playerid));
  163.  
  164.     format(string, sizeof(string), "%s",nume);
  165.     PlayerTextDrawSetString(playerid, Inventori5[playerid], string); // Nume
  166.  
  167.     format(string, sizeof(string), "Varsta: %d",PlayerInfo[playerid][Varsta]);
  168.     PlayerTextDrawSetString(playerid, Inventori11[playerid], string); // Varsta
  169.  
  170.     format(string, sizeof(string), "Oras: %s",PlayerInfo[playerid][Oras]);
  171.     PlayerTextDrawSetString(playerid, Inventori12[playerid], string); // Oras
  172.  
  173.     format(string, sizeof(string), "Numar: %d",PlayerInfo[playerid][Numar]);
  174.     PlayerTextDrawSetString(playerid, Inventori13[playerid], string); // Numar
  175.  
  176.     format(string, sizeof(string), "Viata: %.0f%",Viata);
  177.     PlayerTextDrawSetString(playerid, Inventori14[playerid], string); // Viata
  178.  
  179.     format(string, sizeof(string), "Armura: %.0f%",Armura);
  180.     PlayerTextDrawSetString(playerid, Inventori15[playerid], string); // Armura
  181.  
  182.     format(string, sizeof(string), "Vehicule: %d",PlayerInfo[playerid][Vehicule]);
  183.     PlayerTextDrawSetString(playerid, Inventori16[playerid], string); // Vehicule
  184.  
  185.     format(string, sizeof(string), "Cautat: %d",PlayerInfo[playerid][Wanted]);
  186.     PlayerTextDrawSetString(playerid, Inventori17[playerid], string); // Cautat
  187.     return 1;
  188. }
  189.  
  190. public OnPlayerConnect(playerid)
  191. {
  192.     LoadTextDraw(playerid)
  193.     return 1;
  194. }
  195.  
  196. stock LoadTextDraw(playerid)
  197. {
  198.     //===========================================================================[Inventori]======================================================================================
  199.     Inventori0[playerid] = CreatePlayerTextDraw(playerid, 566.000000, 79.375000, "usebox");
  200.     PlayerTextDrawLetterSize(playerid, Inventori0[playerid], 0.000000, 33.759719);
  201.     PlayerTextDrawTextSize(playerid, Inventori0[playerid], 71.500000, 0.000000);
  202.     PlayerTextDrawAlignment(playerid, Inventori0[playerid], 1);
  203.     PlayerTextDrawColor(playerid, Inventori0[playerid], 0);
  204.     PlayerTextDrawUseBox(playerid, Inventori0[playerid], true);
  205.     PlayerTextDrawBoxColor(playerid, Inventori0[playerid], 102);
  206.     PlayerTextDrawSetShadow(playerid, Inventori0[playerid], 0);
  207.     PlayerTextDrawSetOutline(playerid, Inventori0[playerid], 0);
  208.     PlayerTextDrawFont(playerid, Inventori0[playerid], 0);
  209.  
  210.     Inventori1[playerid] = CreatePlayerTextDraw(playerid, 68.500000, 71.937500, "usebox");
  211.     PlayerTextDrawLetterSize(playerid, Inventori1[playerid], 0.000000, 35.315277);
  212.     PlayerTextDrawTextSize(playerid, Inventori1[playerid], 75.500000, 0.000000);
  213.     PlayerTextDrawAlignment(playerid, Inventori1[playerid], 1);
  214.     PlayerTextDrawColor(playerid, Inventori1[playerid], 0);
  215.     PlayerTextDrawUseBox(playerid, Inventori1[playerid], true);
  216.     PlayerTextDrawBoxColor(playerid, Inventori1[playerid], 255);
  217.     PlayerTextDrawSetShadow(playerid, Inventori1[playerid], 0);
  218.     PlayerTextDrawSetOutline(playerid, Inventori1[playerid], 0);
  219.     PlayerTextDrawFont(playerid, Inventori1[playerid], 0);
  220.  
  221.     Inventori2[playerid] = CreatePlayerTextDraw(playerid, 575.500000, 71.500000, "usebox");
  222.     PlayerTextDrawLetterSize(playerid, Inventori2[playerid], 0.000000, 1.093055);
  223.     PlayerTextDrawTextSize(playerid, Inventori2[playerid], 64.500000, 0.000000);
  224.     PlayerTextDrawAlignment(playerid, Inventori2[playerid], 1);
  225.     PlayerTextDrawColor(playerid, Inventori2[playerid], 0);
  226.     PlayerTextDrawUseBox(playerid, Inventori2[playerid], true);
  227.     PlayerTextDrawBoxColor(playerid, Inventori2[playerid], 255);
  228.     PlayerTextDrawSetShadow(playerid, Inventori2[playerid], 0);
  229.     PlayerTextDrawSetOutline(playerid, Inventori2[playerid], 0);
  230.     PlayerTextDrawFont(playerid, Inventori2[playerid], 0);
  231.  
  232.     Inventori3[playerid] = CreatePlayerTextDraw(playerid, 561.500000, 71.937500, "usebox");
  233.     PlayerTextDrawLetterSize(playerid, Inventori3[playerid], 0.000000, 35.509719);
  234.     PlayerTextDrawTextSize(playerid, Inventori3[playerid], 570.000000, 0.000000);
  235.     PlayerTextDrawAlignment(playerid, Inventori3[playerid], 1);
  236.     PlayerTextDrawColor(playerid, Inventori3[playerid], 0);
  237.     PlayerTextDrawUseBox(playerid, Inventori3[playerid], true);
  238.     PlayerTextDrawBoxColor(playerid, Inventori3[playerid], 255);
  239.     PlayerTextDrawSetShadow(playerid, Inventori3[playerid], 0);
  240.     PlayerTextDrawSetOutline(playerid, Inventori3[playerid], 0);
  241.     PlayerTextDrawBackgroundColor(playerid, Inventori3[playerid], 255);
  242.     PlayerTextDrawFont(playerid, Inventori3[playerid], 0);
  243.  
  244.     Inventori4[playerid] = CreatePlayerTextDraw(playerid, 572.500000, 384.312500, "usebox");
  245.     PlayerTextDrawLetterSize(playerid, Inventori4[playerid], 0.000000, 0.850000);
  246.     PlayerTextDrawTextSize(playerid, Inventori4[playerid], 64.500000, 0.000000);
  247.     PlayerTextDrawAlignment(playerid, Inventori4[playerid], 1);
  248.     PlayerTextDrawColor(playerid, Inventori4[playerid], 0);
  249.     PlayerTextDrawUseBox(playerid, Inventori4[playerid], true);
  250.     PlayerTextDrawBoxColor(playerid, Inventori4[playerid], 255);
  251.     PlayerTextDrawSetShadow(playerid, Inventori4[playerid], 0);
  252.     PlayerTextDrawSetOutline(playerid, Inventori4[playerid], 0);
  253.     PlayerTextDrawFont(playerid, Inventori4[playerid], 0);
  254.  
  255.     Inventori5[playerid] = CreatePlayerTextDraw(playerid, 295.500000, 94.062500, "Nume");
  256.     PlayerTextDrawLetterSize(playerid, Inventori5[playerid], 0.587499, 3.481250);
  257.     PlayerTextDrawAlignment(playerid, Inventori5[playerid], 1);
  258.     PlayerTextDrawColor(playerid, Inventori5[playerid], -1);
  259.     PlayerTextDrawSetShadow(playerid, Inventori5[playerid], 0);
  260.     PlayerTextDrawSetOutline(playerid, Inventori5[playerid], 1);
  261.     PlayerTextDrawBackgroundColor(playerid, Inventori5[playerid], 51);
  262.     PlayerTextDrawFont(playerid, Inventori5[playerid], 1);
  263.     PlayerTextDrawSetProportional(playerid, Inventori5[playerid], 1);
  264.  
  265.     Inventori6[playerid] = CreatePlayerTextDraw(playerid, 189.500000, 95.125000, "_");//skin
  266.     PlayerTextDrawFont(playerid, Inventori6[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
  267.     PlayerTextDrawColor(playerid, Inventori6[playerid], 0xFFFFFFFF);
  268.     PlayerTextDrawBackgroundColor(playerid, Inventori6[playerid], 0x88888899);
  269.     PlayerTextDrawTextSize(playerid, Inventori6[playerid], -100.0, 110.0);
  270.     PlayerTextDrawSetPreviewModel(playerid, Inventori6[playerid], 0);
  271.  
  272.     Inventori7[playerid] = CreatePlayerTextDraw(playerid, 209.000000, 72.812500, "usebox");
  273.     PlayerTextDrawLetterSize(playerid, Inventori7[playerid], 0.000000, 34.731941);
  274.     PlayerTextDrawTextSize(playerid, Inventori7[playerid], 192.500000, 0.000000);
  275.     PlayerTextDrawAlignment(playerid, Inventori7[playerid], 1);
  276.     PlayerTextDrawColor(playerid, Inventori7[playerid], 0);
  277.     PlayerTextDrawUseBox(playerid, Inventori7[playerid], true);
  278.     PlayerTextDrawBoxColor(playerid, Inventori7[playerid], 255);
  279.     PlayerTextDrawSetShadow(playerid, Inventori7[playerid], 0);
  280.     PlayerTextDrawSetOutline(playerid, Inventori7[playerid], 0);
  281.     PlayerTextDrawFont(playerid, Inventori7[playerid], 0);
  282.  
  283.     Inventori8[playerid] = CreatePlayerTextDraw(playerid, 200.000000, 212.375000, "usebox");
  284.     PlayerTextDrawLetterSize(playerid, Inventori8[playerid], 0.000000, 1.384721);
  285.     PlayerTextDrawTextSize(playerid, Inventori8[playerid], 73.000000, 0.000000);
  286.     PlayerTextDrawAlignment(playerid, Inventori8[playerid], 1);
  287.     PlayerTextDrawColor(playerid, Inventori8[playerid], 0);
  288.     PlayerTextDrawUseBox(playerid, Inventori8[playerid], true);
  289.     PlayerTextDrawBoxColor(playerid, Inventori8[playerid], 255);
  290.     PlayerTextDrawSetShadow(playerid, Inventori8[playerid], 0);
  291.     PlayerTextDrawSetOutline(playerid, Inventori8[playerid], 0);
  292.     PlayerTextDrawFont(playerid, Inventori8[playerid], 0);
  293.  
  294.     Inventori9[playerid] = CreatePlayerTextDraw(playerid, 567.500000, 141.500000, "usebox");
  295.     PlayerTextDrawLetterSize(playerid, Inventori9[playerid], 0.000000, 1.044443);
  296.     PlayerTextDrawTextSize(playerid, Inventori9[playerid], 193.500000, 0.000000);
  297.     PlayerTextDrawAlignment(playerid, Inventori9[playerid], 1);
  298.     PlayerTextDrawColor(playerid, Inventori9[playerid], 0);
  299.     PlayerTextDrawUseBox(playerid, Inventori9[playerid], true);
  300.     PlayerTextDrawBoxColor(playerid, Inventori9[playerid], 255);
  301.     PlayerTextDrawSetShadow(playerid, Inventori9[playerid], 0);
  302.     PlayerTextDrawSetOutline(playerid, Inventori9[playerid], 0);
  303.     PlayerTextDrawBackgroundColor(playerid, Inventori9[playerid], -1);
  304.     PlayerTextDrawFont(playerid, Inventori9[playerid], 0);
  305.  
  306.     Inventori10[playerid] = CreatePlayerTextDraw(playerid, 110.500000, 228.375000, "Data");
  307.     PlayerTextDrawLetterSize(playerid, Inventori10[playerid], 0.449999, 1.600000);
  308.     PlayerTextDrawAlignment(playerid, Inventori10[playerid], 1);
  309.     PlayerTextDrawColor(playerid, Inventori10[playerid], -1);
  310.     PlayerTextDrawSetShadow(playerid, Inventori10[playerid], 0);
  311.     PlayerTextDrawSetOutline(playerid, Inventori10[playerid], 1);
  312.     PlayerTextDrawBackgroundColor(playerid, Inventori10[playerid], 51);
  313.     PlayerTextDrawFont(playerid, Inventori10[playerid], 1);
  314.     PlayerTextDrawSetProportional(playerid, Inventori10[playerid], 1);
  315.  
  316.     Inventori11[playerid] = CreatePlayerTextDraw(playerid, 79.500000, 252.000000, "Varsta");
  317.     PlayerTextDrawLetterSize(playerid, Inventori11[playerid], 0.449999, 1.600000);
  318.     PlayerTextDrawAlignment(playerid, Inventori11[playerid], 1);
  319.     PlayerTextDrawColor(playerid, Inventori11[playerid], -1);
  320.     PlayerTextDrawSetShadow(playerid, Inventori11[playerid], 0);
  321.     PlayerTextDrawSetOutline(playerid, Inventori11[playerid], 1);
  322.     PlayerTextDrawBackgroundColor(playerid, Inventori11[playerid], 51);
  323.     PlayerTextDrawFont(playerid, Inventori11[playerid], 1);
  324.     PlayerTextDrawSetProportional(playerid, Inventori11[playerid], 1);
  325.  
  326.     Inventori12[playerid] = CreatePlayerTextDraw(playerid, 79.000000, 269.062500, "Oras");
  327.     PlayerTextDrawLetterSize(playerid, Inventori12[playerid], 0.449999, 1.600000);
  328.     PlayerTextDrawAlignment(playerid, Inventori12[playerid], 1);
  329.     PlayerTextDrawColor(playerid, Inventori12[playerid], -1);
  330.     PlayerTextDrawSetShadow(playerid, Inventori12[playerid], 0);
  331.     PlayerTextDrawSetOutline(playerid, Inventori12[playerid], 1);
  332.     PlayerTextDrawBackgroundColor(playerid, Inventori12[playerid], 51);
  333.     PlayerTextDrawFont(playerid, Inventori12[playerid], 1);
  334.     PlayerTextDrawSetProportional(playerid, Inventori12[playerid], 1);
  335.  
  336.     Inventori13[playerid] = CreatePlayerTextDraw(playerid, 80.500000, 287.437500, "Numar");
  337.     PlayerTextDrawLetterSize(playerid, Inventori13[playerid], 0.449999, 1.600000);
  338.     PlayerTextDrawAlignment(playerid, Inventori13[playerid], 1);
  339.     PlayerTextDrawColor(playerid, Inventori13[playerid], -1);
  340.     PlayerTextDrawSetShadow(playerid, Inventori13[playerid], 0);
  341.     PlayerTextDrawSetOutline(playerid, Inventori13[playerid], 1);
  342.     PlayerTextDrawBackgroundColor(playerid, Inventori13[playerid], 51);
  343.     PlayerTextDrawFont(playerid, Inventori13[playerid], 1);
  344.     PlayerTextDrawSetProportional(playerid, Inventori13[playerid], 1);
  345.  
  346.     Inventori14[playerid] = CreatePlayerTextDraw(playerid, 80.000000, 306.250000, "Viata");
  347.     PlayerTextDrawLetterSize(playerid, Inventori14[playerid], 0.449999, 1.600000);
  348.     PlayerTextDrawAlignment(playerid, Inventori14[playerid], 1);
  349.     PlayerTextDrawColor(playerid, Inventori14[playerid], -1);
  350.     PlayerTextDrawSetShadow(playerid, Inventori14[playerid], 0);
  351.     PlayerTextDrawSetOutline(playerid, Inventori14[playerid], 1);
  352.     PlayerTextDrawBackgroundColor(playerid, Inventori14[playerid], 51);
  353.     PlayerTextDrawFont(playerid, Inventori14[playerid], 1);
  354.     PlayerTextDrawSetProportional(playerid, Inventori14[playerid], 1);
  355.  
  356.     Inventori15[playerid] = CreatePlayerTextDraw(playerid, 80.500000, 322.000000, "Armura");
  357.     PlayerTextDrawLetterSize(playerid, Inventori15[playerid], 0.449999, 1.600000);
  358.     PlayerTextDrawAlignment(playerid, Inventori15[playerid], 1);
  359.     PlayerTextDrawColor(playerid, Inventori15[playerid], -1);
  360.     PlayerTextDrawSetShadow(playerid, Inventori15[playerid], 0);
  361.     PlayerTextDrawSetOutline(playerid, Inventori15[playerid], 1);
  362.     PlayerTextDrawBackgroundColor(playerid, Inventori15[playerid], 51);
  363.     PlayerTextDrawFont(playerid, Inventori15[playerid], 1);
  364.     PlayerTextDrawSetProportional(playerid, Inventori15[playerid], 1);
  365.  
  366.     Inventori16[playerid] = CreatePlayerTextDraw(playerid, 79.000000, 339.937500, "Vehicule");
  367.     PlayerTextDrawLetterSize(playerid, Inventori16[playerid], 0.449999, 1.600000);
  368.     PlayerTextDrawAlignment(playerid, Inventori16[playerid], 1);
  369.     PlayerTextDrawColor(playerid, Inventori16[playerid], -1);
  370.     PlayerTextDrawSetShadow(playerid, Inventori16[playerid], 0);
  371.     PlayerTextDrawSetOutline(playerid, Inventori16[playerid], 1);
  372.     PlayerTextDrawBackgroundColor(playerid, Inventori16[playerid], 51);
  373.     PlayerTextDrawFont(playerid, Inventori16[playerid], 1);
  374.     PlayerTextDrawSetProportional(playerid, Inventori16[playerid], 1);
  375.  
  376.     Inventori17[playerid] = CreatePlayerTextDraw(playerid, 81.000000, 356.562500, "Cautat");
  377.     PlayerTextDrawLetterSize(playerid, Inventori17[playerid], 0.449999, 1.600000);
  378.     PlayerTextDrawAlignment(playerid, Inventori17[playerid], 1);
  379.     PlayerTextDrawColor(playerid, Inventori17[playerid], -1);
  380.     PlayerTextDrawSetShadow(playerid, Inventori17[playerid], 0);
  381.     PlayerTextDrawSetOutline(playerid, Inventori17[playerid], 1);
  382.     PlayerTextDrawBackgroundColor(playerid, Inventori17[playerid], 51);
  383.     PlayerTextDrawFont(playerid, Inventori17[playerid], 1);
  384.     PlayerTextDrawSetProportional(playerid, Inventori17[playerid], 1);
  385.  
  386.     Inventori18[playerid] = CreatePlayerTextDraw(playerid, 306.000000, 170.812500, "usebox");//slot sus 1
  387.     PlayerTextDrawFont(playerid, Inventori18[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
  388.     PlayerTextDrawColor(playerid, Inventori18[playerid], 0xFFFFFFFF);
  389.     PlayerTextDrawBackgroundColor(playerid, Inventori18[playerid], 0x88888899);
  390.     PlayerTextDrawTextSize(playerid, Inventori18[playerid], -100.0, 65.0);
  391.     PlayerTextDrawSetPreviewModel(playerid, Inventori18[playerid], 411);
  392.  
  393.  
  394.     Inventori19[playerid] = CreatePlayerTextDraw(playerid, 435.500000, 171.250000, "usebox");//slot sus 2
  395.     PlayerTextDrawFont(playerid, Inventori19[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
  396.     PlayerTextDrawColor(playerid, Inventori19[playerid], 0xFFFFFFFF);
  397.     PlayerTextDrawBackgroundColor(playerid, Inventori19[playerid], 0x88888899);
  398.     PlayerTextDrawTextSize(playerid, Inventori19[playerid], -100.0, 65.0);
  399.     PlayerTextDrawSetPreviewModel(playerid, Inventori19[playerid], 411);
  400.  
  401.     Inventori20[playerid] = CreatePlayerTextDraw(playerid, 555.000000, 171.250000, "usebox");//slot sus 3
  402.     PlayerTextDrawFont(playerid, Inventori20[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
  403.     PlayerTextDrawColor(playerid, Inventori20[playerid], 0xFFFFFFFF);
  404.     PlayerTextDrawBackgroundColor(playerid, Inventori20[playerid], 0x88888899);
  405.     PlayerTextDrawTextSize(playerid, Inventori20[playerid], -100.0, 65.0);
  406.     PlayerTextDrawSetPreviewModel(playerid, Inventori20[playerid], 411);
  407.  
  408.     Inventori21[playerid] = CreatePlayerTextDraw(playerid, 574.000000, 248.687500, "usebox");
  409.     PlayerTextDrawLetterSize(playerid, Inventori21[playerid], 0.000000, 0.995832);
  410.     PlayerTextDrawTextSize(playerid, Inventori21[playerid], 194.500000, 0.000000);
  411.     PlayerTextDrawAlignment(playerid, Inventori21[playerid], 1);
  412.     PlayerTextDrawColor(playerid, Inventori21[playerid], 0);
  413.     PlayerTextDrawUseBox(playerid, Inventori21[playerid], true);
  414.     PlayerTextDrawBoxColor(playerid, Inventori21[playerid], 255);
  415.     PlayerTextDrawSetShadow(playerid, Inventori21[playerid], 0);
  416.     PlayerTextDrawSetOutline(playerid, Inventori21[playerid], 0);
  417.     PlayerTextDrawFont(playerid, Inventori21[playerid], 0);
  418.  
  419.     Inventori22[playerid] = CreatePlayerTextDraw(playerid, 303.500000, 274.062500, "usebox");//slot jos 1
  420.     PlayerTextDrawFont(playerid, Inventori22[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
  421.     PlayerTextDrawColor(playerid, Inventori22[playerid], 0xFFFFFFFF);
  422.     PlayerTextDrawBackgroundColor(playerid, Inventori22[playerid], 0x88888899);
  423.     PlayerTextDrawTextSize(playerid, Inventori22[playerid], -100.0, 65.0);
  424.     PlayerTextDrawSetPreviewModel(playerid, Inventori22[playerid], 411);
  425.  
  426.     Inventori23[playerid] = CreatePlayerTextDraw(playerid, 435.500000, 274.500000, "usebox");//slot jos 2
  427.     PlayerTextDrawFont(playerid, Inventori23[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
  428.     PlayerTextDrawColor(playerid, Inventori23[playerid], 0xFFFFFFFF);
  429.     PlayerTextDrawBackgroundColor(playerid, Inventori23[playerid], 0x88888899);
  430.     PlayerTextDrawTextSize(playerid, Inventori23[playerid], -100.0, 65.0);
  431.     PlayerTextDrawSetPreviewModel(playerid, Inventori23[playerid], 411);
  432.  
  433.     Inventori24[playerid] = CreatePlayerTextDraw(playerid, 553.500000, 276.250000, "usebox");//slot jos 3
  434.     PlayerTextDrawFont(playerid, Inventori24[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
  435.     PlayerTextDrawColor(playerid, Inventori24[playerid], 0xFFFFFFFF);
  436.     PlayerTextDrawBackgroundColor(playerid, Inventori24[playerid], 0x88888899);
  437.     PlayerTextDrawTextSize(playerid, Inventori24[playerid], -100.0, 65.0);
  438.     PlayerTextDrawSetPreviewModel(playerid, Inventori24[playerid], 411);
  439.  
  440.     Inventori25[playerid] = CreatePlayerTextDraw(playerid, 571.500000, 341.875000, "usebox");
  441.     PlayerTextDrawLetterSize(playerid, Inventori25[playerid], 0.000000, 4.398611);
  442.     PlayerTextDrawTextSize(playerid, Inventori25[playerid], 192.500000, 0.000000);
  443.     PlayerTextDrawAlignment(playerid, Inventori25[playerid], 1);
  444.     PlayerTextDrawColor(playerid, Inventori25[playerid], 0);
  445.     PlayerTextDrawUseBox(playerid, Inventori25[playerid], true);
  446.     PlayerTextDrawBoxColor(playerid, Inventori25[playerid], 255);
  447.     PlayerTextDrawSetShadow(playerid, Inventori25[playerid], 0);
  448.     PlayerTextDrawSetOutline(playerid, Inventori25[playerid], 0);
  449.     PlayerTextDrawFont(playerid, Inventori25[playerid], 0);
  450.  
  451.     Inventori26[playerid] = CreatePlayerTextDraw(playerid, 326.000000, 348.687500, "Inventori");
  452.     PlayerTextDrawLetterSize(playerid, Inventori26[playerid], 0.622499, 3.109374);
  453.     PlayerTextDrawAlignment(playerid, Inventori26[playerid], 1);
  454.     PlayerTextDrawColor(playerid, Inventori26[playerid], -1);
  455.     PlayerTextDrawSetShadow(playerid, Inventori26[playerid], 0);
  456.     PlayerTextDrawSetOutline(playerid, Inventori26[playerid], 1);
  457.     PlayerTextDrawBackgroundColor(playerid, Inventori26[playerid], 51);
  458.     PlayerTextDrawFont(playerid, Inventori26[playerid], 1);
  459.     PlayerTextDrawSetProportional(playerid, Inventori26[playerid], 1);
  460.  
  461.     Inventori27[playerid] = CreatePlayerTextDraw(playerid, 543.000000, 257.687500, ">");
  462.     PlayerTextDrawLetterSize(playerid, Inventori27[playerid], 0.449999, 1.600000);
  463.     PlayerTextDrawTextSize(playerid, Inventori27[playerid], 562.500000, 15.312500);
  464.     PlayerTextDrawAlignment(playerid, Inventori27[playerid], 1);
  465.     PlayerTextDrawColor(playerid, Inventori27[playerid], -1);
  466.     PlayerTextDrawUseBox(playerid, Inventori27[playerid], true);
  467.     PlayerTextDrawBoxColor(playerid, Inventori27[playerid], 255);
  468.     PlayerTextDrawSetShadow(playerid, Inventori27[playerid], 0);
  469.     PlayerTextDrawSetOutline(playerid, Inventori27[playerid], 1);
  470.     PlayerTextDrawBackgroundColor(playerid, Inventori27[playerid], 51);
  471.     PlayerTextDrawFont(playerid, Inventori27[playerid], 1);
  472.     PlayerTextDrawSetProportional(playerid, Inventori27[playerid], 1);
  473.     PlayerTextDrawSetSelectable(playerid, Inventori27[playerid], true);
  474.  
  475.     Inventori28[playerid] = CreatePlayerTextDraw(playerid, 205.500000, 256.812500, "<");
  476.     PlayerTextDrawLetterSize(playerid, Inventori28[playerid], 0.449999, 1.600000);
  477.     PlayerTextDrawTextSize(playerid, Inventori28[playerid], 222.500000, 4.375000);
  478.     PlayerTextDrawAlignment(playerid, Inventori28[playerid], 1);
  479.     PlayerTextDrawColor(playerid, Inventori28[playerid], -1);
  480.     PlayerTextDrawUseBox(playerid, Inventori28[playerid], true);
  481.     PlayerTextDrawBoxColor(playerid, Inventori28[playerid], 255);
  482.     PlayerTextDrawSetShadow(playerid, Inventori28[playerid], 0);
  483.     PlayerTextDrawSetOutline(playerid, Inventori28[playerid], 1);
  484.     PlayerTextDrawBackgroundColor(playerid, Inventori28[playerid], 51);
  485.     PlayerTextDrawFont(playerid, Inventori28[playerid], 1);
  486.     PlayerTextDrawSetProportional(playerid, Inventori28[playerid], 1);
  487.     PlayerTextDrawSetSelectable(playerid, Inventori28[playerid], true);
  488.     return 1;
  489. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement