AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   admin acces only (https://forums.alliedmods.net/showthread.php?t=50370)

Hunter-Digital 01-24-2007 21:53

admin acces only
 
I'ved repost here b-cause the last location was incorrect :nono: :lol:
now, I can't make a command to be done only by an admin, I have to add a !command_acces or something like that but it gives me the ability to insert parametters and I don't need that, just the plain command only be used by the specified acces leve, what I must add ? :shock:
here's the code:
Code:


plugin int blabla
register_concmd("amx_clear","amx_clear",ADMIN_ADMIN)
}
.........
public amx_clear(id, level) {
client_cmd(id, "_clear")
return PLUGIN_HANDLED
}

the _clear command it's set somewhere else..... or btw, instead of the client_cmd I'd could just place the command that's set in statsme... it makes 5 chat lines and the last line says the player name that triggered the command.... I would read the manual on wikipedia but I don't understand a thing :shock: :mrgreen:

s p l i t 01-24-2007 22:03

Re: admin acces only
 
so just specify 1 param

Hunter-Digital 01-26-2007 08:16

Re: admin acces only
 
huh ? :shock:

Ryu2877 01-26-2007 08:40

Re: admin acces only
 
the param is the command "length",

by your case, maybe
Code:

if ( !cmd_access(id, level, cid, 1) )
I'm not ensure it is what you want by my bad English.

Hunter-Digital 01-28-2007 15:31

Re: admin acces only
 
:) aha, 10k you :mrgreen:


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

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