Raised This Month: $ Target: $400
 0% 

Command only for admin & dead users while alive


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DeLiriuM
Senior Member
Join Date: Dec 2006
Old 07-23-2011 , 11:07   Command only for admin & dead users while alive
Reply With Quote #1

Hey,

I'm trying to make a command available only for admins with flag A and regular users when they're dead, but the best i could to is, to restrict the command for alive users and make it unavailable for users with ADMIN_USER (aka default).

Code:
  if (is_user_alive(id) && (get_user_flags(id) & ADMIN_USER))
  {
     client_print(id, print_chat, "Only admins or dead users could use this command")
     return PLUGIN_HANDLED
  }
__________________

Last edited by DeLiriuM; 07-23-2011 at 11:17.
DeLiriuM is offline
 


Thread Tools
Display Modes

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