AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Admin Inmunity (https://forums.alliedmods.net/showthread.php?t=134774)

totalcsscripting 08-08-2010 12:14

Admin Inmunity
 
I have this plugin to take a screen shot. But i can't take a screenshot my self ue to the inmunity.

PHP Code:

public plugin_init() 

register_concmd("amx_screen""concmd_screen"ADMIN_LEVEL_A"<authid, nick or #userid> <screens>")
}

//Is the amx_screen'er an admin? 
if(!cmd_access(idlevelcid3)) 
    return 
PLUGIN_HANDLED 

What do i have to modifiy?

hleV 08-08-2010 14:08

Re: Admin Inmunity
 
Provide the cmd_target() function of the code.

fysiks 08-08-2010 14:54

Re: Admin Inmunity
 
Add CMDTARGET_ALLOW_SELF to the flags argument of cmd_target(). But, remember that you add flags with the | operator.

totalcsscripting 08-08-2010 16:36

Re: Admin Inmunity
 
Quote:

Originally Posted by hleV (Post 1265694)
Provide the cmd_target() function of the code.

PHP Code:

player cmd_target(idarg11
if (!
player

return 
PLUGIN_HANDLED 



Jack86 08-08-2010 18:04

Re: Admin Inmunity
 
Code:

/* Flags:
*  1 - obey immunity
*  2 - allow yourself
*  4 - must be alive
*  8 - can't be bot */
#define CMDTARGET_OBEY_IMMUNITY (1<<0)
#define CMDTARGET_ALLOW_SELF    (1<<1)
#define CMDTARGET_ONLY_ALIVE    (1<<2)
#define CMDTARGET_NO_BOTS        (1<<3)



All times are GMT -4. The time now is 00:06.

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