Raised This Month: $ Target: $400
 0% 

How to make set_user_flags for everybody?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 11-19-2011 , 02:36   How to make set_user_flags for everybody?
Reply With Quote #1

Here is the link: http://www.amxmodx.org/funcwiki.php?go=func&id=256.
But I still don't understand how to make this fork for everybody in my server.
P.S. I want to give players admin_chat flag.
__________________
Please enter this website everyday: http://forums.alliedmods.net/showthread.php?t=169067
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-19-2011 , 04:53   Re: How to make set_user_flags for everybody?
Reply With Quote #2

Code:
// Default access for all non admin players (see users.ini for access details)
//
// Default value: "z"
amx_default_access "z"
Put flags you want here.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 11-19-2011 , 05:18   Re: How to make set_user_flags for everybody?
Reply With Quote #3

Haha. Well perhaps I didn't explain everything. I am trying to make a plugin that gives player ADMIN_CHAT flag on some of the days. eg.:
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Free Hollyday VIP"
#define VERSION "1.0"
#define AUTHOR "Evaldas.Grigas"

new temp[10]

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_logevent"Event_RoundStart"2"1=Round_Start" );
}

public 
Event_RoundStart(id)
{
    
get_time("%m %d"tempsizeof(temp)-1)
    if(
equali(temp"11 19"))
    {
        
set_user_flags(id ADMIN_CHAT)
    } 

__________________
Please enter this website everyday: http://forums.alliedmods.net/showthread.php?t=169067

Last edited by Evaldas.Grigas; 11-19-2011 at 05:19.
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
Korxu
Senior Member
Join Date: Sep 2010
Old 11-19-2011 , 05:45   Re: How to make set_user_flags for everybody?
Reply With Quote #4

The event 'round start' don't pass any index.
Korxu is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-19-2011 , 05:47   Re: How to make set_user_flags for everybody?
Reply With Quote #5

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

#define PLUGIN "Free Hollyday VIP"
#define VERSION "1.0"
#define AUTHOR "Evaldas.Grigas"

new temp[10]

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    new 
szDate[5]
    
get_time("%m%d"szDatecharsmax(szDate))
    if( !
equal(szDate"1119") )
    {
        
pause("a")
    } 
}

public 
client_authorizedid )
{
    
set_user_flags(id ADMIN_CHAT)
}

public 
client_putinserverid )
{
    
set_user_flags(id ADMIN_CHAT)
}

public 
client_infochangedid )
{
    
set_user_flags(id ADMIN_CHAT)

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 11-19-2011 , 06:12   Re: How to make set_user_flags for everybody?
Reply With Quote #6

Thanks it works. If I want to add flags I have to add them in client_authorized, putinserver and infochanged. Right?
__________________
Please enter this website everyday: http://forums.alliedmods.net/showthread.php?t=169067

Last edited by Evaldas.Grigas; 11-19-2011 at 16:26.
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
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:30.


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