Raised This Month: $ Target: $400
 0% 

Help Admin commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ghost95v
Senior Member
Join Date: Apr 2014
Location: somewhere in universe
Old 12-21-2014 , 18:04   Help Admin commands
Reply With Quote #1

Hello, exist anyway to block to an assigned admin all his access of commands ( <- default cmd's like amx_slap, etc.. ) , just for 1 map ?
example like this, "amx_warn <name> <reason>" and to the target will be showed like "(ADMIN) ghost95v: warned target due [server rules]" and hee will not be able to give a cmd for a map... Thnx
__________________

Last edited by ghost95v; 12-21-2014 at 18:08.
ghost95v is offline
Send a message via Skype™ to ghost95v
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-21-2014 , 18:14   Re: Help Admin commands
Reply With Quote #2

http://amxmodx.org/api/amxmodx/remove_user_flags
or
http://amxmodx.org/api/amxmodx/set_user_flags
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ghost95v
Senior Member
Join Date: Apr 2014
Location: somewhere in universe
Old 12-21-2014 , 18:19   Re: Help Admin commands
Reply With Quote #3

Ok, thanks, but i didn't fully understand this native, how can i code it to an "index" ?
__________________
ghost95v is offline
Send a message via Skype™ to ghost95v
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-21-2014 , 18:21   Re: Help Admin commands
Reply With Quote #4

index == id
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ghost95v
Senior Member
Join Date: Apr 2014
Location: somewhere in universe
Old 12-21-2014 , 18:23   Re: Help Admin commands
Reply With Quote #5

Quote:
Originally Posted by YamiKaitou View Post
index == id
i know man, it can be "index or id or player or whatever" but...
__________________

Last edited by ghost95v; 12-21-2014 at 18:23.
ghost95v is offline
Send a message via Skype™ to ghost95v
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-21-2014 , 18:25   Re: Help Admin commands
Reply With Quote #6

But what? What part of it do you not understand?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ghost95v
Senior Member
Join Date: Apr 2014
Location: somewhere in universe
Old 12-21-2014 , 18:34   Re: Help Admin commands
Reply With Quote #7

the part when i have to use the native "set_user_flags(id.... here i dont know what to code more ( to set to the client only a Null flag ), or to remove all his flags with remove_user_flags.
__________________
ghost95v is offline
Send a message via Skype™ to ghost95v
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-21-2014 , 18:41   Re: Help Admin commands
Reply With Quote #8

Code:
remove_user_flags(id, get_user_flags(id));
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 12-21-2014 at 18:41.
YamiKaitou is offline
ghost95v
Senior Member
Join Date: Apr 2014
Location: somewhere in universe
Old 12-21-2014 , 18:48   Re: Help Admin commands
Reply With Quote #9

Quote:
Originally Posted by YamiKaitou View Post
Code:
remove_user_flags(id, get_user_flags(id));
Thats it, thanks
__________________
ghost95v is offline
Send a message via Skype™ to ghost95v
ghost95v
Senior Member
Join Date: Apr 2014
Location: somewhere in universe
Old 12-24-2014 , 10:51   Re: Help Admin commands
Reply With Quote #10

I tried, on myself without my immunity flag , but not working, i still have the acesses of admincmd....
__________________
ghost95v is offline
Send a message via Skype™ to ghost95v
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 15:22.


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