Raised This Month: $ Target: $400
 0% 

Command only for admin & dead users while alive


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 07-23-2011 , 13:06   Re: Command only for admin & dead users while alive
Reply With Quote #1

I was wrong the first time.

tested and working:
PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_clcmd("say !test""CmdTest");
}


public 
CmdTest(id)
{
    if(
is_user_alive(id) && !(get_user_flags(id) & ADMIN_BAN))
        
client_print(idprint_chat"You cannot access this");
        
    else
        
client_print(idprint_chat"You can access this");
    
    return 
PLUGIN_HANDLED;

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
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:59.


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