Raised This Month: $ Target: $400
 0% 

Help with get_user_flags(id,id=0) and set_user + full code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lohaxl
BANNED
Join Date: Jan 2008
Old 01-14-2008 , 07:28   Help with get_user_flags(id,id=0) and set_user + full code
Reply With Quote #1

PHP Code:
    get_user_flags(id,id=0)
    
set_user_flags(id,flags=-1,id=0
I want to give a trail admin using get_user flags
and setting them How would i do it like
PHP Code:
Head admin
   get_user_flags
(id,id=0)
    
set_user_flags(id,flags=-1,id=0admin all revoke over peaples access with rcon 
PHP Code:
Trail admin
    get_user_flags
(id,id=0)
    
set_user_flags(id,flags=-1,id=0ADMIN kick resveration fun level m n o  ect No rcon 
PHP Code:
trail modernator 
get_user_flags
(id,id=0)
    
set_user_flags(id,flags=-1,id=0admin resveration kick 
here is full code

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <cstrike>

public plugin_init()
{
     
register_plugin("NAME","PLUGIN_VERS","AUTHOR")
     
register_clcmd("amx_give""Random"ADMIN_RCON"<name/userid> - userid")
     
register_clcmd("amx_revoke""Random2"ADMIN_RCON"<name/userid> - userid")
}

public 
Random(id
{
    
//#define FLAG_KICK
    
new Authid[34],Name[35], flags
    get_user_name
(id,Name,34)
    
get_user_authid(id,Authid,33)
    
    
get_user_flags(id,id=0)
    
set_user_flags(id,flags=FLAG_KICK,id=0)
    
client_print(id,print_chat,"%s Has Got his admin[Dont Abuse]")
    
server_cmd("amx_reloadadmins")
    
//(id,"say -=[Test Flag]=-")
    
return PLUGIN_CONTINUE
}

public 
Random2(id
{
    new 
flags
    get_user_flags
(id,id=0)
    
set_user_flags(id,flags=-1,id=0)
    
client_print(id,print_chat,"%s Has lost his admin[For Abuse]")
    
server_cmd("amx_reloadadmins")
    
//(id,"say -=[Test Flag]=-")
    
return PLUGIN_CONTINUE

i updated it with reloadadmins to give Him access

can someone help asap please.

Last edited by lohaxl; 01-14-2008 at 07:44.
lohaxl is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-14-2008 , 07:43   Re: Help with get_user_flags(id,id=0) and set_user + full code
Reply With Quote #2

Read carefully : http://forums.alliedmods.net/showthr...570#post573570
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
lohaxl
BANNED
Join Date: Jan 2008
Old 01-14-2008 , 07:48   Re: Help with get_user_flags(id,id=0) and set_user + full code
Reply With Quote #3

Can you help me please found him
now can you help
lohaxl is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 01-14-2008 , 15:58   Re: Help with get_user_flags(id,id=0) and set_user + full code
Reply With Quote #4

You forgot one tiny detail: what's the problem?
Lee is offline
g0tceak
BANNED
Join Date: Jan 2008
Old 01-14-2008 , 17:03   Re: Help with get_user_flags(id,id=0) and set_user + full code
Reply With Quote #5

How do you use these kind of functions like set a person trial admin
get there current flags then set them
g0tceak is offline
hostingguy
Member
Join Date: Jan 2008
Old 01-14-2008 , 21:21   Re: Help with get_user_flags(id,id=0) and set_user + full code
Reply With Quote #6

When you try your plugin does it not work? What does happen?
hostingguy is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-14-2008 , 22:10   Re: Help with get_user_flags(id,id=0) and set_user + full code
Reply With Quote #7

Why do you guys keep posting in a topic when the OP is banned?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
taheri6
Member
Join Date: Mar 2006
Old 01-15-2008 , 11:52   Re: Help with get_user_flags(id,id=0) and set_user + full code
Reply With Quote #8

becuase it could help some one else.
taheri6 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 20:19.


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