Raised This Month: $64 Target: $400
 16% 

Steam VIP add "flag bitry" + Tag [Steam VIP]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 11-10-2018 , 11:36   Steam VIP add "flag bitry" + Tag [Steam VIP]
Reply With Quote #1

Hello, can anyone add flags ADMIN_RESERVATION "b" / ADMIN_CHAT "i" / ADMIN_LEVEL_H "t" / ADMIN_LEVEL_F "r" / and ADMIN_ADMIN "y" to this Steam VIP Plugin?

Second: Can anyone add Tag too ? Then it should showing before the Nickname for Flag "y" [Steam VIP] ?

It would be really cool. Thanks.

Code:
#include <amxmodx>
#include <colorchat>
 
#define PLUGIN "FREE VIP"
#define VERSION "1.0"
#define AUTHOR "Devil"
 
#define flaga ADMIN_USER
 
new Forward_amxbans,iRet
 
public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        Forward_amxbans= CreateMultiForward("amxbans_admin_connect",ET_IGNORE,FP_CELL)
}
public client_connect(id)
{
        if(is_steam(id))
        {
                
                set_task(10.0,"Free_VIP",id)
        }
}
public Free_VIP(id)
{
        ColorChat(id,GREEN,"[~PB~] ^x03You received a free VIP for having a Steam account.")
//      remove_user_flags(id, ADMIN_USER)
        set_user_flags(id, ADMIN_LEVEL_H)
        ExecuteForward(Forward_amxbans, iRet, id);
}
stock bool:is_steam(id) 
{
        new auth[65]
        get_user_authid(id,auth,64)
        if(contain(auth, "STEAM_0:0:") != -1 || contain(auth, "STEAM_0:1:") != -1)
        return true;
        return false;
}

Last edited by Godofwar; 11-10-2018 at 11:36.
Godofwar is offline
Relaxing
Veteran Member
Join Date: Jun 2016
Location: Catlands
Old 11-10-2018 , 12:36   Re: Steam VIP add "flag bitry" + Tag [Steam VIP]
Reply With Quote #2

configs\amxx.cfg
amx_default_access "t"
__________________
Have A Relaxing Day | Wiki
aim_relaxing

Last edited by Relaxing; 11-10-2018 at 12:38.
Relaxing is offline
Nutu_
Senior Member
Join Date: Mar 2016
Location: no where
Old 11-10-2018 , 12:47   Re: Steam VIP add "flag bitry" + Tag [Steam VIP]
Reply With Quote #3

Quote:
Originally Posted by Relaxing View Post
configs\amxx.cfg
amx_default_access "t"
all players are steammers use default access,
non-steam is not allowed here
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
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 22:35.


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