AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   is there a function that gives user admin? (https://forums.alliedmods.net/showthread.php?t=135310)

Max! 08-14-2010 19:46

is there a function that gives user admin?
 
is there like a function where i can set the flags of a user and make him an admin, like with "abcdefg"etc

Vechta 08-14-2010 19:48

Re: is there a function that gives user admin?
 
in cs console
Code:

amx_addadmin "steamid:00123 bla^^" "" "flags (abcdef)" "steamid"

Max! 08-14-2010 19:53

Re: is there a function that gives user admin?
 
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! 08-14-2010 20:07

Re: is there a function that gives user admin?
 
oops i doubted myself, that was right the first time :/

figured it out
Access = read_flags("abcdefghijkl")
set_user_flags(iClient, Access)

fysiks 08-14-2010 23:36

Re: is there a function that gives user admin?
 
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.

DarkGod 08-15-2010 00:31

Re: is there a function that gives user admin?
 
Quote:

Originally Posted by fysiks (Post 1271207)
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).


All times are GMT -4. The time now is 21:56.

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