gergo4961

Party/Squad System by Gergo4961/DRCharlie

Nov 26th, 2014
523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 32.74 KB | None | 0 0
  1. /*
  2.  
  3. Hello and welcome to Gergő4961's Party System. This system has been created because the community always helped me out and I want to contribute too.
  4. Feel free to edit it but don't remove the credits unless you edited the whole thing and it's basically now your own.
  5.  
  6. ~ Gergő4961 / DRCharlie on SA:MP Forums
  7.  
  8.  -----------------------------
  9. | Basics of the filterscript: |
  10.  -----------------------------
  11. This is basically a filterscript that lets you play better with your friends. You can form a party/squad(I'll be calling it a party from now on) like in any MMO / Multiplayer game.
  12. You'll be able to see their health, armor and their location if you press N on your keyboard.
  13.  
  14.  
  15.  
  16. Commands:
  17.  
  18. /createparty - > You create a party and become the leader of said party.
  19. /invite - > You can invite up to 4 people to your party. Only the party leader can use this command.
  20. /leaveparty - > You leave the party as a member. The party leader can't use this command.
  21. /disbandparty - > You disband the party = everyone in your party gets kicked out and you leave too. Only the party leader can use this command.
  22. /kickparty - > You can kick people from your party. Only the party leader can use this command.
  23.  
  24. */
  25.  
  26.  
  27. #define FILTERSCRIPT
  28. #include <a_samp>
  29. #include <zcmd>
  30. #include <sscanf2>
  31. #define MAX_PARTIES 80
  32. #if defined FILTERSCRIPT
  33.  
  34. new PlayerText:PartyTD[15]= {PlayerText:INVALID_TEXT_DRAW, ...};
  35.  
  36. forward RemoveMarkers(playerid); // This is the timer used to remove the blips from the map after ~10 seconds.
  37.  
  38. enum pInfo
  39. {
  40.     pID,
  41.     pLeader[MAX_PLAYER_NAME], // Not really used at the moment, I might update script that's why it's here.
  42.     pMember[6],
  43.  
  44. }
  45. new PartyInfo[MAX_PARTIES][pInfo];
  46.  
  47. new InParty[MAX_PLAYERS]; // Checks if the player is in a party or not, returns party ID.
  48. new PartySpot[MAX_PLAYERS]; // Checks which ,,slot" the player is in the party. 1 is leader(RED), 2 is Green, 3 is Blue, 4 is Yellow and 5 is Purple.
  49.  
  50. public OnFilterScriptInit()
  51. {
  52.     print("\n--------------------------------------");
  53.     print(" SA:MP Party / Squad System by Gergo4961/DRCharlie ");
  54.     print("--------------------------------------\n");
  55.     return 1;
  56. }
  57.  
  58. public OnFilterScriptExit()
  59. {
  60.     return 1;
  61. }
  62.  
  63. #else
  64.  
  65. main()
  66. {
  67.     print("\n----------------------------------");
  68.     print(" SA:MP Party / Squad System by Gergo4961/DRCharlie ");
  69.     print("----------------------------------\n");
  70. }
  71.  
  72. #endif
  73.  
  74. public OnGameModeInit()
  75. {
  76.     ShowPlayerMarkers(1);
  77.     LimitPlayerMarkerRadius(800.0); // You can only see your teammates (after pressing N of course) if they are close to you.
  78.     return 1;
  79. }
  80.  
  81.  
  82. // Defining Team Colors on map ((Press N (KEY_NO) to see your teammates for 10 seconds))
  83. #define COLOR_RED 0xff0000FF
  84. #define COLOR_GREEN 0x0cd802FF
  85. #define COLOR_BLUE 0x02c8ffFF
  86. #define COLOR_YELLOW 0xf7d200FF
  87. #define COLOR_PURPLE 0xd300a5FF
  88.  
  89. // Defining System Colors ((These are the colors of the messages the server sends you))
  90. #define COLOR_SYSTEM 0xFF6600FF
  91. #define COLOR_ERROR 0xFF6600FF
  92.  
  93. // Removing the players from the map unless they are members of your party
  94. #define COLOR_INVISIBLE 0xFFFFFF00
  95.  
  96. // This stops you from Spamming N ((Revealing your teammates' location))
  97. new CheckLocation[MAX_PLAYERS];
  98.  
  99. public OnPlayerConnect(playerid)
  100. {
  101.     InParty[playerid]=-1;
  102.     CheckLocation[playerid]=0;
  103.     PartySpot[playerid]=0;
  104.     LoadPartyTextDraws(playerid);
  105.     SetPlayerColor(playerid,COLOR_INVISIBLE); // It won't show you on the map for others
  106.     return 1;
  107. }
  108.  
  109. public OnPlayerSpawn(playerid)
  110. {
  111.     return 1;
  112. }
  113.  
  114. public OnPlayerDisconnect(playerid, reason)
  115. {
  116.     if(InParty[playerid]!=-1) // If the player is in a party and he leaves/crashes/gets kicked or banned this will automatically remove him from the party and sync it for the others.
  117.     {
  118.         if(PartySpot[playerid]==1)
  119.         {
  120.             if(PartyInfo[InParty[playerid]][pMember][2]!=-1)
  121.             {
  122.                 PartySpot[PartyInfo[InParty[playerid]][pMember][2]]=0;
  123.                 InParty[PartyInfo[InParty[playerid]][pMember][2]]=-1;
  124.                 for(new i =0;i<15;i++)
  125.                 {
  126.                     PlayerTextDrawHide(PartyInfo[InParty[playerid]][pMember][2],PartyTD[i]);
  127.                 }
  128.             }
  129.             if(PartyInfo[InParty[playerid]][pMember][3]!=-1)
  130.             {
  131.                 PartySpot[PartyInfo[InParty[playerid]][pMember][3]]=0;
  132.                 InParty[PartyInfo[InParty[playerid]][pMember][3]]=-1;
  133.                 for(new i =0;i<15;i++)
  134.                 {
  135.                     PlayerTextDrawHide(PartyInfo[InParty[playerid]][pMember][3],PartyTD[i]);
  136.                 }
  137.             }
  138.             if(PartyInfo[InParty[playerid]][pMember][4]!=-1)
  139.             {
  140.                 PartySpot[PartyInfo[InParty[playerid]][pMember][4]]=0;
  141.                 InParty[PartyInfo[InParty[playerid]][pMember][4]]=-1;
  142.                 for(new i =0;i<15;i++)
  143.                 {
  144.                     PlayerTextDrawHide(PartyInfo[InParty[playerid]][pMember][4],PartyTD[i]);
  145.                 }
  146.             }
  147.             if(PartyInfo[InParty[playerid]][pMember][5]!=-1)
  148.             {
  149.                 PartySpot[PartyInfo[InParty[playerid]][pMember][5]]=0;
  150.                 InParty[PartyInfo[InParty[playerid]][pMember][5]]=-1;
  151.                 for(new i =0;i<15;i++)
  152.                 {
  153.                     PlayerTextDrawHide(PartyInfo[InParty[playerid]][pMember][5],PartyTD[i]);
  154.                 }
  155.             }
  156.             PartyInfo[InParty[playerid]][pMember][1]=-1;
  157.             PartyInfo[InParty[playerid]][pMember][2]=-1;
  158.             PartyInfo[InParty[playerid]][pMember][3]=-1;
  159.             PartyInfo[InParty[playerid]][pMember][4]=-1;
  160.             PartyInfo[InParty[playerid]][pMember][5]=-1;
  161.             PartyInfo[InParty[playerid]][pID]=0;
  162.             InParty[playerid]=-1;
  163.             PartySpot[playerid]=0;
  164.  
  165.             for(new i =0;i<15;i++)
  166.             {
  167.                 PlayerTextDrawHide(playerid,PartyTD[i]);
  168.             }
  169.             return 1;
  170.         }
  171.         else
  172.         {
  173.             PartyInfo[InParty[playerid]][pMember][PartySpot[playerid]]=-1;
  174.             if(PartyInfo[InParty[playerid]][pMember][1]!=-1)
  175.             {
  176.                 HideParty(PartyInfo[InParty[playerid]][pMember][1]);
  177.             }
  178.             if(PartyInfo[InParty[playerid]][pMember][2]!=-1)
  179.             {
  180.                 HideParty(PartyInfo[InParty[playerid]][pMember][2]);
  181.             }
  182.             if(PartyInfo[InParty[playerid]][pMember][3]!=-1)
  183.             {
  184.                 HideParty(PartyInfo[InParty[playerid]][pMember][3]);
  185.             }
  186.             if(PartyInfo[InParty[playerid]][pMember][4]!=-1)
  187.             {
  188.                 HideParty(PartyInfo[InParty[playerid]][pMember][4]);
  189.             }
  190.             if(PartyInfo[InParty[playerid]][pMember][5]!=-1)
  191.             {
  192.                 HideParty(PartyInfo[InParty[playerid]][pMember][5]);
  193.             }
  194.         }
  195.         InParty[playerid]=-1;
  196.         PartySpot[playerid]=0;
  197.         for(new i =0;i<15;i++)
  198.         {
  199.             PlayerTextDrawHide(playerid,PartyTD[i]);
  200.         }
  201.     }
  202.     return 1;
  203. }
  204.  
  205. CMD:partyhelp(playerid,params[])
  206. {
  207.     SendClientMessage(playerid, COLOR_SYSTEM,"Party/Squad system by Gergo4961/DRCharlie(on SA:MP forums)");
  208.     SendClientMessage(playerid, COLOR_SYSTEM,"CMDS: /createparty | /invite | /leaveparty | /disbandparty | /kickparty");
  209.     SendClientMessage(playerid, COLOR_SYSTEM,"Press N To see other party members on your radar");
  210.     return 1;
  211. }
  212.  
  213.  
  214. CMD:createparty(playerid, params[])
  215. {
  216.     if(InParty[playerid]==-1)
  217.     {
  218.         new NewID = GetPartyID();
  219.         PartyInfo[NewID][pLeader] = playerid;
  220.         InParty[playerid]=NewID;
  221.         PartySpot[playerid]=1; // party leader
  222.         PartyInfo[NewID][pMember][1]=playerid; // red
  223.         PartyInfo[NewID][pMember][2]=-1; // green
  224.         PartyInfo[NewID][pMember][3]=-1; // blue
  225.         PartyInfo[NewID][pMember][4]=-1; // yellow
  226.         PartyInfo[NewID][pMember][5]=-1; // purple
  227.         PartyInfo[NewID][pID]=NewID;
  228.         new string[256];
  229.         format(string,255,"You've successfully created a party, you can invite your friends using: /invite | Party ID: %d",NewID);
  230.         SendClientMessage(playerid, COLOR_SYSTEM, string);
  231.     }
  232.     else
  233.     {
  234.         SendClientMessage(playerid, COLOR_ERROR, "You're already in a party!");
  235.     }
  236.     return 1;
  237. }
  238. CMD:kickparty(playerid, params[])
  239. {
  240.     new targetid;
  241.     if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_SYSTEM, "[USAGE]: /kickparty [Part of Name/Player ID]");
  242.     if(InParty[playerid]==-1) return SendClientMessage(playerid, COLOR_ERROR, "You must form a party first! Use: /createparty.");
  243.     if(PartySpot[playerid]==1)
  244.     {
  245.         if(InParty[playerid]==InParty[targetid])
  246.         {
  247.             if(playerid!=targetid)
  248.             {
  249.                 PartyInfo[InParty[targetid]][pMember][PartySpot[targetid]]=-1;
  250.                 if(PartyInfo[InParty[playerid]][pMember][1]!=-1)
  251.                 {
  252.                     HideParty(PartyInfo[InParty[playerid]][pMember][1]);
  253.                 }
  254.                 if(PartyInfo[InParty[playerid]][pMember][2]!=-1)
  255.                 {
  256.                     HideParty(PartyInfo[InParty[playerid]][pMember][2]);
  257.                 }
  258.                 if(PartyInfo[InParty[playerid]][pMember][3]!=-1)
  259.                 {
  260.                     HideParty(PartyInfo[InParty[playerid]][pMember][3]);
  261.                 }
  262.                 if(PartyInfo[InParty[playerid]][pMember][4]!=-1)
  263.                 {
  264.                     HideParty(PartyInfo[InParty[playerid]][pMember][4]);
  265.                 }
  266.                 if(PartyInfo[InParty[playerid]][pMember][5]!=-1)
  267.                 {
  268.                     HideParty(PartyInfo[InParty[playerid]][pMember][5]);
  269.                 }
  270.                 InParty[targetid]=-1;
  271.                 PartySpot[targetid]=0;
  272.                 SendClientMessage(playerid, COLOR_SYSTEM, "You've successfully kicked the given person from your party.");
  273.                 SendClientMessage(targetid, COLOR_SYSTEM, "You've been kicked from your current party.");
  274.                 for(new i =0;i<15;i++)
  275.                 {
  276.                     PlayerTextDrawHide(targetid,PartyTD[i]);
  277.                 }
  278.             }
  279.             else
  280.             {
  281.                 SendClientMessage(playerid, COLOR_SYSTEM, "You can't kick yourself from the party, that's just stupid. Use: /disbandparty.");
  282.             }
  283.         }
  284.         else
  285.         {
  286.             SendClientMessage(playerid, COLOR_SYSTEM, "You can only kick people from your party, nice try though!");
  287.         }
  288.     }
  289.     else
  290.     {
  291.         SendClientMessage(playerid, COLOR_ERROR, "Only the leader of the party can use this command!");
  292.     }
  293.     return 1;
  294. }
  295. CMD:invite(playerid, params[])
  296. {
  297.     new targetid;
  298.     if(PartySpot[playerid]==1)
  299.     {
  300.         if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_SYSTEM, "[USAGE]: /invite [playerid]");
  301.         if(InParty[targetid]==-1)
  302.         {
  303.             for(new i =2;i<6;i++) /// 1 is leader that's why it is not included in the loop
  304.             {
  305.                 if(PartyInfo[InParty[playerid]][pMember][i]==-1)
  306.                 {
  307.                     InParty[targetid]=InParty[playerid];
  308.                     PartyInfo[InParty[targetid]][pMember][i]=targetid;
  309.                     PartySpot[targetid]=i;
  310.                    
  311.                     break;
  312.                 }
  313.             }
  314.             if(PartyInfo[InParty[playerid]][pMember][1]!=-1)
  315.             {
  316.                 UpdateParty(PartyInfo[InParty[targetid]][pMember][1]);
  317.             }
  318.             if(PartyInfo[InParty[playerid]][pMember][2]!=-1)
  319.             {
  320.                 UpdateParty(PartyInfo[InParty[targetid]][pMember][2]);
  321.             }
  322.             if(PartyInfo[InParty[playerid]][pMember][3]!=-1)
  323.             {
  324.                 UpdateParty(PartyInfo[InParty[targetid]][pMember][3]);
  325.             }
  326.             if(PartyInfo[InParty[playerid]][pMember][4]!=-1)
  327.             {
  328.                 UpdateParty(PartyInfo[InParty[targetid]][pMember][4]);
  329.             }
  330.             if(PartyInfo[InParty[playerid]][pMember][5]!=-1)
  331.             {
  332.                 UpdateParty(PartyInfo[InParty[targetid]][pMember][5]);
  333.             }
  334.         }
  335.         else
  336.         {
  337.             SendClientMessage(playerid, COLOR_ERROR, "The selected player is already in a party.");
  338.             return 1;
  339.         }
  340.     }
  341.     else
  342.     {
  343.         SendClientMessage(playerid, COLOR_ERROR, "You must create a party first: /createparty.");
  344.         return 1;
  345.     }
  346.  
  347.     return 1;
  348. }
  349.  
  350. CMD:leaveparty(playerid,params[])
  351. {
  352.     if(InParty[playerid]!=-1)
  353.     {
  354.         if(PartySpot[playerid]!=1)
  355.         {
  356.             PartyInfo[InParty[playerid]][pMember][PartySpot[playerid]]=-1;
  357.             if(PartyInfo[InParty[playerid]][pMember][1]!=-1)
  358.             {
  359.                 HideParty(PartyInfo[InParty[playerid]][pMember][1]);
  360.             }
  361.             if(PartyInfo[InParty[playerid]][pMember][2]!=-1)
  362.             {
  363.                 HideParty(PartyInfo[InParty[playerid]][pMember][2]);
  364.             }
  365.             if(PartyInfo[InParty[playerid]][pMember][3]!=-1)
  366.             {
  367.                 HideParty(PartyInfo[InParty[playerid]][pMember][3]);
  368.             }
  369.             if(PartyInfo[InParty[playerid]][pMember][4]!=-1)
  370.             {
  371.                 HideParty(PartyInfo[InParty[playerid]][pMember][4]);
  372.             }
  373.             if(PartyInfo[InParty[playerid]][pMember][5]!=-1)
  374.             {
  375.                 HideParty(PartyInfo[InParty[playerid]][pMember][5]);
  376.             }
  377.             InParty[playerid]=-1;
  378.             PartySpot[playerid]=0;
  379.             for(new i =0;i<15;i++)
  380.             {
  381.                 PlayerTextDrawHide(playerid,PartyTD[i]);
  382.             }
  383.             return 1;
  384.         }
  385.         else
  386.         {
  387.             SendClientMessage(playerid, COLOR_ERROR, "Only members can use this command, use /disbandparty.");
  388.             return 1;
  389.         }
  390.     }
  391.     else
  392.     {
  393.         SendClientMessage(playerid, COLOR_ERROR, "You are not in a party.");
  394.         return 1;
  395.     }
  396. }
  397.  
  398. CMD:disbandparty(playerid,params[])
  399. {
  400.     if(InParty[playerid]!=-1)
  401.     {
  402.         if(PartySpot[playerid]==1)
  403.         {
  404.             if(PartyInfo[InParty[playerid]][pMember][2]!=-1)
  405.             {
  406.                 PartySpot[PartyInfo[InParty[playerid]][pMember][2]]=0;
  407.                 InParty[PartyInfo[InParty[playerid]][pMember][2]]=-1;
  408.                 for(new i =0;i<15;i++)
  409.                 {
  410.                     PlayerTextDrawHide(PartyInfo[InParty[playerid]][pMember][2],PartyTD[i]);
  411.                 }
  412.             }
  413.             if(PartyInfo[InParty[playerid]][pMember][3]!=-1)
  414.             {
  415.                 PartySpot[PartyInfo[InParty[playerid]][pMember][3]]=0;
  416.                 InParty[PartyInfo[InParty[playerid]][pMember][3]]=-1;
  417.                 for(new i =0;i<15;i++)
  418.                 {
  419.                     PlayerTextDrawHide(PartyInfo[InParty[playerid]][pMember][3],PartyTD[i]);
  420.                 }
  421.             }
  422.             if(PartyInfo[InParty[playerid]][pMember][4]!=-1)
  423.             {
  424.                 PartySpot[PartyInfo[InParty[playerid]][pMember][4]]=0;
  425.                 InParty[PartyInfo[InParty[playerid]][pMember][4]]=-1;
  426.                 for(new i =0;i<15;i++)
  427.                 {
  428.                     PlayerTextDrawHide(PartyInfo[InParty[playerid]][pMember][4],PartyTD[i]);
  429.                 }
  430.             }
  431.             if(PartyInfo[InParty[playerid]][pMember][5]!=-1)
  432.             {
  433.                 PartySpot[PartyInfo[InParty[playerid]][pMember][5]]=0;
  434.                 InParty[PartyInfo[InParty[playerid]][pMember][5]]=-1;
  435.                 for(new i =0;i<15;i++)
  436.                 {
  437.                     PlayerTextDrawHide(PartyInfo[InParty[playerid]][pMember][5],PartyTD[i]);
  438.                 }
  439.             }
  440.             PartyInfo[InParty[playerid]][pMember][1]=-1;
  441.             PartyInfo[InParty[playerid]][pMember][2]=-1;
  442.             PartyInfo[InParty[playerid]][pMember][3]=-1;
  443.             PartyInfo[InParty[playerid]][pMember][4]=-1;
  444.             PartyInfo[InParty[playerid]][pMember][5]=-1;
  445.             PartyInfo[InParty[playerid]][pID]=0;
  446.             new string[256];
  447.             format(string,255,"Disbanded party: %d",InParty[playerid]);
  448.             SendClientMessage(playerid, COLOR_SYSTEM, string);
  449.             InParty[playerid]=-1;
  450.             PartySpot[playerid]=0;
  451.  
  452.             for(new i =0;i<15;i++)
  453.             {
  454.                 PlayerTextDrawHide(playerid,PartyTD[i]);
  455.             }
  456.             return 1;
  457.         }
  458.         else
  459.         {
  460.             SendClientMessage(playerid, COLOR_ERROR, "Only the party leader can use this command, use /leaveparty.");
  461.             return 1;
  462.         }
  463.     }
  464.     else
  465.     {
  466.         SendClientMessage(playerid, COLOR_ERROR, "You are not in a party.");
  467.         return 1;
  468.     }
  469. }
  470.  
  471.  
  472.  
  473. public RemoveMarkers(playerid) // Removing the dots on the radar after ~10 seconds.
  474. {
  475.     for(new i =0;i<MAX_PLAYERS;i++)
  476.     {
  477.         if(IsPlayerConnected(i))
  478.         {
  479.             SetPlayerMarkerForPlayer(playerid, i, COLOR_INVISIBLE);
  480.         }
  481.     }
  482.     CheckLocation[playerid]=0;
  483. }
  484.  
  485. public OnPlayerDeath(playerid,killerid,reason)
  486. {
  487.  
  488. }
  489.  
  490. stock ShowMarkers(playerid) // After pressing N this function reveals your teammates on your radar.
  491. {
  492.     if(PartyInfo[InParty[playerid]][pMember][1]!=-1&&PartyInfo[InParty[playerid]][pMember][1]!=playerid)
  493.     {
  494.         SetPlayerMarkerForPlayer(playerid, PartyInfo[InParty[playerid]][pMember][1], COLOR_RED);
  495.     }
  496.     if(PartyInfo[InParty[playerid]][pMember][2]!=-1&&PartyInfo[InParty[playerid]][pMember][2]!=playerid)
  497.     {
  498.         SetPlayerMarkerForPlayer(playerid,PartyInfo[InParty[playerid]][pMember][2],COLOR_GREEN);
  499.     }
  500.     if(PartyInfo[InParty[playerid]][pMember][3]!=-1&&PartyInfo[InParty[playerid]][pMember][3]!=playerid)
  501.     {
  502.         SetPlayerMarkerForPlayer(playerid, PartyInfo[InParty[playerid]][pMember][3], COLOR_BLUE);
  503.     }
  504.     if(PartyInfo[InParty[playerid]][pMember][4]!=-1&&PartyInfo[InParty[playerid]][pMember][4]!=playerid)
  505.     {
  506.         SetPlayerMarkerForPlayer(playerid, PartyInfo[InParty[playerid]][pMember][4], COLOR_YELLOW);
  507.     }
  508.     if(PartyInfo[InParty[playerid]][pMember][5]!=-1&&PartyInfo[InParty[playerid]][pMember][5]!=playerid)
  509.     {
  510.         SetPlayerMarkerForPlayer(playerid, PartyInfo[InParty[playerid]][pMember][5], COLOR_PURPLE);
  511.     }
  512. }
  513.  
  514. stock UpdateParty(playerid) // This updates all the information of your teammates which is their HP and Armor.
  515. {
  516.     if(InParty[playerid]!=-1)
  517.     {
  518.         new Float:h1,Float:h2,Float:h3,Float:h4,Float:h5;
  519.         new stringh1[255],stringh2[255],stringh3[255],stringh4[255],stringh5[255];
  520.         new Float:a1,Float:a2,Float:a3,Float:a4,Float:a5;
  521.         new stringa1[255],stringa2[255],stringa3[255],stringa4[255],stringa5[255];
  522.         if(PartyInfo[InParty[playerid]][pMember][1]!=-1)
  523.         {
  524.             PlayerTextDrawSetString(playerid,PartyTD[0],GetName(PartyInfo[InParty[playerid]][pMember][1]));
  525.             PlayerTextDrawShow(playerid,PartyTD[0]);
  526.            
  527.             GetPlayerHealth(PartyInfo[InParty[playerid]][pMember][1],h1); format(stringh1,255,"%.0f",h1);
  528.             PlayerTextDrawSetString(playerid,PartyTD[1],stringh1); PlayerTextDrawShow(playerid,PartyTD[1]);
  529.            
  530.             GetPlayerArmour(PartyInfo[InParty[playerid]][pMember][1],a1); format(stringa1,255,"%.0f",a1);
  531.             PlayerTextDrawSetString(playerid,PartyTD[2],stringa1); PlayerTextDrawShow(playerid,PartyTD[2]);
  532.         }
  533.         if(PartyInfo[InParty[playerid]][pMember][2]!=-1)
  534.         {
  535.             PlayerTextDrawSetString(playerid,PartyTD[3],GetName(PartyInfo[InParty[playerid]][pMember][2]));
  536.             PlayerTextDrawShow(playerid,PartyTD[3]);
  537.            
  538.             GetPlayerHealth(PartyInfo[InParty[playerid]][pMember][2],h2);format(stringh2,255,"%.0f",h2);
  539.             PlayerTextDrawSetString(playerid,PartyTD[4],stringh2); PlayerTextDrawShow(playerid,PartyTD[4]);
  540.            
  541.             GetPlayerArmour(PartyInfo[InParty[playerid]][pMember][2],a2); format(stringa2,255,"%.0f",a2);
  542.             PlayerTextDrawSetString(playerid,PartyTD[5],stringa2); PlayerTextDrawShow(playerid,PartyTD[5]);
  543.         }
  544.         if(PartyInfo[InParty[playerid]][pMember][3]!=-1)
  545.         {
  546.             PlayerTextDrawSetString(playerid,PartyTD[6],GetName(PartyInfo[InParty[playerid]][pMember][3]));
  547.             PlayerTextDrawShow(playerid,PartyTD[6]);
  548.  
  549.             GetPlayerHealth(PartyInfo[InParty[playerid]][pMember][3],h3); format(stringh3,255,"%.0f",h3);
  550.             PlayerTextDrawSetString(playerid,PartyTD[7],stringh3); PlayerTextDrawShow(playerid,PartyTD[7]);
  551.            
  552.             GetPlayerArmour(PartyInfo[InParty[playerid]][pMember][3],a3); format(stringa3,255,"%.0f",a3);
  553.             PlayerTextDrawSetString(playerid,PartyTD[8],stringa3); PlayerTextDrawShow(playerid,PartyTD[8]);
  554.         }
  555.         if(PartyInfo[InParty[playerid]][pMember][4]!=-1)
  556.         {
  557.             PlayerTextDrawSetString(playerid,PartyTD[9],GetName(PartyInfo[InParty[playerid]][pMember][4]));
  558.             PlayerTextDrawShow(playerid,PartyTD[9]);
  559.            
  560.             GetPlayerHealth(PartyInfo[InParty[playerid]][pMember][4],h4); format(stringh4,255,"%.0f",h4);
  561.             PlayerTextDrawSetString(playerid,PartyTD[10],stringh4); PlayerTextDrawShow(playerid,PartyTD[10]);
  562.            
  563.             GetPlayerArmour(PartyInfo[InParty[playerid]][pMember][4],a4); format(stringa4,255,"%.0f",a4);
  564.             PlayerTextDrawSetString(playerid,PartyTD[11],stringa4); PlayerTextDrawShow(playerid,PartyTD[11]);
  565.         }
  566.         if(PartyInfo[InParty[playerid]][pMember][5]!=-1)
  567.         {
  568.             PlayerTextDrawSetString(playerid,PartyTD[12],GetName(PartyInfo[InParty[playerid]][pMember][5]));
  569.             PlayerTextDrawShow(playerid,PartyTD[12]);
  570.            
  571.             GetPlayerHealth(PartyInfo[InParty[playerid]][pMember][5],h5); format(stringh5,255,"%.0f",h5);
  572.             PlayerTextDrawSetString(playerid,PartyTD[13],stringh5); PlayerTextDrawShow(playerid,PartyTD[13]);
  573.            
  574.             GetPlayerArmour(PartyInfo[InParty[playerid]][pMember][5],a5); format(stringa5,255,"%.0f",a5);
  575.             PlayerTextDrawSetString(playerid,PartyTD[14],stringa5); PlayerTextDrawShow(playerid,PartyTD[14]);
  576.         }
  577.     }
  578. }
  579.  
  580. stock HideParty(playerid) // Updates the party information, removes party members if they left the party.
  581. {
  582.     if(InParty[playerid]!=-1)
  583.     {
  584.         if(PartyInfo[InParty[playerid]][pMember][1]==-1)
  585.         {
  586.             PlayerTextDrawHide(playerid,PartyTD[0]);
  587.             PlayerTextDrawHide(playerid,PartyTD[1]);
  588.             PlayerTextDrawHide(playerid,PartyTD[2]);
  589.         }
  590.         if(PartyInfo[InParty[playerid]][pMember][2]==-1)
  591.         {
  592.             PlayerTextDrawHide(playerid,PartyTD[3]);
  593.             PlayerTextDrawHide(playerid,PartyTD[4]);
  594.             PlayerTextDrawHide(playerid,PartyTD[5]);
  595.         }
  596.         if(PartyInfo[InParty[playerid]][pMember][3]==-1)
  597.         {
  598.             PlayerTextDrawHide(playerid,PartyTD[6]);
  599.             PlayerTextDrawHide(playerid,PartyTD[7]);
  600.             PlayerTextDrawHide(playerid,PartyTD[8]);
  601.         }
  602.         if(PartyInfo[InParty[playerid]][pMember][4]==-1)
  603.         {
  604.             PlayerTextDrawHide(playerid,PartyTD[9]);
  605.             PlayerTextDrawHide(playerid,PartyTD[10]);
  606.             PlayerTextDrawHide(playerid,PartyTD[11]);
  607.         }
  608.         if(PartyInfo[InParty[playerid]][pMember][5]==-1)
  609.         {
  610.             PlayerTextDrawHide(playerid,PartyTD[12]);
  611.             PlayerTextDrawHide(playerid,PartyTD[13]);
  612.             PlayerTextDrawHide(playerid,PartyTD[14]);
  613.         }
  614.     }
  615.     else
  616.     {
  617.         PlayerTextDrawHide(playerid,PartyTD[0]);
  618.         PlayerTextDrawHide(playerid,PartyTD[1]);
  619.         PlayerTextDrawHide(playerid,PartyTD[2]);
  620.         PlayerTextDrawHide(playerid,PartyTD[3]);
  621.         PlayerTextDrawHide(playerid,PartyTD[4]);
  622.         PlayerTextDrawHide(playerid,PartyTD[5]);
  623.         PlayerTextDrawHide(playerid,PartyTD[6]);
  624.         PlayerTextDrawHide(playerid,PartyTD[7]);
  625.         PlayerTextDrawHide(playerid,PartyTD[8]);
  626.         PlayerTextDrawHide(playerid,PartyTD[9]);
  627.         PlayerTextDrawHide(playerid,PartyTD[10]);
  628.         PlayerTextDrawHide(playerid,PartyTD[11]);
  629.         PlayerTextDrawHide(playerid,PartyTD[12]);
  630.         PlayerTextDrawHide(playerid,PartyTD[13]);
  631.         PlayerTextDrawHide(playerid,PartyTD[14]);
  632.     }
  633. }
  634.  
  635.  
  636. stock GetName(playerid)
  637. {
  638.     new name[MAX_PLAYER_NAME];
  639.     GetPlayerName(playerid, name, sizeof(name));
  640.     return name;
  641. }
  642.  
  643. stock GetPartyID() // Calculates the newly created party's ID so it doesn't overwrite a previous one.
  644. {
  645.     new i=1;
  646.     while(i != MAX_PARTIES) {
  647.         if(PartyInfo[i][pID] == 0) {
  648.             return i;
  649.         }
  650.         i++;
  651.     }
  652.     return -1;
  653. }
  654.  
  655. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  656. {
  657.     if(newkeys == KEY_NO) // ,,N" Button, shows your teammates for a few seconds.
  658.     {
  659.         if(InParty[playerid]!=-1)
  660.         {
  661.             if(CheckLocation[playerid]==0) // This variable is created so you can't spam N.
  662.             {
  663.                 ShowMarkers(playerid);
  664.                 SetTimerEx("RemoveMarkers",10000,0,"i",playerid); // Shows your teammates for 10 seconds, it bugs out if you show them all the time.
  665.                 CheckLocation[playerid]=1;
  666.             }
  667.         }
  668.     }
  669. }
  670.  
  671.  
  672. public OnPlayerUpdate(playerid)
  673. {
  674.     UpdateParty(playerid); // Updates party information frequently.
  675.     return 1;
  676. }
  677.  
  678. stock LoadPartyTextDraws(playerid)
  679. {
  680.  
  681. /*
  682.     COLOR RED
  683. */
  684.  
  685. PartyTD[0] = CreatePlayerTextDraw(playerid,566.000000, 298.000000, "Charlie_Test_Cortez");
  686. PlayerTextDrawBackgroundColor(playerid,PartyTD[0], 255);
  687. PlayerTextDrawFont(playerid,PartyTD[0], 1);
  688. PlayerTextDrawLetterSize(playerid,PartyTD[0], 0.210000, 1.100000);
  689. PlayerTextDrawColor(playerid,PartyTD[0], -16119041);
  690. PlayerTextDrawSetOutline(playerid,PartyTD[0], 0);
  691. PlayerTextDrawSetProportional(playerid,PartyTD[0], 1);
  692. PlayerTextDrawSetShadow(playerid,PartyTD[0], 1);
  693. PlayerTextDrawUseBox(playerid,PartyTD[0], 1);
  694. PlayerTextDrawBoxColor(playerid,PartyTD[0], 255);
  695. PlayerTextDrawTextSize(playerid,PartyTD[0], 632.000000, 0.000000);
  696. PlayerTextDrawSetSelectable(playerid,PartyTD[0], 0);
  697.  
  698. PartyTD[1] = CreatePlayerTextDraw(playerid,590.000000, 311.000000, "100");
  699. PlayerTextDrawAlignment(playerid,PartyTD[1], 2);
  700. PlayerTextDrawBackgroundColor(playerid,PartyTD[1], 255);
  701. PlayerTextDrawFont(playerid,PartyTD[1], 3);
  702. PlayerTextDrawLetterSize(playerid,PartyTD[1], 0.210000, 1.100000);
  703. PlayerTextDrawColor(playerid,PartyTD[1], -922746625);
  704. PlayerTextDrawSetOutline(playerid,PartyTD[1], 0);
  705. PlayerTextDrawSetProportional(playerid,PartyTD[1], 1);
  706. PlayerTextDrawSetShadow(playerid,PartyTD[1], 1);
  707. PlayerTextDrawUseBox(playerid,PartyTD[1], 1);
  708. PlayerTextDrawBoxColor(playerid,PartyTD[1], 909522582);
  709. PlayerTextDrawTextSize(playerid,PartyTD[1], 684.000000, 15.000000);
  710. PlayerTextDrawSetSelectable(playerid,PartyTD[1], 0);
  711.  
  712. PartyTD[2] = CreatePlayerTextDraw(playerid,608.000000, 311.000000, "100");
  713. PlayerTextDrawAlignment(playerid,PartyTD[2], 2);
  714. PlayerTextDrawBackgroundColor(playerid,PartyTD[2], 255);
  715. PlayerTextDrawFont(playerid,PartyTD[2], 3);
  716. PlayerTextDrawLetterSize(playerid,PartyTD[2], 0.210000, 1.100000);
  717. PlayerTextDrawColor(playerid,PartyTD[2], 1116732671);
  718. PlayerTextDrawSetOutline(playerid,PartyTD[2], 0);
  719. PlayerTextDrawSetProportional(playerid,PartyTD[2], 1);
  720. PlayerTextDrawSetShadow(playerid,PartyTD[2], 1);
  721. PlayerTextDrawUseBox(playerid,PartyTD[2], 1);
  722. PlayerTextDrawBoxColor(playerid,PartyTD[2], 909522582);
  723. PlayerTextDrawTextSize(playerid,PartyTD[2], 684.000000, 15.000000);
  724. PlayerTextDrawSetSelectable(playerid,PartyTD[2], 0);
  725.  
  726. /*
  727.     COLOR GREEN
  728. */
  729.  
  730. PartyTD[3] = CreatePlayerTextDraw(playerid,566.000000, 328.000000, "Charlie_Test_Cortez");
  731. PlayerTextDrawBackgroundColor(playerid,PartyTD[3], 255);
  732. PlayerTextDrawFont(playerid,PartyTD[3], 1);
  733. PlayerTextDrawLetterSize(playerid,PartyTD[3], 0.210000, 1.100000);
  734. PlayerTextDrawColor(playerid,PartyTD[3], 33500415);
  735. PlayerTextDrawSetOutline(playerid,PartyTD[3], 0);
  736. PlayerTextDrawSetProportional(playerid,PartyTD[3], 1);
  737. PlayerTextDrawSetShadow(playerid,PartyTD[3], 1);
  738. PlayerTextDrawUseBox(playerid,PartyTD[3], 1);
  739. PlayerTextDrawBoxColor(playerid,PartyTD[3], 255);
  740. PlayerTextDrawTextSize(playerid,PartyTD[3], 632.000000, 0.000000);
  741. PlayerTextDrawSetSelectable(playerid,PartyTD[3], 0);
  742.  
  743. PartyTD[4] = CreatePlayerTextDraw(playerid,590.000000, 341.000000, "100");
  744. PlayerTextDrawAlignment(playerid,PartyTD[4], 2);
  745. PlayerTextDrawBackgroundColor(playerid,PartyTD[4], 255);
  746. PlayerTextDrawFont(playerid,PartyTD[4], 3);
  747. PlayerTextDrawLetterSize(playerid,PartyTD[4], 0.210000, 1.100000);
  748. PlayerTextDrawColor(playerid,PartyTD[4], -922746625);
  749. PlayerTextDrawSetOutline(playerid,PartyTD[4], 0);
  750. PlayerTextDrawSetProportional(playerid,PartyTD[4], 1);
  751. PlayerTextDrawSetShadow(playerid,PartyTD[4], 1);
  752. PlayerTextDrawUseBox(playerid,PartyTD[4], 1);
  753. PlayerTextDrawBoxColor(playerid,PartyTD[4], 909522582);
  754. PlayerTextDrawTextSize(playerid,PartyTD[4], 684.000000, 15.000000);
  755. PlayerTextDrawSetSelectable(playerid,PartyTD[4], 0);
  756.  
  757. PartyTD[5] = CreatePlayerTextDraw(playerid,608.000000, 341.000000, "100");
  758. PlayerTextDrawAlignment(playerid,PartyTD[5], 2);
  759. PlayerTextDrawBackgroundColor(playerid,PartyTD[5], 255);
  760. PlayerTextDrawFont(playerid,PartyTD[5], 3);
  761. PlayerTextDrawLetterSize(playerid,PartyTD[5], 0.210000, 1.100000);
  762. PlayerTextDrawColor(playerid,PartyTD[5], 1116732671);
  763. PlayerTextDrawSetOutline(playerid,PartyTD[5], 0);
  764. PlayerTextDrawSetProportional(playerid,PartyTD[5], 1);
  765. PlayerTextDrawSetShadow(playerid,PartyTD[5], 1);
  766. PlayerTextDrawUseBox(playerid,PartyTD[5], 1);
  767. PlayerTextDrawBoxColor(playerid,PartyTD[5], 909522582);
  768. PlayerTextDrawTextSize(playerid,PartyTD[5], 684.000000, 15.000000);
  769. PlayerTextDrawSetSelectable(playerid,PartyTD[5], 0);
  770.  
  771. /*
  772.     COLOR BLUE
  773. */
  774.  
  775. PartyTD[6] = CreatePlayerTextDraw(playerid,566.000000, 358.000000, "Charlie_Test_Cortez");
  776. PlayerTextDrawBackgroundColor(playerid,PartyTD[6], 255);
  777. PlayerTextDrawFont(playerid,PartyTD[6], 1);
  778. PlayerTextDrawLetterSize(playerid,PartyTD[6], 0.210000, 1.100000);
  779. PlayerTextDrawColor(playerid,PartyTD[6], 867106815);
  780. PlayerTextDrawSetOutline(playerid,PartyTD[6], 0);
  781. PlayerTextDrawSetProportional(playerid,PartyTD[6], 1);
  782. PlayerTextDrawSetShadow(playerid,PartyTD[6], 1);
  783. PlayerTextDrawUseBox(playerid,PartyTD[6], 1);
  784. PlayerTextDrawBoxColor(playerid,PartyTD[6], 255);
  785. PlayerTextDrawTextSize(playerid,PartyTD[6], 632.000000, 0.000000);
  786. PlayerTextDrawSetSelectable(playerid,PartyTD[6], 0);
  787.  
  788. PartyTD[7] = CreatePlayerTextDraw(playerid,590.000000, 371.000000, "100");
  789. PlayerTextDrawAlignment(playerid,PartyTD[7], 2);
  790. PlayerTextDrawBackgroundColor(playerid,PartyTD[7], 255);
  791. PlayerTextDrawFont(playerid,PartyTD[7], 3);
  792. PlayerTextDrawLetterSize(playerid,PartyTD[7], 0.210000, 1.100000);
  793. PlayerTextDrawColor(playerid,PartyTD[7], -922746625);
  794. PlayerTextDrawSetOutline(playerid,PartyTD[7], 0);
  795. PlayerTextDrawSetProportional(playerid,PartyTD[7], 1);
  796. PlayerTextDrawSetShadow(playerid,PartyTD[7], 1);
  797. PlayerTextDrawUseBox(playerid,PartyTD[7], 1);
  798. PlayerTextDrawBoxColor(playerid,PartyTD[7], 909522582);
  799. PlayerTextDrawTextSize(playerid,PartyTD[7], 684.000000, 15.000000);
  800. PlayerTextDrawSetSelectable(playerid,PartyTD[7], 0);
  801.  
  802. PartyTD[8] = CreatePlayerTextDraw(playerid,608.000000, 371.000000, "100");
  803. PlayerTextDrawAlignment(playerid,PartyTD[8], 2);
  804. PlayerTextDrawBackgroundColor(playerid,PartyTD[8], 255);
  805. PlayerTextDrawFont(playerid,PartyTD[8], 3);
  806. PlayerTextDrawLetterSize(playerid,PartyTD[8], 0.210000, 1.100000);
  807. PlayerTextDrawColor(playerid,PartyTD[8], 1116732671);
  808. PlayerTextDrawSetOutline(playerid,PartyTD[8], 0);
  809. PlayerTextDrawSetProportional(playerid,PartyTD[8], 1);
  810. PlayerTextDrawSetShadow(playerid,PartyTD[8], 1);
  811. PlayerTextDrawUseBox(playerid,PartyTD[8], 1);
  812. PlayerTextDrawBoxColor(playerid,PartyTD[8], 909522582);
  813. PlayerTextDrawTextSize(playerid,PartyTD[8], 684.000000, 15.000000);
  814. PlayerTextDrawSetSelectable(playerid,PartyTD[8], 0);
  815.  
  816. /*
  817.     COLOR YELLOW
  818. */
  819.  
  820. PartyTD[9] = CreatePlayerTextDraw(playerid,566.000000, 388.000000, "Charlie_Test_Cortez");
  821. PlayerTextDrawBackgroundColor(playerid,PartyTD[9], 255);
  822. PlayerTextDrawFont(playerid,PartyTD[9], 1);
  823. PlayerTextDrawLetterSize(playerid,PartyTD[9], 0.210000, 1.100000);
  824. PlayerTextDrawColor(playerid,PartyTD[9], -151060225);
  825. PlayerTextDrawSetOutline(playerid,PartyTD[9], 0);
  826. PlayerTextDrawSetProportional(playerid,PartyTD[9], 1);
  827. PlayerTextDrawSetShadow(playerid,PartyTD[9], 1);
  828. PlayerTextDrawUseBox(playerid,PartyTD[9], 1);
  829. PlayerTextDrawBoxColor(playerid,PartyTD[9], 255);
  830. PlayerTextDrawTextSize(playerid,PartyTD[9], 632.000000, 0.000000);
  831. PlayerTextDrawSetSelectable(playerid,PartyTD[9], 0);
  832.  
  833. PartyTD[10] = CreatePlayerTextDraw(playerid,590.000000, 401.000000, "100");
  834. PlayerTextDrawAlignment(playerid,PartyTD[10], 2);
  835. PlayerTextDrawBackgroundColor(playerid,PartyTD[10], 255);
  836. PlayerTextDrawFont(playerid,PartyTD[10], 3);
  837. PlayerTextDrawLetterSize(playerid,PartyTD[10], 0.210000, 1.100000);
  838. PlayerTextDrawColor(playerid,PartyTD[10], -922746625);
  839. PlayerTextDrawSetOutline(playerid,PartyTD[10], 0);
  840. PlayerTextDrawSetProportional(playerid,PartyTD[10], 1);
  841. PlayerTextDrawSetShadow(playerid,PartyTD[10], 1);
  842. PlayerTextDrawUseBox(playerid,PartyTD[10], 1);
  843. PlayerTextDrawBoxColor(playerid,PartyTD[10], 909522582);
  844. PlayerTextDrawTextSize(playerid,PartyTD[10], 684.000000, 15.000000);
  845. PlayerTextDrawSetSelectable(playerid,PartyTD[10], 0);
  846.  
  847. PartyTD[11] = CreatePlayerTextDraw(playerid,608.000000, 401.000000, "100");
  848. PlayerTextDrawAlignment(playerid,PartyTD[11], 2);
  849. PlayerTextDrawBackgroundColor(playerid,PartyTD[11], 255);
  850. PlayerTextDrawFont(playerid,PartyTD[11], 3);
  851. PlayerTextDrawLetterSize(playerid,PartyTD[11], 0.210000, 1.100000);
  852. PlayerTextDrawColor(playerid,PartyTD[11], 1116732671);
  853. PlayerTextDrawSetOutline(playerid,PartyTD[11], 0);
  854. PlayerTextDrawSetProportional(playerid,PartyTD[11], 1);
  855. PlayerTextDrawSetShadow(playerid,PartyTD[11], 1);
  856. PlayerTextDrawUseBox(playerid,PartyTD[11], 1);
  857. PlayerTextDrawBoxColor(playerid,PartyTD[11], 909522582);
  858. PlayerTextDrawTextSize(playerid,PartyTD[11], 684.000000, 15.000000);
  859. PlayerTextDrawSetSelectable(playerid,PartyTD[11], 0);
  860.  
  861. /*
  862.     COLOR PURPLE
  863. */
  864.  
  865. PartyTD[12] = CreatePlayerTextDraw(playerid,566.000000, 418.000000, "Charlie_Test_Cortez");
  866. PlayerTextDrawBackgroundColor(playerid,PartyTD[12], 255);
  867. PlayerTextDrawFont(playerid,PartyTD[12], 1);
  868. PlayerTextDrawLetterSize(playerid,PartyTD[12], 0.210000, 1.100000);
  869. PlayerTextDrawColor(playerid,PartyTD[12], -16711681);
  870. PlayerTextDrawSetOutline(playerid,PartyTD[12], 0);
  871. PlayerTextDrawSetProportional(playerid,PartyTD[12], 1);
  872. PlayerTextDrawSetShadow(playerid,PartyTD[12], 1);
  873. PlayerTextDrawUseBox(playerid,PartyTD[12], 1);
  874. PlayerTextDrawBoxColor(playerid,PartyTD[12], 255);
  875. PlayerTextDrawTextSize(playerid,PartyTD[12], 632.000000, 0.000000);
  876. PlayerTextDrawSetSelectable(playerid,PartyTD[12], 0);
  877.  
  878. PartyTD[13] = CreatePlayerTextDraw(playerid,590.000000, 431.000000, "100");
  879. PlayerTextDrawAlignment(playerid,PartyTD[13], 2);
  880. PlayerTextDrawBackgroundColor(playerid,PartyTD[13], 255);
  881. PlayerTextDrawFont(playerid,PartyTD[13], 3);
  882. PlayerTextDrawLetterSize(playerid,PartyTD[13], 0.210000, 1.100000);
  883. PlayerTextDrawColor(playerid,PartyTD[13], -922746625);
  884. PlayerTextDrawSetOutline(playerid,PartyTD[13], 0);
  885. PlayerTextDrawSetProportional(playerid,PartyTD[13], 1);
  886. PlayerTextDrawSetShadow(playerid,PartyTD[13], 1);
  887. PlayerTextDrawUseBox(playerid,PartyTD[13], 1);
  888. PlayerTextDrawBoxColor(playerid,PartyTD[13], 909522582);
  889. PlayerTextDrawTextSize(playerid,PartyTD[13], 684.000000, 15.000000);
  890. PlayerTextDrawSetSelectable(playerid,PartyTD[13], 0);
  891.  
  892. PartyTD[14] = CreatePlayerTextDraw(playerid,608.000000, 431.000000, "100");
  893. PlayerTextDrawAlignment(playerid,PartyTD[14], 2);
  894. PlayerTextDrawBackgroundColor(playerid,PartyTD[14], 255);
  895. PlayerTextDrawFont(playerid,PartyTD[14], 3);
  896. PlayerTextDrawLetterSize(playerid,PartyTD[14], 0.210000, 1.100000);
  897. PlayerTextDrawColor(playerid,PartyTD[14], 1116732671);
  898. PlayerTextDrawSetOutline(playerid,PartyTD[14], 0);
  899. PlayerTextDrawSetProportional(playerid,PartyTD[14], 1);
  900. PlayerTextDrawSetShadow(playerid,PartyTD[14], 1);
  901. PlayerTextDrawUseBox(playerid,PartyTD[14], 1);
  902. PlayerTextDrawBoxColor(playerid,PartyTD[14], 909522582);
  903. PlayerTextDrawTextSize(playerid,PartyTD[14], 684.000000, 15.000000);
  904. PlayerTextDrawSetSelectable(playerid,PartyTD[14], 0);
  905.  
  906. }
  907.  
  908. // Created by Gergo4961/DRCharlie on SA-MP Forums
Advertisement
Add Comment
Please, Sign In to add comment