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
Help please *MODDING DEAGLE FOR ADMIN ONLY*
Moderator: Core Staff
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Help please *MODDING DEAGLE FOR ADMIN ONLY*
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.
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.
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Re: Help please *MODDING DEAGLE FOR ADMIN ONLY*
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.
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.
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Help please *MODDING DEAGLE FOR ADMIN ONLY*
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.
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Re: Help please *MODDING DEAGLE FOR ADMIN ONLY*
/Sunday-morning-fail
I misunderstood line 1
I misunderstood line 1
Re: Help please *MODDING DEAGLE FOR ADMIN ONLY*
Thanks guys!
Who is online
Users browsing this forum: No registered users and 0 guests