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

Only mods can press a button?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
raffle
Junior Member
Join Date: Sep 2014
Old 09-20-2017 , 20:47   Only mods can press a button?
Reply With Quote #1

Hey everyone!

Is there a plugin out there that adds permissions to entity triggers or something among those lines?
I wanted to setup something on my server where only mods\admins could press certain buttons and players couldn't.
Thank you for reading
raffle is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-23-2017 , 06:01   Re: Only mods can press a button?
Reply With Quote #2

This maybe can be done, but I haven't seen a plugin which would work on every map....
There have samples, only admins can use map teleportation and such
__________________
Do not Private Message @me

Last edited by Bacardi; 09-23-2017 at 06:02.
Bacardi is offline
raffle
Junior Member
Join Date: Sep 2014
Old 09-24-2017 , 20:38   Re: Only mods can press a button?
Reply With Quote #3

Thanks for the reply!
Well I'm gonna start learning how to code for SM soon, is this something that is easily done?
If so, could someone point me on the right direction?
I just wanna make it so only mods can press a button in a specific map.
Thanks!
raffle is offline
hmmmmm
Great Tester of Whatever
Join Date: Mar 2017
Location: ...
Old 09-26-2017 , 19:12   Re: Only mods can press a button?
Reply With Quote #4

Shouldn't be too tough to do, just hook the func_button and block output if player isn't a mod. KZTimer hooks map start/end buttons so you can look at that if you want an example.
hmmmmm is offline
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 18:18.


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