mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 23:08:03 +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
|
* @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;
|
new has_access = 0;
|
||||||
if (id == (is_dedicated_server() ? 0 : 1))
|
if (id == (is_dedicated_server() ? 0 : 1))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user