Raised This Month: $ Target: $400
 0% 

admin acces only


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 01-24-2007 , 21:53   admin acces only
Reply With Quote #1

I'ved repost here b-cause the last location was incorrect
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 ?
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
__________________
Hunter-Digital is offline
s p l i t
Senior Member
Join Date: May 2006
Location: US, NC
Old 01-24-2007 , 22:03   Re: admin acces only
Reply With Quote #2

so just specify 1 param
s p l i t is offline
Send a message via AIM to s p l i t Send a message via MSN to s p l i t
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 01-26-2007 , 08:16   Re: admin acces only
Reply With Quote #3

huh ?
__________________
Hunter-Digital is offline
Ryu2877
Member
Join Date: Sep 2006
Location: China
Old 01-26-2007 , 08:40   Re: admin acces only
Reply With Quote #4

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.
Ryu2877 is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 01-28-2007 , 15:31   Re: admin acces only
Reply With Quote #5

aha, 10k you
__________________
Hunter-Digital is offline
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 22:27.


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