AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help Admin commands (https://forums.alliedmods.net/showthread.php?t=253419)

ghost95v 12-21-2014 18:04

Help Admin commands
 
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 :)

YamiKaitou 12-21-2014 18:14

Re: Help Admin commands
 
http://amxmodx.org/api/amxmodx/remove_user_flags
or
http://amxmodx.org/api/amxmodx/set_user_flags

ghost95v 12-21-2014 18:19

Re: Help Admin commands
 
Ok, thanks, but i didn't fully understand this native, how can i code it to an "index" ?

YamiKaitou 12-21-2014 18:21

Re: Help Admin commands
 
index == id

ghost95v 12-21-2014 18:23

Re: Help Admin commands
 
Quote:

Originally Posted by YamiKaitou (Post 2238180)
index == id

i know man, it can be "index or id or player or whatever" but... :)

YamiKaitou 12-21-2014 18:25

Re: Help Admin commands
 
But what? What part of it do you not understand?

ghost95v 12-21-2014 18:34

Re: Help Admin commands
 
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.

YamiKaitou 12-21-2014 18:41

Re: Help Admin commands
 
Code:

remove_user_flags(id, get_user_flags(id));

ghost95v 12-21-2014 18:48

Re: Help Admin commands
 
Quote:

Originally Posted by YamiKaitou (Post 2238192)
Code:

remove_user_flags(id, get_user_flags(id));

Thats it, thanks :)

ghost95v 12-24-2014 10:51

Re: Help Admin commands
 
I tried, on myself without my immunity flag , but not working, i still have the acesses of admincmd....


All times are GMT -4. The time now is 15:22.

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