Page 1 of 1
					
				Help please *MODDING DEAGLE FOR ADMIN ONLY*
				Posted: April 3rd, 2011, 1:07 am
				by JORDYY
				Hew im NOT using the CJ mod my team and I have made a sniper lobby but we want to disable the desert eagle for everyone but make it so admins can have it I know its in the CJ mod but i need it in a different mod! 

I hope somebody can help,
Thanks in advance.
JORDYY
 
			 
			
					
				Re: Help please *MODDING DEAGLE FOR ADMIN ONLY*
				Posted: April 3rd, 2011, 9:07 am
				by Drofder2004
				1. GetGUIDs of all team
2. Save GUID in a DVAR
3. Createa function to parse the DVAR and create an array of GUIDs
4. When a player connects, check their GUID and compare against array
5. Give gun based on true/false.
Thats the concept for you, but I am not writing the full code.
			 
			
					
				Re: Help please *MODDING DEAGLE FOR ADMIN ONLY*
				Posted: April 3rd, 2011, 10:37 am
				by Moustache
				Isn't it easier just to disable the deagle and only give it to admins?
When a player connects you should check if his guid is in array of the dvar admin_guids. Then set self.admin = true; And place something in the class.gsc if self.admin then give deagle.
			 
			
					
				Re: Help please *MODDING DEAGLE FOR ADMIN ONLY*
				Posted: April 3rd, 2011, 11:51 am
				by Drofder2004
				Drofder2004 wrote:1. GetGUIDs of all team
2. Save GUID in a DVAR
3. Createa function to parse the DVAR and create an array of GUIDs
Moustache wrote:When a player connects you should check if his guid is in array of the dvar admin_guids.
Drofder2004 wrote:4. When a player connects, check their GUID and compare against array
5. Give gun based on true/false.
Moustache wrote:Then set self.admin = true; And place something in the class.gsc if self.admin then give deagle.
 
			 
			
					
				Re: Help please *MODDING DEAGLE FOR ADMIN ONLY*
				Posted: April 3rd, 2011, 12:00 pm
				by Moustache
				/Sunday-morning-fail
I misunderstood line 1 

 
			 
			
					
				Re: Help please *MODDING DEAGLE FOR ADMIN ONLY*
				Posted: April 3rd, 2011, 12:49 pm
				by JORDYY
				Thanks guys!