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
Call of Duty: Black Ops 2 Scripts Questions
Call of Duty: Black Ops 2 Answered Questions
Clients 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="TheHiddenHour" data-source="post: 9146" data-attributes="member: 7602"><p>Give weapons - You're using weapon_give the wrong way. You need to define all of the arguments. I don't mess with zombies but here's an example</p><p>[code]</p><p>doGivePlayerWeapon(weapon)</p><p>{</p><p> player=level.players[self.Menu.System["ClientIndex"]];</p><p> if(!player isHost())</p><p> {</p><p> self iprintln("Given Weapons: ^1" + player.name);</p><p> //weapon_give( weapon, is_upgrade, magic_box, nosound )</p><p> player weapon_give(weapon, false, false, true);</p><p> }</p><p> else</p><p> self iprintln("You can't give weapons to host");</p><p>}</p><p>[/code]</p><p>Give score - You need to define the player and your scripts were named wrong. You're calling give100k() but you have it named as give100000(). Use this function instead of those</p><p>[code]</p><p>givePlayerScore(score)</p><p>{</p><p> //call in your menu like ::givePlayerScore, 1000); for 1000 points. Just change the 1000 to whatever number you want</p><p> player=level.players[self.Menu.System["ClientIndex"]];</p><p> player.score += score;</p><p> self iprintln(score + " given to " + player.name)</p><p>}</p><p>[/code]</p><p>Give perks - Idk anymore just use this one instead lol</p><p>[code]</p><p>givePlayerPerk(perkDisplay, perk)</p><p>{</p><p> //call like ::givePlayerPerk, "Jugg", "specialty_armorvest"); The first part is the name that is printed and the second part is the actual perk code</p><p> player = level.players[self.Menu.System["ClientIndex"]];</p><p> if(!player isHost())</p><p> {</p><p> self iPrintln("Perks Given " + player.name);</p><p> self iPrintln("He has been given " + perkDisplay + "!");</p><p> player setPerk(perk);</p><p> player iPrintln(perkDisplay + " ^2Set");</p><p> }</p><p> else</p><p> self iprintln("Cannot give to host?");</p><p>}</p><p>[/code]</p></blockquote><p></p>
[QUOTE="TheHiddenHour, post: 9146, member: 7602"] Give weapons - You're using weapon_give the wrong way. You need to define all of the arguments. I don't mess with zombies but here's an example [code] doGivePlayerWeapon(weapon) { player=level.players[self.Menu.System["ClientIndex"]]; if(!player isHost()) { self iprintln("Given Weapons: ^1" + player.name); //weapon_give( weapon, is_upgrade, magic_box, nosound ) player weapon_give(weapon, false, false, true); } else self iprintln("You can't give weapons to host"); } [/code] Give score - You need to define the player and your scripts were named wrong. You're calling give100k() but you have it named as give100000(). Use this function instead of those [code] givePlayerScore(score) { //call in your menu like ::givePlayerScore, 1000); for 1000 points. Just change the 1000 to whatever number you want player=level.players[self.Menu.System["ClientIndex"]]; player.score += score; self iprintln(score + " given to " + player.name) } [/code] Give perks - Idk anymore just use this one instead lol [code] givePlayerPerk(perkDisplay, perk) { //call like ::givePlayerPerk, "Jugg", "specialty_armorvest"); The first part is the name that is printed and the second part is the actual perk code player = level.players[self.Menu.System["ClientIndex"]]; if(!player isHost()) { self iPrintln("Perks Given " + player.name); self iPrintln("He has been given " + perkDisplay + "!"); player setPerk(perk); player iPrintln(perkDisplay + " ^2Set"); } else self iprintln("Cannot give to host?"); } [/code] [/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
Call of Duty: Black Ops 2 Scripts Questions
Call of Duty: Black Ops 2 Answered Questions
Clients 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