Post: [Code] Laptop Opening Menu BETTER
02-16-2011, 03:37 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); This Code allows you to Keep the same weapon when you opened laptop to when your close it.

Under exitMenu() add this:

Code:

self takeWeapon("killstreak_ac130_mp");
self giveweapon(self.OldWeapon);
self switchToWeapon(self.OldWeapon);

Under _openMenu() add this:

Code:

self.OldWeapon=self getCurrentWeapon();
self takeWeapon(self.OldWeapon);
self giveweapon("killstreak_ac130_mp");
self switchToWeapon("killstreak_ac130_mp");


So If you have Sub Menu's You need to find exitSubMenu() so underneath that add in:

Code:

self takeWeapon("killstreak_ac130_mp");
self giveweapon(self.OldWeapon);
self switchToWeapon(self.OldWeapon);

Forgot to add Thanks EliteMossy For the Code
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users say thank you to wfghackz for this useful post:

BvB-09r-_-N!c0, The InvadeR, ViiZiiKz
02-16-2011, 10:19 PM #20
TheWraith--
Gym leader
Originally posted by EliteMossy View Post
How would that work? It takes the laptop, and gives the old weapon..


i believe it is yours mossy Happy
02-16-2011, 10:21 PM #21
Originally posted by EliteMossy View Post
How would that work? It takes the laptop, and gives the old weapon..


Mossy, I dont see how they dont understand that???

pleasee Inform Me of the Miss Fortune?

LOL
02-16-2011, 10:24 PM #22
Skyl1n3
DO SOMETHING THEN!
Originally posted by wfghackz View Post
I have this in my patch right now, It Works Fine, You have you say Barret.50cal, open menu, Close menu you got your barret.50cal, if you dont believe me you even try it. And let me know how you go?


I'm not sure you understand /facepalm... I mean you open the menu, you then open the SUB MENU then exit, wouldn't it just give a laptop?

Originally posted by EliteMossy View Post
How would that work? It takes the laptop, and gives the old weapon..


I've tried this (or a very simular code) in my patch and when I opened the menu and went into sub menu, then exit the sub menu, it would give me the laptop again :whistle:
02-16-2011, 10:26 PM #23
Originally posted by Skyl1n3 View Post
I'm not sure you understand /facepalm... I mean you open the menu, you then open the SUB MENU then exit, wouldn't it just give a laptop?



I've tried this (or a very simular code) in my patch and when I opened the menu and went into sub menu, then exit the sub menu, it would give me the laptop again :whistle:


Well mate your code must have been Written up wrong then

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo