Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ================================================================================
- ================================================================================
- Stats Textdraws by ThreeKingz aka ThePhenix
- --------------------------------------------------------------------------------
- Do not claim this as yours!
- Do not distribute it. Only with my permission.
- ================================================================================
- ================================================================================
- */
- #include <a_samp>
- #include <zcmd>
- new PlayerText:Stats[26][MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- Stats[0][playerid] = CreatePlayerTextDraw(playerid, 184.800064, 158.293334, "samaps:map");
- PlayerTextDrawLetterSize(playerid, Stats[0][playerid], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Stats[0][playerid], 249.600128, 178.453201);
- PlayerTextDrawAlignment(playerid, Stats[0][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[0][playerid], -1);
- PlayerTextDrawSetShadow(playerid, Stats[0][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[0][playerid], 0);
- PlayerTextDrawFont(playerid, Stats[0][playerid], 4);
- Stats[1][playerid] = CreatePlayerTextDraw(playerid, 567.600036, 120.966674, "models\txd:backgnd");
- PlayerTextDrawLetterSize(playerid, Stats[1][playerid], 0.000000, 25.982591);
- PlayerTextDrawTextSize(playerid, Stats[1][playerid], 136.399993, 0.000000);
- PlayerTextDrawAlignment(playerid, Stats[1][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[1][playerid], 0);
- PlayerTextDrawUseBox(playerid, Stats[1][playerid], true);
- PlayerTextDrawBoxColor(playerid, Stats[1][playerid], 102);
- PlayerTextDrawSetShadow(playerid, Stats[1][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[1][playerid], 0);
- PlayerTextDrawFont(playerid, Stats[1][playerid], 0);
- Stats[2][playerid] = CreatePlayerTextDraw(playerid, 464.000000, 280.746582, "LD_DRV:golfly");
- PlayerTextDrawLetterSize(playerid, Stats[2][playerid], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Stats[2][playerid], 68.799987, 57.493354);
- PlayerTextDrawAlignment(playerid, Stats[2][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[2][playerid], -1);
- PlayerTextDrawSetShadow(playerid, Stats[2][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[2][playerid], 0);
- PlayerTextDrawFont(playerid, Stats[2][playerid], 4);
- Stats[3][playerid] = CreatePlayerTextDraw(playerid, 558.800354, 156.060028, "usebox");
- PlayerTextDrawLetterSize(playerid, Stats[3][playerid], 0.000000, 1.609256);
- PlayerTextDrawTextSize(playerid, Stats[3][playerid], 446.800018, 0.000000);
- PlayerTextDrawAlignment(playerid, Stats[3][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[3][playerid], -1061109505);
- PlayerTextDrawUseBox(playerid, Stats[3][playerid], true);
- PlayerTextDrawBoxColor(playerid, Stats[3][playerid], -1768515960);
- PlayerTextDrawSetShadow(playerid, Stats[3][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[3][playerid], 0);
- PlayerTextDrawBackgroundColor(playerid, Stats[3][playerid], -1061109505);
- PlayerTextDrawFont(playerid, Stats[3][playerid], 0);
- Stats[4][playerid] = CreatePlayerTextDraw(playerid, 558.000000, 188.166656, "usebox");
- PlayerTextDrawLetterSize(playerid, Stats[4][playerid], 0.000000, 1.529258);
- PlayerTextDrawTextSize(playerid, Stats[4][playerid], 446.800018, 0.000000);
- PlayerTextDrawAlignment(playerid, Stats[4][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[4][playerid], 0);
- PlayerTextDrawUseBox(playerid, Stats[4][playerid], true);
- PlayerTextDrawBoxColor(playerid, Stats[4][playerid], -1768515960);
- PlayerTextDrawSetShadow(playerid, Stats[4][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[4][playerid], 0);
- PlayerTextDrawFont(playerid, Stats[4][playerid], 0);
- Stats[5][playerid] = CreatePlayerTextDraw(playerid, 558.000122, 221.019927, "usebox");
- PlayerTextDrawLetterSize(playerid, Stats[5][playerid], 0.000000, 1.695183);
- PlayerTextDrawTextSize(playerid, Stats[5][playerid], 446.800018, 0.000000);
- PlayerTextDrawAlignment(playerid, Stats[5][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[5][playerid], 0);
- PlayerTextDrawUseBox(playerid, Stats[5][playerid], true);
- PlayerTextDrawBoxColor(playerid, Stats[5][playerid], -1768515960);
- PlayerTextDrawSetShadow(playerid, Stats[5][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[5][playerid], 0);
- PlayerTextDrawFont(playerid, Stats[5][playerid], 0);
- Stats[6][playerid] = CreatePlayerTextDraw(playerid, 558.000000, 254.620040, "usebox");
- PlayerTextDrawLetterSize(playerid, Stats[6][playerid], 0.000000, 1.677407);
- PlayerTextDrawTextSize(playerid, Stats[6][playerid], 447.600036, 0.000000);
- PlayerTextDrawAlignment(playerid, Stats[6][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[6][playerid], 0);
- PlayerTextDrawUseBox(playerid, Stats[6][playerid], true);
- PlayerTextDrawBoxColor(playerid, Stats[6][playerid], -1768515960);
- PlayerTextDrawSetShadow(playerid, Stats[6][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[6][playerid], 0);
- PlayerTextDrawFont(playerid, Stats[6][playerid], 0);
- Stats[7][playerid] = CreatePlayerTextDraw(playerid, 455.200012, 156.800018, "hud:radar_LocoSyndicate");
- PlayerTextDrawLetterSize(playerid, Stats[7][playerid], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Stats[7][playerid], 15.199979, 13.440002);
- PlayerTextDrawAlignment(playerid, Stats[7][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[7][playerid], -1);
- PlayerTextDrawSetShadow(playerid, Stats[7][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[7][playerid], 0);
- PlayerTextDrawFont(playerid, Stats[7][playerid], 4);
- Stats[8][playerid] = CreatePlayerTextDraw(playerid, 475.200134, 155.306610, "~y~Deaths: ~w~931");
- PlayerTextDrawLetterSize(playerid, Stats[8][playerid], 0.261999, 1.383466);
- PlayerTextDrawAlignment(playerid, Stats[8][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[8][playerid], -1);
- PlayerTextDrawSetShadow(playerid, Stats[8][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[8][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Stats[8][playerid], 51);
- PlayerTextDrawFont(playerid, Stats[8][playerid], 1);
- PlayerTextDrawSetProportional(playerid, Stats[8][playerid], 1);
- Stats[9][playerid] = CreatePlayerTextDraw(playerid, 455.200012, 189.653335, "hud:radar_emmetGun");
- PlayerTextDrawLetterSize(playerid, Stats[9][playerid], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Stats[9][playerid], 14.399963, 11.199995);
- PlayerTextDrawAlignment(playerid, Stats[9][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[9][playerid], -1);
- PlayerTextDrawSetShadow(playerid, Stats[9][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[9][playerid], 0);
- PlayerTextDrawFont(playerid, Stats[9][playerid], 4);
- Stats[10][playerid] = CreatePlayerTextDraw(playerid, 473.600006, 187.413284, "~y~Kills: ~w~123");
- PlayerTextDrawLetterSize(playerid, Stats[10][playerid], 0.337998, 1.293866);
- PlayerTextDrawAlignment(playerid, Stats[10][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[10][playerid], -1);
- PlayerTextDrawSetShadow(playerid, Stats[10][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[10][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Stats[10][playerid], 51);
- PlayerTextDrawFont(playerid, Stats[10][playerid], 1);
- PlayerTextDrawSetProportional(playerid, Stats[10][playerid], 1);
- Stats[11][playerid] = CreatePlayerTextDraw(playerid, 454.400024, 224.000030, "hud:radar_race");
- PlayerTextDrawLetterSize(playerid, Stats[11][playerid], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Stats[11][playerid], 16.799987, 11.199995);
- PlayerTextDrawAlignment(playerid, Stats[11][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[11][playerid], -1);
- PlayerTextDrawSetShadow(playerid, Stats[11][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[11][playerid], 0);
- PlayerTextDrawFont(playerid, Stats[11][playerid], 4);
- Stats[12][playerid] = CreatePlayerTextDraw(playerid, 475.200103, 221.013320, "~y~Score: ~w~93103");
- PlayerTextDrawLetterSize(playerid, Stats[12][playerid], 0.274798, 1.532799);
- PlayerTextDrawAlignment(playerid, Stats[12][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[12][playerid], -1);
- PlayerTextDrawSetShadow(playerid, Stats[12][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[12][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Stats[12][playerid], 51);
- PlayerTextDrawFont(playerid, Stats[12][playerid], 1);
- PlayerTextDrawSetProportional(playerid, Stats[12][playerid], 1);
- Stats[13][playerid] = CreatePlayerTextDraw(playerid, 456.000000, 256.106658, "hud:radar_cash");
- PlayerTextDrawLetterSize(playerid, Stats[13][playerid], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Stats[13][playerid], 13.600034, 11.946683);
- PlayerTextDrawAlignment(playerid, Stats[13][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[13][playerid], -1);
- PlayerTextDrawSetShadow(playerid, Stats[13][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[13][playerid], 0);
- PlayerTextDrawFont(playerid, Stats[13][playerid], 4);
- Stats[14][playerid] = CreatePlayerTextDraw(playerid, 473.600006, 254.613311, "~y~Money: ~w~93100");
- PlayerTextDrawLetterSize(playerid, Stats[14][playerid], 0.288399, 1.338665);
- PlayerTextDrawAlignment(playerid, Stats[14][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[14][playerid], -1);
- PlayerTextDrawSetShadow(playerid, Stats[14][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[14][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Stats[14][playerid], 51);
- PlayerTextDrawFont(playerid, Stats[14][playerid], 1);
- PlayerTextDrawSetProportional(playerid, Stats[14][playerid], 1);
- Stats[15][playerid] = CreatePlayerTextDraw(playerid, 566.799987, 121.713325, "usebox");
- PlayerTextDrawLetterSize(playerid, Stats[15][playerid], 0.000000, 1.010740);
- PlayerTextDrawTextSize(playerid, Stats[15][playerid], 137.199996, 0.000000);
- PlayerTextDrawAlignment(playerid, Stats[15][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[15][playerid], 0);
- PlayerTextDrawUseBox(playerid, Stats[15][playerid], true);
- PlayerTextDrawBoxColor(playerid, Stats[15][playerid], 102);
- PlayerTextDrawSetShadow(playerid, Stats[15][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[15][playerid], 0);
- PlayerTextDrawFont(playerid, Stats[15][playerid], 0);
- Stats[16][playerid] = CreatePlayerTextDraw(playerid, 221.199645, 135.900009, "usebox");
- PlayerTextDrawLetterSize(playerid, Stats[16][playerid], 0.000000, 1.167775);
- PlayerTextDrawTextSize(playerid, Stats[16][playerid], 137.199996, 0.000000);
- PlayerTextDrawAlignment(playerid, Stats[16][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[16][playerid], 0);
- PlayerTextDrawUseBox(playerid, Stats[16][playerid], true);
- PlayerTextDrawBoxColor(playerid, Stats[16][playerid], 102);
- PlayerTextDrawSetShadow(playerid, Stats[16][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[16][playerid], 0);
- PlayerTextDrawFont(playerid, Stats[16][playerid], 0);
- Stats[17][playerid] = CreatePlayerTextDraw(playerid, 223.199981, 151.573379, "hud:radar_runway");
- PlayerTextDrawLetterSize(playerid, Stats[17][playerid], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Stats[17][playerid], -15.999978, -20.159992);
- PlayerTextDrawAlignment(playerid, Stats[17][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[17][playerid], -1);
- PlayerTextDrawSetShadow(playerid, Stats[17][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[17][playerid], 0);
- PlayerTextDrawFont(playerid, Stats[17][playerid], 4);
- Stats[18][playerid] = CreatePlayerTextDraw(playerid, 223.999908, 133.653259, "~g~ThreeKingz's ~y~Stats");
- PlayerTextDrawLetterSize(playerid, Stats[18][playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, Stats[18][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[18][playerid], -1);
- PlayerTextDrawSetShadow(playerid, Stats[18][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[18][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Stats[18][playerid], 51);
- PlayerTextDrawFont(playerid, Stats[18][playerid], 1);
- PlayerTextDrawSetProportional(playerid, Stats[18][playerid], 1);
- Stats[19][playerid] = CreatePlayerTextDraw(playerid, 566.799987, 135.900009, "usebox");
- PlayerTextDrawLetterSize(playerid, Stats[19][playerid], 0.000000, 1.010738);
- PlayerTextDrawTextSize(playerid, Stats[19][playerid], 366.800018, 0.000000);
- PlayerTextDrawAlignment(playerid, Stats[19][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[19][playerid], 0);
- PlayerTextDrawUseBox(playerid, Stats[19][playerid], true);
- PlayerTextDrawBoxColor(playerid, Stats[19][playerid], 102);
- PlayerTextDrawSetShadow(playerid, Stats[19][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[19][playerid], 0);
- PlayerTextDrawFont(playerid, Stats[19][playerid], 0);
- Stats[20][playerid] = CreatePlayerTextDraw(playerid, 378.399993, 150.080032, "hud:radar_runway");
- PlayerTextDrawLetterSize(playerid, Stats[20][playerid], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Stats[20][playerid], -15.200037, -17.920000);
- PlayerTextDrawAlignment(playerid, Stats[20][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[20][playerid], -1);
- PlayerTextDrawSetShadow(playerid, Stats[20][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[20][playerid], 0);
- PlayerTextDrawFont(playerid, Stats[20][playerid], 4);
- Stats[21][playerid] = CreatePlayerTextDraw(playerid, 154.800003, 150.833343, "usebox");
- PlayerTextDrawLetterSize(playerid, Stats[21][playerid], 0.000000, 22.581110);
- PlayerTextDrawTextSize(playerid, Stats[21][playerid], 138.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, Stats[21][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[21][playerid], 0);
- PlayerTextDrawUseBox(playerid, Stats[21][playerid], true);
- PlayerTextDrawBoxColor(playerid, Stats[21][playerid], 102);
- PlayerTextDrawSetShadow(playerid, Stats[21][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[21][playerid], 0);
- PlayerTextDrawFont(playerid, Stats[21][playerid], 0);
- Stats[22][playerid] = CreatePlayerTextDraw(playerid, 566.799987, 349.446685, "usebox");
- PlayerTextDrawLetterSize(playerid, Stats[22][playerid], 0.000000, 0.527778);
- PlayerTextDrawTextSize(playerid, Stats[22][playerid], 137.199996, 0.000000);
- PlayerTextDrawAlignment(playerid, Stats[22][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[22][playerid], 0);
- PlayerTextDrawUseBox(playerid, Stats[22][playerid], true);
- PlayerTextDrawBoxColor(playerid, Stats[22][playerid], 102);
- PlayerTextDrawSetShadow(playerid, Stats[22][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[22][playerid], 0);
- PlayerTextDrawFont(playerid, Stats[22][playerid], 0);
- Stats[23][playerid] = CreatePlayerTextDraw(playerid, 566.799987, 150.833343, "usebox");
- PlayerTextDrawLetterSize(playerid, Stats[23][playerid], 0.000000, 21.419628);
- PlayerTextDrawTextSize(playerid, Stats[23][playerid], 555.599975, 0.000000);
- PlayerTextDrawAlignment(playerid, Stats[23][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[23][playerid], 0);
- PlayerTextDrawUseBox(playerid, Stats[23][playerid], true);
- PlayerTextDrawBoxColor(playerid, Stats[23][playerid], 102);
- PlayerTextDrawSetShadow(playerid, Stats[23][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[23][playerid], 0);
- PlayerTextDrawFont(playerid, Stats[23][playerid], 0);
- Stats[24][playerid] = CreatePlayerTextDraw(playerid, 147.999969, 334.506713, "ld_grav:exity");
- PlayerTextDrawLetterSize(playerid, Stats[24][playerid], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Stats[24][playerid], 32.800018, 13.439972);
- PlayerTextDrawAlignment(playerid, Stats[24][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[24][playerid], -1);
- PlayerTextDrawSetShadow(playerid, Stats[24][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[24][playerid], 0);
- PlayerTextDrawFont(playerid, Stats[24][playerid], 4);
- PlayerTextDrawSetSelectable(playerid, Stats[24][playerid], true);
- Stats[25][playerid] = CreatePlayerTextDraw(playerid, 154.729568, 160.440216, "LD_BEAT:cring");
- PlayerTextDrawLetterSize(playerid, Stats[25][playerid], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Stats[25][playerid], 21.599992, 20.159999);
- PlayerTextDrawAlignment(playerid, Stats[25][playerid], 1);
- PlayerTextDrawColor(playerid, Stats[25][playerid], -1);
- PlayerTextDrawSetShadow(playerid, Stats[25][playerid], 0);
- PlayerTextDrawSetOutline(playerid, Stats[25][playerid], 0);
- PlayerTextDrawFont(playerid, Stats[25][playerid], 4);
- return 1;
- }
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
- {
- if(playertextid == Stats[24][playerid])
- {
- for(new i; i != 25; i++)
- {
- PlayerTextDrawHide(playerid, Stats[i][playerid]);
- }
- CancelSelectTextDraw(playerid);
- }
- return 1;
- }
- CMD:stats(playerid, params[])
- {
- for(new i; i != 25; i++)
- {
- PlayerTextDrawShow(playerid, Stats[i][playerid]);
- }
- new string[40];
- new name[24];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "~y~Deaths: ~w~%d", GetPVarInt(playerid, "Deaths"));
- PlayerTextDrawSetString(playerid, Stats[8][playerid], string);
- PlayerTextDrawShow(playerid, Stats[8][playerid]);
- format(string, sizeof(string), "~y~Kills: ~w~%d", GetPVarInt(playerid, "Kills"));
- PlayerTextDrawSetString(playerid, Stats[10][playerid], string);
- PlayerTextDrawShow(playerid, Stats[10][playerid]);
- format(string, sizeof(string), "~y~Score: ~w~%d", GetPlayerScore(playerid));
- PlayerTextDrawSetString(playerid, Stats[12][playerid], string);
- PlayerTextDrawShow(playerid, Stats[12][playerid]);
- format(string, sizeof(string), "~y~Money: ~w~%d", GetPlayerMoney(playerid));
- PlayerTextDrawSetString(playerid, Stats[14][playerid], string);
- PlayerTextDrawShow(playerid, Stats[14][playerid]);
- format(string, sizeof(string), "~g~%s's ~y~Stats", name);
- PlayerTextDrawSetString(playerid, Stats[18][playerid], string);
- PlayerTextDrawShow(playerid, Stats[18][playerid]);
- SelectTextDraw(playerid, 0x00FF00FF);
- return 1;
- }
- CMD:g(playerid, params[])
- {
- SetPVarInt(playerid, "Deaths", 313);
- SetPVarInt(playerid, "Kills", 1341);
- GivePlayerMoney(playerid, 931);
- SetPlayerScore(playerid, 31334);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement