CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 3
Call of Duty: Black Ops 3 Mods and Scripts
Call of Duty: Black Ops 3 Scripts
Call of Duty: Black Ops 3 Scripts Question
Call of Duty: Black Ops 3 Answered Questions
How to update Players Menu?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Cxwh" data-source="post: 14494" data-attributes="member: 22664"><p>This is how I would do it (there may be easier ways but it's simplest way for me to think of)</p><p>I tried my best to help so please don't destroy me lmao</p><p>[CODE]function initMenuOpts()</p><p>{</p><p> self addMenu("main", self.menu["name"], undefined);</p><p> self addOpt("main", "All Players", &subMenu, "account");</p><p> self addOpt("main", "All Accounts", &subMenu, "allacc");</p><p> self addOpt("main", "More is coming soon.", &test);</p><p></p><p> self addMenu("account", "All Players", "main");</p><p> self updatePlayers();</p><p> </p><p> self addMenu("allacc", "All Accounts", "main");</p><p> self addOpt("allacc", "Set Verified", &allMenu);</p><p>}</p><p></p><p>function updatePlayers();</p><p>{</p><p> self endon("disconnect");</p><p> self endon(WHEN PLAYER GETS UNVERIFIED); //you should add a notification when a player gets unverified</p><p> for(;;)</p><p> {</p><p> level waittill(WAITTILL SOMEONE JOINS/TIMES OUT); //i think you can do level util::waittill_any(event, event2, ...) too but I'm not sure</p><p> //level waittill is here to "rebuild" the menu when players disconnect/connect</p><p></p><p> players = GetPlayers();</p><p> for(i = 0; i < players.size; i++)</p><p> {</p><p> player = players[i];</p><p> self addOption("account", "[" + player.MyAccess + "^7] " + player.name, &subMenu, player.name);</p><p></p><p> self addMenu(player.name, "[" + player.MyAccess + "^7] " + player.name, "account");</p><p> self addOption(player.name, "Verify Player", &verify, player);</p><p> self addOption(player.name, "Unverify Player", &unverify, player);</p><p> }</p><p> }</p><p>}[/CODE]</p></blockquote><p></p>
[QUOTE="Cxwh, post: 14494, member: 22664"] This is how I would do it (there may be easier ways but it's simplest way for me to think of) I tried my best to help so please don't destroy me lmao [CODE]function initMenuOpts() { self addMenu("main", self.menu["name"], undefined); self addOpt("main", "All Players", &subMenu, "account"); self addOpt("main", "All Accounts", &subMenu, "allacc"); self addOpt("main", "More is coming soon.", &test); self addMenu("account", "All Players", "main"); self updatePlayers(); self addMenu("allacc", "All Accounts", "main"); self addOpt("allacc", "Set Verified", &allMenu); } function updatePlayers(); { self endon("disconnect"); self endon(WHEN PLAYER GETS UNVERIFIED); //you should add a notification when a player gets unverified for(;;) { level waittill(WAITTILL SOMEONE JOINS/TIMES OUT); //i think you can do level util::waittill_any(event, event2, ...) too but I'm not sure //level waittill is here to "rebuild" the menu when players disconnect/connect players = GetPlayers(); for(i = 0; i < players.size; i++) { player = players[i]; self addOption("account", "[" + player.MyAccess + "^7] " + player.name, &subMenu, player.name); self addMenu(player.name, "[" + player.MyAccess + "^7] " + player.name, "account"); self addOption(player.name, "Verify Player", &verify, player); self addOption(player.name, "Unverify Player", &unverify, player); } } }[/CODE] [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 3
Call of Duty: Black Ops 3 Mods and Scripts
Call of Duty: Black Ops 3 Scripts
Call of Duty: Black Ops 3 Scripts Question
Call of Duty: Black Ops 3 Answered Questions
How to update Players Menu?
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top