Quote:
Originally Posted by wAyz
Is there any option in ProKreedz to kind of "reserve" hook for someone? For example I've got a mate who frequently joins my server and I always have to manually type "kz_hook nick" thing. Unfortunately it's only valid if he's connected.
|
Because you may want to give other access then ADMIN_KICK to single players, you can do this :
Change in .sma :
PHP Code:
public hook_on(id)
{
if( !canusehook[id] && !( get_user_flags( id ) & KZ_LEVEL ) || !is_user_alive(id) )
return PLUGIN_HANDLED
with
PHP Code:
public hook_on(id, lvl)
{
if( ( !canusehook[id] || ~get_user_flags( id ) & lvl ) || !is_user_alive(id) )
return PLUGIN_HANDLED
And in addons/amxmodx/configs/cmdaccess.ini
Change :
"+hook" "c" ; prokreedz.amxx
with the letter you want from that list :
Code:
; Access flags:
; a - immunity (can't be kicked/baned/slayed/slaped and affected by other commmands)
; b - reservation (can join on reserved slots)
; c - amx_kick command
; d - amx_ban and amx_unban commands
; e - amx_slay and amx_slap commands
; f - amx_map command
; g - amx_cvar command (not all cvars will be available)
; h - amx_cfg command
; i - amx_chat and other chat commands
; j - amx_vote and other vote commands
; k - access to sv_password cvar (by amx_cvar command)
; l - access to amx_rcon command and rcon_password cvar (by amx_cvar command)
; m - custom level A (for additional plugins)
; n - custom level B
; o - custom level C
; p - custom level D
; q - custom level E
; r - custom level F
; s - custom level G
; t - custom level H
; u - menu access
; z - user (no admin)
Then add those users in users.ini with correct flag.
__________________