Raised This Month: $12 Target: $400
 3% 

Give temp accessflag/override


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Schpraaankiii
Veteran Member
Join Date: Dec 2009
Location: Sweden Norrköping
Old 06-06-2015 , 22:13   Give temp accessflag/override
Reply With Quote #1

Hey,
How would I go about giving someone a temp accessflag (flag "0") that'll remove itself when they disconnect or at mapchange?

I would like two commands (require ADMFLAG_CUSTOM1 to execute):
sm_setoaccess <player>
sm_removeoaccess <player>
__________________
CAOSK-ESPORTS.COM

Last edited by Schpraaankiii; 06-29-2015 at 18:41.
Schpraaankiii is offline
Send a message via Skype™ to Schpraaankiii
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 06-07-2015 , 01:02   Re: Give temp accessflag/override
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=247263 would this work?
__________________

Last edited by ddhoward; 06-07-2015 at 01:48.
ddhoward is offline
Schpraaankiii
Veteran Member
Join Date: Dec 2009
Location: Sweden Norrköping
Old 06-07-2015 , 09:05   Re: Give temp accessflag/override
Reply With Quote #3

Quote:
Originally Posted by ddhoward View Post
This would allow the admin to give any accessflags. I only want the admins to be able to set the flag "o" or only access to an override command.
__________________
CAOSK-ESPORTS.COM

Last edited by Schpraaankiii; 06-09-2015 at 05:55.
Schpraaankiii is offline
Send a message via Skype™ to Schpraaankiii
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 06-29-2015 , 22:14   Re: Give temp accessflag/override
Reply With Quote #4

Give the attached plugin a shot. It's untested, but does at least compile, and matches your spec on IRC rather than the OP here.

EDIT: Use https://spider.limetech.org/ to compile, the forum compiler has an outdated include file.
Attached Files
File Type: sp Get Plugin or Get Source (tempdonor.sp - 237 views - 3.6 KB)
__________________

Last edited by asherkin; 06-29-2015 at 22:14.
asherkin is offline
Schpraaankiii
Veteran Member
Join Date: Dec 2009
Location: Sweden Norrköping
Old 06-30-2015 , 06:21   Re: Give temp accessflag/override
Reply With Quote #5

Quote:
Originally Posted by asherkin View Post
Give the attached plugin a shot. It's untested, but does at least compile, and matches your spec on IRC rather than the OP here.

EDIT: Use https://spider.limetech.org/ to compile, the forum compiler has an outdated include file.
Thanks, it worked like a charm!
__________________
CAOSK-ESPORTS.COM
Schpraaankiii is offline
Send a message via Skype™ to Schpraaankiii
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode