Raised This Month: $ Target: $400
 0% 

Admin Inmunity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
totalcsscripting
BANNED
Join Date: Jul 2010
Old 08-08-2010 , 12:14   Admin Inmunity
Reply With Quote #1

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?
totalcsscripting is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 08-08-2010 , 14:08   Re: Admin Inmunity
Reply With Quote #2

Provide the cmd_target() function of the code.
__________________
hleV is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-08-2010 , 14:54   Re: Admin Inmunity
Reply With Quote #3

Add CMDTARGET_ALLOW_SELF to the flags argument of cmd_target(). But, remember that you add flags with the | operator.
__________________
fysiks is offline
totalcsscripting
BANNED
Join Date: Jul 2010
Old 08-08-2010 , 16:36   Re: Admin Inmunity
Reply With Quote #4

Quote:
Originally Posted by hleV View Post
Provide the cmd_target() function of the code.
PHP Code:
player cmd_target(idarg11
if (!
player

return 
PLUGIN_HANDLED 

totalcsscripting is offline
Jack86
Veteran Member
Join Date: Dec 2008
Location: Belgrade, Serbia
Old 08-08-2010 , 18:04   Re: Admin Inmunity
Reply With Quote #5

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)
__________________

Jack86 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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