dmb lil question
may i know whats the difference if i don't put the ",level,cid" in this following script?
Code:
i declared that you need at least ADMIN_LEVEL_A to do that, but if i don't put that, will it do any harm? yep, i know stupid question :) |
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:
|
The last parameter should be number of command line arguments + 1 :wink:
Quote:
|
oh crap. no wonder my plugin wasn't "approved"
Code:
what abotu if i use this? |
| All times are GMT -4. The time now is 16:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.