Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- global.roleManager = {
- //Owner Steam64ID's
- //Protato, Jeff, Charley Tank
- OsteamID: [76561198023427857,76561197999928670,76561198047728393],
- //Admin Steam64ID's
- //PonisTV
- AsteamID: [76561198071605528],
- //Moderator Steam64ID's
- //No one yet
- MsteamID: [],
- //VIP Steam64ID's
- //No one yet
- VsteamID: [],
- };
- jcmp.events.Add('PlayerCreated', player => {
- //Assigns the player the correct 'Title' & 'Rank'
- if(roleManager.OsteamID.includes(player.client.steamId)){
- player.title = 'OWNER';
- player.rank = 4;
- }else if(roleManager.AsteamID.includes(player.client.steamId)){
- player.title = 'ADMIN';
- player.rank = 3;
- }else if(roleManager.MsteamID.includes(player.client.steamId)){
- player.title = 'MOD';
- player.rank = 2;
- }else if(roleManager.VsteamID.includes(player.client.steamId)){
- player.title = 'VIP';
- player.rank = 1;
- };
- });
- jcmp.events.Add('PlayerCreated', player => {
- //Initialise 'DLC'
- let DLC = 0;
- //Combat Buggy
- if(player.client.DoesOwnDLC(388290)){
- DLC = DLC + 10
- };
- //Minigun Racing Boat
- if(player.client.DoesOwnDLC(388291)){
- DLC = DLC + 30
- };
- //Rocket Launcher Sports Car
- if(player.client.DoesOwnDLC(388292)){
- DLC = DLC + 50
- };
- //Final Arguement Sniper Rifle
- if(player.client.DoesOwnDLC(488293)){
- DLC = DLC + 1
- };
- //Capstone Bloodhound RPG
- if(player.client.DoesOwnDLC(388294)){
- DLC = DLC + 3
- };
- /*
- If the player owns all 5 DLC, they will have the
- last two digits of 94.
- If the player owns none, 00.
- If the player owns all Weaponised vehicles only, 90.
- If the player owns both weapons but no vehicles, 04.
- Each combination of digits results in a unique combination.
- */
- return player.DLC;
- });
- COMMAND IN OTHER FILE:
- .add(new Command('rank')
- .description('Checks the players current rank')
- .handler(player => {
- freeroam.chat.send(player, `Current Rank: ${player.rank}`, freeroam.config.colours.command_success);
- }))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement