mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
Add default value for aguments num in cmd_access
useful for commands with no arguments
This commit is contained in:
parent
e8c8111178
commit
8062237473
@ -45,7 +45,7 @@ stock is_user_admin(id)
|
||||
*
|
||||
* @return 1 if access granted and parameters provided, 0 otherwise
|
||||
*/
|
||||
stock cmd_access(id, level, cid, num, bool:accesssilent = false)
|
||||
stock cmd_access(id, level, cid, num = 0, bool:accesssilent = false)
|
||||
{
|
||||
new has_access = 0;
|
||||
if (id == (is_dedicated_server() ? 0 : 1))
|
||||
|
Loading…
Reference in New Issue
Block a user