Raised This Month: $ Target: $400
 0% 

is there a function that gives user admin?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Max!
Member
Join Date: Jun 2009
Old 08-14-2010 , 19:46   is there a function that gives user admin?
Reply With Quote #1

is there like a function where i can set the flags of a user and make him an admin, like with "abcdefg"etc
Max! is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 08-14-2010 , 19:48   Re: is there a function that gives user admin?
Reply With Quote #2

in cs console
Code:
amx_addadmin "steamid:00123 bla^^" "" "flags (abcdef)" "steamid"
Vechta is offline
Max!
Member
Join Date: Jun 2009
Old 08-14-2010 , 19:53   Re: is there a function that gives user admin?
Reply With Quote #3

i mean like a temporary function via code that only remains for the rest of the map

there must be a way that admins.sma did it. I dont want to save their steamid and info in the users.ini
Max! is offline
Old 08-14-2010, 20:05
Max!
This message has been deleted by Max!.
Max!
Member
Join Date: Jun 2009
Old 08-14-2010 , 20:07   Re: is there a function that gives user admin?
Reply With Quote #4

oops i doubted myself, that was right the first time :/

figured it out
Access = read_flags("abcdefghijkl")
set_user_flags(iClient, Access)
Max! is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-14-2010 , 23:36   Re: is there a function that gives user admin?
Reply With Quote #5

You can see here some examples: http://forums.alliedmods.net/showthread.php?t=110715

It also talks about how you have to remove the ADMIN_USER flag for all admin stuff to work.
__________________
fysiks is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 08-15-2010 , 00:31   Re: is there a function that gives user admin?
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
It also talks about how you have to remove the ADMIN_USER flag for all admin stuff to work.
It's not all, just those which use is_user_admin() and/or get_user_flags() with ADMIN_ADMIN, I believe (it's one or both of them for sure).
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Reply


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 21:56.


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