Raised This Month: $ Target: $400
 0% 

dmb lil question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 05-16-2005 , 11:30  
Reply With Quote #2

If you don't put it, then the function will not be able to compare access levels to the calling user, meaning anyone can call the command from console in-game..

Bad idea, unless it is a public command..

To compare access levels, we usually use 'cmd_access()' from amxmisc.inc:

Code:
public MyFunction( id, level, cid ) {     if( !cmd_access( id, level, cid, 0 ) ) // <--  0 = # of Command-Line Arguments..         return PLUGIN_HANDLED }
xeroblood is offline
Send a message via MSN to xeroblood
 



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 16:39.


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