Raised This Month: $51 Target: $400
 12% 

[SOLVED] is_user_admin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 09-26-2009 , 03:55   [SOLVED] is_user_admin
Reply With Quote #1

well, do not understand what the error here, I try to be that if they put the cvar in 1 show PROTECTED for normal players and the new password for admins, but it does ... shows all the password: S


Here I give the lines of that cvar

PHP Code:
 case 1
 ( 
 if (
is_user_admin(id)) 
 ( 
 
client_print (0print_chat"[AMXX] ADMIN %s change the password to %s"namepass
 ) 
 else 
 
client_print (0print_chat"[AMXX] ADMIN %s change the password to ***PROTECTED***"name
 ) 
Thanks for your help

sorry for my bad english

Last edited by #8 SickneSS; 09-26-2009 at 04:16.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 09-26-2009 , 03:58   Re: [HELP] is_user_admin
Reply With Quote #2

PHP Code:
case 1

    if (
is_user_admin(id)) 
        
client_print (idprint_chat"[AMXX] ADMIN %s change the password to %s"namepass
    else 
        
client_print (idprint_chat"[AMXX] ADMIN %s change the password to ***PROTECTED***"name

__________________
Impossible is Nothing

Last edited by Sylwester; 09-26-2009 at 04:00.
Sylwester is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 09-26-2009 , 03:59   Re: [HELP] is_user_admin
Reply With Quote #3

You need to loop trough all players...
__________________
xPaw is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 09-26-2009 , 04:02   Re: [HELP] is_user_admin
Reply With Quote #4

I guess this is already inside loop, but he was displaying it to all players "client_print(0, ..."
__________________
Impossible is Nothing
Sylwester is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 09-26-2009 , 04:14   Re: [HELP] is_user_admin
Reply With Quote #5

I F%%%% LOVE U xPAW

Thanks^^

Last edited by #8 SickneSS; 09-26-2009 at 06:14.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
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 06:52.


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