Advertisement
ThreeKingz

Stats Textdraw by ThePhenix (ThreeKingz)

Aug 26th, 2014
2,617
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 18.16 KB | None | 0 0
  1. /*
  2. ================================================================================
  3. ================================================================================
  4. Stats Textdraws by ThreeKingz aka ThePhenix
  5.  
  6. --------------------------------------------------------------------------------
  7. Do not claim this as yours!
  8. Do not distribute it. Only with my permission.
  9.  
  10. ================================================================================
  11. ================================================================================
  12. */
  13.  
  14. #include <a_samp>
  15. #include <zcmd>
  16.  
  17. new PlayerText:Stats[26][MAX_PLAYERS];
  18.  
  19. public OnFilterScriptInit()
  20. {
  21.     return 1;
  22. }
  23. public OnPlayerConnect(playerid)
  24. {
  25.  
  26.     Stats[0][playerid] = CreatePlayerTextDraw(playerid, 184.800064, 158.293334, "samaps:map");
  27.     PlayerTextDrawLetterSize(playerid, Stats[0][playerid], 0.000000, 0.000000);
  28.     PlayerTextDrawTextSize(playerid, Stats[0][playerid], 249.600128, 178.453201);
  29.     PlayerTextDrawAlignment(playerid, Stats[0][playerid], 1);
  30.     PlayerTextDrawColor(playerid, Stats[0][playerid], -1);
  31.     PlayerTextDrawSetShadow(playerid, Stats[0][playerid], 0);
  32.     PlayerTextDrawSetOutline(playerid, Stats[0][playerid], 0);
  33.     PlayerTextDrawFont(playerid, Stats[0][playerid], 4);
  34.  
  35.     Stats[1][playerid] = CreatePlayerTextDraw(playerid, 567.600036, 120.966674, "models\txd:backgnd");
  36.     PlayerTextDrawLetterSize(playerid, Stats[1][playerid], 0.000000, 25.982591);
  37.     PlayerTextDrawTextSize(playerid, Stats[1][playerid], 136.399993, 0.000000);
  38.     PlayerTextDrawAlignment(playerid, Stats[1][playerid], 1);
  39.     PlayerTextDrawColor(playerid, Stats[1][playerid], 0);
  40.     PlayerTextDrawUseBox(playerid, Stats[1][playerid], true);
  41.     PlayerTextDrawBoxColor(playerid, Stats[1][playerid], 102);
  42.     PlayerTextDrawSetShadow(playerid, Stats[1][playerid], 0);
  43.     PlayerTextDrawSetOutline(playerid, Stats[1][playerid], 0);
  44.     PlayerTextDrawFont(playerid, Stats[1][playerid], 0);
  45.  
  46.     Stats[2][playerid] = CreatePlayerTextDraw(playerid, 464.000000, 280.746582, "LD_DRV:golfly");
  47.     PlayerTextDrawLetterSize(playerid, Stats[2][playerid], 0.000000, 0.000000);
  48.     PlayerTextDrawTextSize(playerid, Stats[2][playerid], 68.799987, 57.493354);
  49.     PlayerTextDrawAlignment(playerid, Stats[2][playerid], 1);
  50.     PlayerTextDrawColor(playerid, Stats[2][playerid], -1);
  51.     PlayerTextDrawSetShadow(playerid, Stats[2][playerid], 0);
  52.     PlayerTextDrawSetOutline(playerid, Stats[2][playerid], 0);
  53.     PlayerTextDrawFont(playerid, Stats[2][playerid], 4);
  54.  
  55.     Stats[3][playerid] = CreatePlayerTextDraw(playerid, 558.800354, 156.060028, "usebox");
  56.     PlayerTextDrawLetterSize(playerid, Stats[3][playerid], 0.000000, 1.609256);
  57.     PlayerTextDrawTextSize(playerid, Stats[3][playerid], 446.800018, 0.000000);
  58.     PlayerTextDrawAlignment(playerid, Stats[3][playerid], 1);
  59.     PlayerTextDrawColor(playerid, Stats[3][playerid], -1061109505);
  60.     PlayerTextDrawUseBox(playerid, Stats[3][playerid], true);
  61.     PlayerTextDrawBoxColor(playerid, Stats[3][playerid], -1768515960);
  62.     PlayerTextDrawSetShadow(playerid, Stats[3][playerid], 0);
  63.     PlayerTextDrawSetOutline(playerid, Stats[3][playerid], 0);
  64.     PlayerTextDrawBackgroundColor(playerid, Stats[3][playerid], -1061109505);
  65.     PlayerTextDrawFont(playerid, Stats[3][playerid], 0);
  66.  
  67.     Stats[4][playerid] = CreatePlayerTextDraw(playerid, 558.000000, 188.166656, "usebox");
  68.     PlayerTextDrawLetterSize(playerid, Stats[4][playerid], 0.000000, 1.529258);
  69.     PlayerTextDrawTextSize(playerid, Stats[4][playerid], 446.800018, 0.000000);
  70.     PlayerTextDrawAlignment(playerid, Stats[4][playerid], 1);
  71.     PlayerTextDrawColor(playerid, Stats[4][playerid], 0);
  72.     PlayerTextDrawUseBox(playerid, Stats[4][playerid], true);
  73.     PlayerTextDrawBoxColor(playerid, Stats[4][playerid], -1768515960);
  74.     PlayerTextDrawSetShadow(playerid, Stats[4][playerid], 0);
  75.     PlayerTextDrawSetOutline(playerid, Stats[4][playerid], 0);
  76.     PlayerTextDrawFont(playerid, Stats[4][playerid], 0);
  77.  
  78.     Stats[5][playerid] = CreatePlayerTextDraw(playerid, 558.000122, 221.019927, "usebox");
  79.     PlayerTextDrawLetterSize(playerid, Stats[5][playerid], 0.000000, 1.695183);
  80.     PlayerTextDrawTextSize(playerid, Stats[5][playerid], 446.800018, 0.000000);
  81.     PlayerTextDrawAlignment(playerid, Stats[5][playerid], 1);
  82.     PlayerTextDrawColor(playerid, Stats[5][playerid], 0);
  83.     PlayerTextDrawUseBox(playerid, Stats[5][playerid], true);
  84.     PlayerTextDrawBoxColor(playerid, Stats[5][playerid], -1768515960);
  85.     PlayerTextDrawSetShadow(playerid, Stats[5][playerid], 0);
  86.     PlayerTextDrawSetOutline(playerid, Stats[5][playerid], 0);
  87.     PlayerTextDrawFont(playerid, Stats[5][playerid], 0);
  88.  
  89.     Stats[6][playerid] = CreatePlayerTextDraw(playerid, 558.000000, 254.620040, "usebox");
  90.     PlayerTextDrawLetterSize(playerid, Stats[6][playerid], 0.000000, 1.677407);
  91.     PlayerTextDrawTextSize(playerid, Stats[6][playerid], 447.600036, 0.000000);
  92.     PlayerTextDrawAlignment(playerid, Stats[6][playerid], 1);
  93.     PlayerTextDrawColor(playerid, Stats[6][playerid], 0);
  94.     PlayerTextDrawUseBox(playerid, Stats[6][playerid], true);
  95.     PlayerTextDrawBoxColor(playerid, Stats[6][playerid], -1768515960);
  96.     PlayerTextDrawSetShadow(playerid, Stats[6][playerid], 0);
  97.     PlayerTextDrawSetOutline(playerid, Stats[6][playerid], 0);
  98.     PlayerTextDrawFont(playerid, Stats[6][playerid], 0);
  99.  
  100.     Stats[7][playerid] = CreatePlayerTextDraw(playerid, 455.200012, 156.800018, "hud:radar_LocoSyndicate");
  101.     PlayerTextDrawLetterSize(playerid, Stats[7][playerid], 0.000000, 0.000000);
  102.     PlayerTextDrawTextSize(playerid, Stats[7][playerid], 15.199979, 13.440002);
  103.     PlayerTextDrawAlignment(playerid, Stats[7][playerid], 1);
  104.     PlayerTextDrawColor(playerid, Stats[7][playerid], -1);
  105.     PlayerTextDrawSetShadow(playerid, Stats[7][playerid], 0);
  106.     PlayerTextDrawSetOutline(playerid, Stats[7][playerid], 0);
  107.     PlayerTextDrawFont(playerid, Stats[7][playerid], 4);
  108.  
  109.     Stats[8][playerid] = CreatePlayerTextDraw(playerid, 475.200134, 155.306610, "~y~Deaths: ~w~931");
  110.     PlayerTextDrawLetterSize(playerid, Stats[8][playerid], 0.261999, 1.383466);
  111.     PlayerTextDrawAlignment(playerid, Stats[8][playerid], 1);
  112.     PlayerTextDrawColor(playerid, Stats[8][playerid], -1);
  113.     PlayerTextDrawSetShadow(playerid, Stats[8][playerid], 0);
  114.     PlayerTextDrawSetOutline(playerid, Stats[8][playerid], 1);
  115.     PlayerTextDrawBackgroundColor(playerid, Stats[8][playerid], 51);
  116.     PlayerTextDrawFont(playerid, Stats[8][playerid], 1);
  117.     PlayerTextDrawSetProportional(playerid, Stats[8][playerid], 1);
  118.  
  119.     Stats[9][playerid] = CreatePlayerTextDraw(playerid, 455.200012, 189.653335, "hud:radar_emmetGun");
  120.     PlayerTextDrawLetterSize(playerid, Stats[9][playerid], 0.000000, 0.000000);
  121.     PlayerTextDrawTextSize(playerid, Stats[9][playerid], 14.399963, 11.199995);
  122.     PlayerTextDrawAlignment(playerid, Stats[9][playerid], 1);
  123.     PlayerTextDrawColor(playerid, Stats[9][playerid], -1);
  124.     PlayerTextDrawSetShadow(playerid, Stats[9][playerid], 0);
  125.     PlayerTextDrawSetOutline(playerid, Stats[9][playerid], 0);
  126.     PlayerTextDrawFont(playerid, Stats[9][playerid], 4);
  127.    
  128.     Stats[10][playerid] = CreatePlayerTextDraw(playerid, 473.600006, 187.413284, "~y~Kills: ~w~123");
  129.     PlayerTextDrawLetterSize(playerid, Stats[10][playerid], 0.337998, 1.293866);
  130.     PlayerTextDrawAlignment(playerid, Stats[10][playerid], 1);
  131.     PlayerTextDrawColor(playerid, Stats[10][playerid], -1);
  132.     PlayerTextDrawSetShadow(playerid, Stats[10][playerid], 0);
  133.     PlayerTextDrawSetOutline(playerid, Stats[10][playerid], 1);
  134.     PlayerTextDrawBackgroundColor(playerid, Stats[10][playerid], 51);
  135.     PlayerTextDrawFont(playerid, Stats[10][playerid], 1);
  136.     PlayerTextDrawSetProportional(playerid, Stats[10][playerid], 1);
  137.  
  138.     Stats[11][playerid] = CreatePlayerTextDraw(playerid, 454.400024, 224.000030, "hud:radar_race");
  139.     PlayerTextDrawLetterSize(playerid, Stats[11][playerid], 0.000000, 0.000000);
  140.     PlayerTextDrawTextSize(playerid, Stats[11][playerid], 16.799987, 11.199995);
  141.     PlayerTextDrawAlignment(playerid, Stats[11][playerid], 1);
  142.     PlayerTextDrawColor(playerid, Stats[11][playerid], -1);
  143.     PlayerTextDrawSetShadow(playerid, Stats[11][playerid], 0);
  144.     PlayerTextDrawSetOutline(playerid, Stats[11][playerid], 0);
  145.     PlayerTextDrawFont(playerid, Stats[11][playerid], 4);
  146.    
  147.     Stats[12][playerid] = CreatePlayerTextDraw(playerid, 475.200103, 221.013320, "~y~Score: ~w~93103");
  148.     PlayerTextDrawLetterSize(playerid, Stats[12][playerid], 0.274798, 1.532799);
  149.     PlayerTextDrawAlignment(playerid, Stats[12][playerid], 1);
  150.     PlayerTextDrawColor(playerid, Stats[12][playerid], -1);
  151.     PlayerTextDrawSetShadow(playerid, Stats[12][playerid], 0);
  152.     PlayerTextDrawSetOutline(playerid, Stats[12][playerid], 1);
  153.     PlayerTextDrawBackgroundColor(playerid, Stats[12][playerid], 51);
  154.     PlayerTextDrawFont(playerid, Stats[12][playerid], 1);
  155.     PlayerTextDrawSetProportional(playerid, Stats[12][playerid], 1);
  156.  
  157.     Stats[13][playerid] = CreatePlayerTextDraw(playerid, 456.000000, 256.106658, "hud:radar_cash");
  158.     PlayerTextDrawLetterSize(playerid, Stats[13][playerid], 0.000000, 0.000000);
  159.     PlayerTextDrawTextSize(playerid, Stats[13][playerid], 13.600034, 11.946683);
  160.     PlayerTextDrawAlignment(playerid, Stats[13][playerid], 1);
  161.     PlayerTextDrawColor(playerid, Stats[13][playerid], -1);
  162.     PlayerTextDrawSetShadow(playerid, Stats[13][playerid], 0);
  163.     PlayerTextDrawSetOutline(playerid, Stats[13][playerid], 0);
  164.     PlayerTextDrawFont(playerid, Stats[13][playerid], 4);
  165.    
  166.     Stats[14][playerid] = CreatePlayerTextDraw(playerid, 473.600006, 254.613311, "~y~Money: ~w~93100");
  167.     PlayerTextDrawLetterSize(playerid, Stats[14][playerid], 0.288399, 1.338665);
  168.     PlayerTextDrawAlignment(playerid, Stats[14][playerid], 1);
  169.     PlayerTextDrawColor(playerid, Stats[14][playerid], -1);
  170.     PlayerTextDrawSetShadow(playerid, Stats[14][playerid], 0);
  171.     PlayerTextDrawSetOutline(playerid, Stats[14][playerid], 1);
  172.     PlayerTextDrawBackgroundColor(playerid, Stats[14][playerid], 51);
  173.     PlayerTextDrawFont(playerid, Stats[14][playerid], 1);
  174.     PlayerTextDrawSetProportional(playerid, Stats[14][playerid], 1);
  175.  
  176.     Stats[15][playerid] = CreatePlayerTextDraw(playerid, 566.799987, 121.713325, "usebox");
  177.     PlayerTextDrawLetterSize(playerid, Stats[15][playerid], 0.000000, 1.010740);
  178.     PlayerTextDrawTextSize(playerid, Stats[15][playerid], 137.199996, 0.000000);
  179.     PlayerTextDrawAlignment(playerid, Stats[15][playerid], 1);
  180.     PlayerTextDrawColor(playerid, Stats[15][playerid], 0);
  181.     PlayerTextDrawUseBox(playerid, Stats[15][playerid], true);
  182.     PlayerTextDrawBoxColor(playerid, Stats[15][playerid], 102);
  183.     PlayerTextDrawSetShadow(playerid, Stats[15][playerid], 0);
  184.     PlayerTextDrawSetOutline(playerid, Stats[15][playerid], 0);
  185.     PlayerTextDrawFont(playerid, Stats[15][playerid], 0);
  186.  
  187.     Stats[16][playerid] = CreatePlayerTextDraw(playerid, 221.199645, 135.900009, "usebox");
  188.     PlayerTextDrawLetterSize(playerid, Stats[16][playerid], 0.000000, 1.167775);
  189.     PlayerTextDrawTextSize(playerid, Stats[16][playerid], 137.199996, 0.000000);
  190.     PlayerTextDrawAlignment(playerid, Stats[16][playerid], 1);
  191.     PlayerTextDrawColor(playerid, Stats[16][playerid], 0);
  192.     PlayerTextDrawUseBox(playerid, Stats[16][playerid], true);
  193.     PlayerTextDrawBoxColor(playerid, Stats[16][playerid], 102);
  194.     PlayerTextDrawSetShadow(playerid, Stats[16][playerid], 0);
  195.     PlayerTextDrawSetOutline(playerid, Stats[16][playerid], 0);
  196.     PlayerTextDrawFont(playerid, Stats[16][playerid], 0);
  197.  
  198.     Stats[17][playerid] = CreatePlayerTextDraw(playerid, 223.199981, 151.573379, "hud:radar_runway");
  199.     PlayerTextDrawLetterSize(playerid, Stats[17][playerid], 0.000000, 0.000000);
  200.     PlayerTextDrawTextSize(playerid, Stats[17][playerid], -15.999978, -20.159992);
  201.     PlayerTextDrawAlignment(playerid, Stats[17][playerid], 1);
  202.     PlayerTextDrawColor(playerid, Stats[17][playerid], -1);
  203.     PlayerTextDrawSetShadow(playerid, Stats[17][playerid], 0);
  204.     PlayerTextDrawSetOutline(playerid, Stats[17][playerid], 0);
  205.     PlayerTextDrawFont(playerid, Stats[17][playerid], 4);
  206.    
  207.     Stats[18][playerid] = CreatePlayerTextDraw(playerid, 223.999908, 133.653259, "~g~ThreeKingz's ~y~Stats");
  208.     PlayerTextDrawLetterSize(playerid, Stats[18][playerid], 0.449999, 1.600000);
  209.     PlayerTextDrawAlignment(playerid, Stats[18][playerid], 1);
  210.     PlayerTextDrawColor(playerid, Stats[18][playerid], -1);
  211.     PlayerTextDrawSetShadow(playerid, Stats[18][playerid], 0);
  212.     PlayerTextDrawSetOutline(playerid, Stats[18][playerid], 1);
  213.     PlayerTextDrawBackgroundColor(playerid, Stats[18][playerid], 51);
  214.     PlayerTextDrawFont(playerid, Stats[18][playerid], 1);
  215.     PlayerTextDrawSetProportional(playerid, Stats[18][playerid], 1);
  216.  
  217.     Stats[19][playerid] = CreatePlayerTextDraw(playerid, 566.799987, 135.900009, "usebox");
  218.     PlayerTextDrawLetterSize(playerid, Stats[19][playerid], 0.000000, 1.010738);
  219.     PlayerTextDrawTextSize(playerid, Stats[19][playerid], 366.800018, 0.000000);
  220.     PlayerTextDrawAlignment(playerid, Stats[19][playerid], 1);
  221.     PlayerTextDrawColor(playerid, Stats[19][playerid], 0);
  222.     PlayerTextDrawUseBox(playerid, Stats[19][playerid], true);
  223.     PlayerTextDrawBoxColor(playerid, Stats[19][playerid], 102);
  224.     PlayerTextDrawSetShadow(playerid, Stats[19][playerid], 0);
  225.     PlayerTextDrawSetOutline(playerid, Stats[19][playerid], 0);
  226.     PlayerTextDrawFont(playerid, Stats[19][playerid], 0);
  227.  
  228.     Stats[20][playerid] = CreatePlayerTextDraw(playerid, 378.399993, 150.080032, "hud:radar_runway");
  229.     PlayerTextDrawLetterSize(playerid, Stats[20][playerid], 0.000000, 0.000000);
  230.     PlayerTextDrawTextSize(playerid, Stats[20][playerid], -15.200037, -17.920000);
  231.     PlayerTextDrawAlignment(playerid, Stats[20][playerid], 1);
  232.     PlayerTextDrawColor(playerid, Stats[20][playerid], -1);
  233.     PlayerTextDrawSetShadow(playerid, Stats[20][playerid], 0);
  234.     PlayerTextDrawSetOutline(playerid, Stats[20][playerid], 0);
  235.     PlayerTextDrawFont(playerid, Stats[20][playerid], 4);
  236.  
  237.     Stats[21][playerid] = CreatePlayerTextDraw(playerid, 154.800003, 150.833343, "usebox");
  238.     PlayerTextDrawLetterSize(playerid, Stats[21][playerid], 0.000000, 22.581110);
  239.     PlayerTextDrawTextSize(playerid, Stats[21][playerid], 138.000000, 0.000000);
  240.     PlayerTextDrawAlignment(playerid, Stats[21][playerid], 1);
  241.     PlayerTextDrawColor(playerid, Stats[21][playerid], 0);
  242.     PlayerTextDrawUseBox(playerid, Stats[21][playerid], true);
  243.     PlayerTextDrawBoxColor(playerid, Stats[21][playerid], 102);
  244.     PlayerTextDrawSetShadow(playerid, Stats[21][playerid], 0);
  245.     PlayerTextDrawSetOutline(playerid, Stats[21][playerid], 0);
  246.     PlayerTextDrawFont(playerid, Stats[21][playerid], 0);
  247.  
  248.     Stats[22][playerid] = CreatePlayerTextDraw(playerid, 566.799987, 349.446685, "usebox");
  249.     PlayerTextDrawLetterSize(playerid, Stats[22][playerid], 0.000000, 0.527778);
  250.     PlayerTextDrawTextSize(playerid, Stats[22][playerid], 137.199996, 0.000000);
  251.     PlayerTextDrawAlignment(playerid, Stats[22][playerid], 1);
  252.     PlayerTextDrawColor(playerid, Stats[22][playerid], 0);
  253.     PlayerTextDrawUseBox(playerid, Stats[22][playerid], true);
  254.     PlayerTextDrawBoxColor(playerid, Stats[22][playerid], 102);
  255.     PlayerTextDrawSetShadow(playerid, Stats[22][playerid], 0);
  256.     PlayerTextDrawSetOutline(playerid, Stats[22][playerid], 0);
  257.     PlayerTextDrawFont(playerid, Stats[22][playerid], 0);
  258.  
  259.     Stats[23][playerid] = CreatePlayerTextDraw(playerid, 566.799987, 150.833343, "usebox");
  260.     PlayerTextDrawLetterSize(playerid, Stats[23][playerid], 0.000000, 21.419628);
  261.     PlayerTextDrawTextSize(playerid, Stats[23][playerid], 555.599975, 0.000000);
  262.     PlayerTextDrawAlignment(playerid, Stats[23][playerid], 1);
  263.     PlayerTextDrawColor(playerid, Stats[23][playerid], 0);
  264.     PlayerTextDrawUseBox(playerid, Stats[23][playerid], true);
  265.     PlayerTextDrawBoxColor(playerid, Stats[23][playerid], 102);
  266.     PlayerTextDrawSetShadow(playerid, Stats[23][playerid], 0);
  267.     PlayerTextDrawSetOutline(playerid, Stats[23][playerid], 0);
  268.     PlayerTextDrawFont(playerid, Stats[23][playerid], 0);
  269.  
  270.     Stats[24][playerid] = CreatePlayerTextDraw(playerid, 147.999969, 334.506713, "ld_grav:exity");
  271.     PlayerTextDrawLetterSize(playerid, Stats[24][playerid], 0.000000, 0.000000);
  272.     PlayerTextDrawTextSize(playerid, Stats[24][playerid], 32.800018, 13.439972);
  273.     PlayerTextDrawAlignment(playerid, Stats[24][playerid], 1);
  274.     PlayerTextDrawColor(playerid, Stats[24][playerid], -1);
  275.     PlayerTextDrawSetShadow(playerid, Stats[24][playerid], 0);
  276.     PlayerTextDrawSetOutline(playerid, Stats[24][playerid], 0);
  277.     PlayerTextDrawFont(playerid, Stats[24][playerid], 4);
  278.     PlayerTextDrawSetSelectable(playerid, Stats[24][playerid], true);
  279.  
  280.     Stats[25][playerid] = CreatePlayerTextDraw(playerid, 154.729568, 160.440216, "LD_BEAT:cring");
  281.     PlayerTextDrawLetterSize(playerid, Stats[25][playerid], 0.000000, 0.000000);
  282.     PlayerTextDrawTextSize(playerid, Stats[25][playerid], 21.599992, 20.159999);
  283.     PlayerTextDrawAlignment(playerid, Stats[25][playerid], 1);
  284.     PlayerTextDrawColor(playerid, Stats[25][playerid], -1);
  285.     PlayerTextDrawSetShadow(playerid, Stats[25][playerid], 0);
  286.     PlayerTextDrawSetOutline(playerid, Stats[25][playerid], 0);
  287.     PlayerTextDrawFont(playerid, Stats[25][playerid], 4);
  288.     return 1;
  289. }
  290. public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
  291. {
  292.     if(playertextid == Stats[24][playerid])
  293.     {
  294.         for(new i; i != 25; i++)
  295.         {
  296.             PlayerTextDrawHide(playerid, Stats[i][playerid]);
  297.         }
  298.         CancelSelectTextDraw(playerid);
  299.     }
  300.     return 1;
  301. }
  302.  
  303. CMD:stats(playerid, params[])
  304. {
  305.     for(new i; i != 25; i++)
  306.     {
  307.         PlayerTextDrawShow(playerid, Stats[i][playerid]);
  308.     }
  309.     new string[40];
  310.     new name[24];
  311.     GetPlayerName(playerid, name, sizeof(name));
  312.     format(string, sizeof(string), "~y~Deaths: ~w~%d", GetPVarInt(playerid, "Deaths"));
  313.     PlayerTextDrawSetString(playerid, Stats[8][playerid], string);
  314.     PlayerTextDrawShow(playerid, Stats[8][playerid]);
  315.     format(string, sizeof(string), "~y~Kills: ~w~%d", GetPVarInt(playerid, "Kills"));
  316.     PlayerTextDrawSetString(playerid, Stats[10][playerid], string);
  317.     PlayerTextDrawShow(playerid, Stats[10][playerid]);
  318.     format(string, sizeof(string), "~y~Score: ~w~%d", GetPlayerScore(playerid));
  319.     PlayerTextDrawSetString(playerid, Stats[12][playerid], string);
  320.     PlayerTextDrawShow(playerid, Stats[12][playerid]);
  321.     format(string, sizeof(string), "~y~Money: ~w~%d", GetPlayerMoney(playerid));
  322.     PlayerTextDrawSetString(playerid, Stats[14][playerid], string);
  323.     PlayerTextDrawShow(playerid, Stats[14][playerid]);
  324.     format(string, sizeof(string), "~g~%s's ~y~Stats", name);
  325.     PlayerTextDrawSetString(playerid, Stats[18][playerid], string);
  326.     PlayerTextDrawShow(playerid, Stats[18][playerid]);
  327.     SelectTextDraw(playerid, 0x00FF00FF);
  328.     return 1;
  329. }
  330. CMD:g(playerid, params[])
  331. {
  332.     SetPVarInt(playerid, "Deaths", 313);
  333.     SetPVarInt(playerid, "Kills", 1341);
  334.     GivePlayerMoney(playerid, 931);
  335.     SetPlayerScore(playerid, 31334);
  336.     return 1;
  337. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement