AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   amx_who restriction (https://forums.alliedmods.net/showthread.php?t=5570)

Rymek 09-05-2004 17:06

amx_who restriction
 
Hi :)

I was wondering is there any way to restrict this (amx_who) command to normal users. I know that in previous relases of AMXX due to a bug it was restricted :) Can someone point me how to do it?

thx 4 answers :)

BillyTheKid 09-07-2004 20:36

ummm not sure why you want to restrict amx_who...

1 so ppl can't figure out whos an admin
2 so ppl can't get steamid's

if your worried about 2 then forget it because they will still be able to do a status in console...

Rymek 09-08-2004 03:18

the 1st option :) i dont wanna pipl to know who's the admin

FeuerSturm 09-08-2004 04:50

amx_who is restricted for normal players.

in 0.16 and in 0.20 as well. you need level ADMIN_ADMIN to
use it.
remove your admin account, restart the map and connect to your
server and you will see that you can't use it.

SidLuke 09-08-2004 13:43

You want to restrict or maybe not to restrict this command so normal user could use it ?

SidLuke 09-08-2004 13:48

Plugin admincmd.sma change to :

Code:

  //amx_who , for admins only
  register_concmd("amx_who","cmdWho",ADMIN_ADMIN,"- displays who is on server")



Code:

  // amx_who , for all players
  register_concmd("amx_who","cmdWho",ADMIN_USER,"- displays who is on server")


slmclarengt 09-08-2004 16:56

The simplest way to restrict it is just dont give the player admin level "y." Give them "z," so that they are registered as a normal user and not as an admin. GO into amxx.cfg I believe and
Code:

amx_default_access "y"
Change to
Code:

amx_default_access "z"

kalel 09-09-2004 04:27

unless it was changed in .20 defult acess for players is already z


All times are GMT -4. The time now is 17:26.

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