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

simple code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vl@d
Senior Member
Join Date: Dec 2006
Location: Romania
Old 08-16-2007 , 18:55   simple code
Reply With Quote #1

Code:
if(get_gametime() < 1000)
    {
        client_print(id, print_console, "NU este permis schimbarea harti.")
        return PLUGIN_HANDLED
    }
I need a little help with this code.
the code needs to verify if is a admin in the srv with high acces.
the full acces.
If the amdin has that acces then he can change the map.
__________________


I hate Spammers....
vl@d is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 08-16-2007 , 19:16   Re: simple code
Reply With Quote #2

Code:
access(id, ADMIN_ALL)
I'm pretty sure ADMIN_ALL means all flags.
__________________
stupok is offline
_Master_
Senior Member
Join Date: Dec 2006
Old 08-17-2007 , 02:51   Re: simple code
Reply With Quote #3

ADMIN_ALL means all players.

For the highest admin level do an
Code:
ADMIN_HIGHEST = -1 ^ ADMIN_USER
_Master_ is offline
vl@d
Senior Member
Join Date: Dec 2006
Location: Romania
Old 08-17-2007 , 05:51   Re: simple code
Reply With Quote #4

yes but i need for 2 acces.
abcdefghijklmnopqrstu
abcdefghijklmnopqrst
__________________


I hate Spammers....
vl@d is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 08-17-2007 , 15:02   Re: simple code
Reply With Quote #5

If players with menu access are the users you wish to allow to change the map before 1000 seconds have elapsed, use this..

Code:
if(get_gametime() < 1000 && !(get_user_flags(id) & ADMIN_MENU)) {     client_print(id, print_console, "NU este permis schimbarea harti.")     return PLUGIN_HANDLED }
Lee is offline
vl@d
Senior Member
Join Date: Dec 2006
Location: Romania
Old 08-20-2007 , 17:05   Re: simple code
Reply With Quote #6

thx it works
__________________


I hate Spammers....
vl@d 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 08:43.


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