Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. 'use strict';
  2.  
  3. global.roleManager = {
  4. //Owner Steam64ID's
  5. //Protato, Jeff, Charley Tank
  6. OsteamID: [76561198023427857,76561197999928670,76561198047728393],
  7. //Admin Steam64ID's
  8. //PonisTV
  9. AsteamID: [76561198071605528],
  10. //Moderator Steam64ID's
  11. //No one yet
  12. MsteamID: [],
  13. //VIP Steam64ID's
  14. //No one yet
  15. VsteamID: [],
  16. };
  17.  
  18. jcmp.events.Add('PlayerCreated', player => {
  19. //Assigns the player the correct 'Title' & 'Rank'
  20. if(roleManager.OsteamID.includes(player.client.steamId)){
  21. player.title = 'OWNER';
  22. player.rank = 4;
  23. }else if(roleManager.AsteamID.includes(player.client.steamId)){
  24. player.title = 'ADMIN';
  25. player.rank = 3;
  26. }else if(roleManager.MsteamID.includes(player.client.steamId)){
  27. player.title = 'MOD';
  28. player.rank = 2;
  29. }else if(roleManager.VsteamID.includes(player.client.steamId)){
  30. player.title = 'VIP';
  31. player.rank = 1;
  32. };
  33. });
  34.  
  35. jcmp.events.Add('PlayerCreated', player => {
  36. //Initialise 'DLC'
  37. let DLC = 0;
  38. //Combat Buggy
  39. if(player.client.DoesOwnDLC(388290)){
  40. DLC = DLC + 10
  41. };
  42. //Minigun Racing Boat
  43. if(player.client.DoesOwnDLC(388291)){
  44. DLC = DLC + 30
  45. };
  46. //Rocket Launcher Sports Car
  47. if(player.client.DoesOwnDLC(388292)){
  48. DLC = DLC + 50
  49. };
  50. //Final Arguement Sniper Rifle
  51. if(player.client.DoesOwnDLC(488293)){
  52. DLC = DLC + 1
  53. };
  54. //Capstone Bloodhound RPG
  55. if(player.client.DoesOwnDLC(388294)){
  56. DLC = DLC + 3
  57. };
  58. /*
  59. If the player owns all 5 DLC, they will have the
  60. last two digits of 94.
  61. If the player owns none, 00.
  62. If the player owns all Weaponised vehicles only, 90.
  63. If the player owns both weapons but no vehicles, 04.
  64.  
  65. Each combination of digits results in a unique combination.
  66. */
  67. return player.DLC;
  68. });
  69.  
  70.  
  71.  
  72. COMMAND IN OTHER FILE:
  73.  
  74. .add(new Command('rank')
  75. .description('Checks the players current rank')
  76. .handler(player => {
  77. freeroam.chat.send(player, `Current Rank: ${player.rank}`, freeroam.config.colours.command_success);
  78. }))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement