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 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
Black Ops 2 GSC Managed Code List
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="The Dark Side" data-source="post: 23765" data-attributes="member: 49"><p>Might as well post a couple of my own. Figure this might help straighten some menus out a little.</p><p></p><p>All Players Function, could be improved. But i've seen so many menus with separate all player functions. This'll help stop that.</p><p>function is where you put the name of the function you wanna call on all players.</p><p>D is the text param. Put whatever you want to come up on the screen there in place of D. (It WILL pop up for everyone)</p><p>A, B, and C are all just extras. For codes that use more args.</p><p>[SPOILER="Small, but helpful."]</p><p>[CODE]</p><p>AllPlayerFunction(function, D, A, B, C)</p><p>{</p><p> foreach(player in level.players)</p><p> {</p><p> player [[function]](A,B,C);</p><p> player iPrintln(D);</p><p> }</p><p>}</p><p>[/CODE]</p><p><img src="https://image.prntscr.com/image/nEeMaTGGSDu2Rs2bRwy9Og.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>[/SPOILER]</p><p></p><p>Same goes for this one. Hopefully you know how to call these but just in case you don't ill add a picture. Dont use multiple player functions that aren't needed!!!</p><p>[SPOILER="Small, but still helpful. "]</p><p>[CODE]PlayerFunction(player, function, D, A, B, C)</p><p>{</p><p> player [[function]](A,B,C);</p><p> self iPrintlnbold("Called " + D + " on" + player.name);</p><p>}[/CODE]</p><p><img src="https://image.prntscr.com/image/GDg7AnOiSPajpjEuu3V8FQ.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>[/SPOILER]</p></blockquote><p></p>
[QUOTE="The Dark Side, post: 23765, member: 49"] Might as well post a couple of my own. Figure this might help straighten some menus out a little. All Players Function, could be improved. But i've seen so many menus with separate all player functions. This'll help stop that. function is where you put the name of the function you wanna call on all players. D is the text param. Put whatever you want to come up on the screen there in place of D. (It WILL pop up for everyone) A, B, and C are all just extras. For codes that use more args. [SPOILER="Small, but helpful."] [CODE] AllPlayerFunction(function, D, A, B, C) { foreach(player in level.players) { player [[function]](A,B,C); player iPrintln(D); } } [/CODE] [IMG]https://image.prntscr.com/image/nEeMaTGGSDu2Rs2bRwy9Og.png[/IMG] [/SPOILER] Same goes for this one. Hopefully you know how to call these but just in case you don't ill add a picture. Dont use multiple player functions that aren't needed!!! [SPOILER="Small, but still helpful. "] [CODE]PlayerFunction(player, function, D, A, B, C) { player [[function]](A,B,C); self iPrintlnbold("Called " + D + " on" + player.name); }[/CODE] [IMG]https://image.prntscr.com/image/GDg7AnOiSPajpjEuu3V8FQ.png[/IMG] [/SPOILER] [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
Black Ops 2 GSC Managed Code List
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