View Single Post
Author Message
blackalegator
Member
Join Date: Jan 2010
Old 08-04-2011 , 09:29   [ANY] Admin Lock
Reply With Quote #1

  • Title: Admin Lock
  • Description
- Lock admin commands for any admin (temporally)
- Unlock admin commands for any admin
- Immunity support
- You cannot target yourself (@me doesnt work, @all will lock everyone except yourself)
- Simple reconnect unlocks you
- Cache reload unlocks all admins
- Map change unlocks all admins
- Temp admin
- All commands require SLAY admin flag
- If you want to remove temp admin for player, just do sm_adminlock. You wont be able to unlock a temp admin though
  • Commands
- sm_adminlock <userid/name>
- sm_adminunlock <userid/name>
- sm_admintemp <userid/name> [flags (abfjkn)]
- sm_locklog (Only for debugging purpose)
  • Dependencies
None
  • Changelog
4.08.2011 (1.0)
- Plugin realease

5.08.2011(1.1)
- I wanted to update only when I will add a temp admin function, but I found out that there may be a bug if certain conditions are met. That release fixes it.

- You may now execute all the commands from rcon

- Now a simple reconnect will unlock you.
09.08.2011(1.2)
- Added a temp admin feature
- Renamed commands, not to conflict with some other plugins
  • Installation Instructions
- Place lock.smx at your plugins folder
  • Plans
In about 2-3 days I will ad a temp admin option
Thanks:
- Special thanks to MatthiasVance, dvander, SaberUK for their help in IRC
- asherkin, MatthiasVance for looking at my code
- blazen (Oleg) for helping me test my plugin
Attached Files
File Type: sp Get Plugin or Get Source (lock.sp - 1532 views - 7.4 KB)
__________________
I am Russian so DONT look at my english

Last edited by blackalegator; 08-08-2011 at 19:01.
blackalegator is offline
Send a message via Skype™ to blackalegator