Raised This Month: $32 Target: $400
 8% 

Automatic Vip Flags


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
friendziPeperoni
New Member
Join Date: Jul 2018
Old 07-18-2018 , 18:11   Automatic Vip Flags
Reply With Quote #1

Hii, can anyone fix me this so that dont register everyone that enter's the server?
PHP Code:
#include <sourcemod>
#include <sdkhooks>
#include <sdktools>
#include <cstrike>

#define FLAG_LETTERS_SIZE 26

#define MAX_PLAYERS 32 


new AdminFlag:g_FlagLetters[FLAG_LETTERS_SIZE];
Handle sql;                                                                    
new 
Handle:sm_testvip_flags INVALID_HANDLE;
new 
Handle:sm_testvip_days INVALID_HANDLE;
char dbError[512];    


public 
Plugin:myinfo 
{
    
name "l",
    
author "",
    
description "",
    
version "",
    
//url = "<- URL ->"
}

public 
OnPluginStart()
{
    
CreateConVar("auto_vip""0.2""AUTO-DELETE FLAGS FOR TIME"FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
    
HookEvent("player_spawn"PlayerSpawn);
    
g_FlagLetters CreateFlagLetters();
    
sm_testvip_flags CreateConVar("sm_testvip_flags""ar""What flags get user ?");
    
sm_testvip_days CreateConVar("sm_testvip_days""10""How long time(days) user get flags");
    
RegConsoleCmd("sm_testvip"testvip);
    
DataBaseConnect();
}



public 
Action:PlayerSpawn(Handle:event_spawnString:name[], bool:dontBroadcast)
{
    new 
client GetClientOfUserId(GetEventInt(event_spawn"userid"));
    if(!
IsValidClient(client) || IsFakeClient(client))
        return;
    
    
    
    
WriteToDatabase(client);
    
GiveFlagBySteamid(client);
    
UpdateTimeDatabase(client);
    
GetDateBySteamid(client);// Every spawn Update/Delete flag,date to user
    
    
    
}


public 
Action:GiveFlagBySteamid(client)
{
    
    new 
String:tmp[1024];
    
decl String:player_authid[32];
    
    if (
GetClientAuthString(clientplayer_authidsizeof(player_authid)))
    {
        
Format(tmpsizeof(tmp), "SELECT `flags` FROM `autovip` WHERE steamid = '%s';"player_authid);
        
SQL_TQuery(sqlGiveFlagBySteamidContinuetmpclient);
    }
    
    
}                

public 
GiveFlagBySteamidContinue(Handle:ownerHandle:query, const String:error[], any:client)
{
    
decl String:player_authid[32];
    
    if(
query == INVALID_HANDLE)
    {
        
LogError("Load error: %s"error);
        return;
    }
    
    
    if(
SQL_GetRowCount(query))
    {
        new 
String:flags[64];
        
        
        while(
SQL_MoreRows(query))
        { 
            
            while(
SQL_FetchRow(query))
            {
                
flags[client] = SQL_FetchString(query0flagssizeof(flags));
                
                
                
SQL_FetchString(query0flagssizeof(flags));
                
                
                if (
GetClientAuthString(clientplayer_authidsizeof(player_authid)))
                {
                    
                    for (new 
0strlen(flags); ++i)
                    {
                        if (
flags[i] < 'a' || flags[i] > 'z')
                            continue;
                        
                        if (
g_FlagLetters[flags[i]-'a'] < Admin_Reservation)
                            continue;
                        
                        
                        
                        
/*new AdminId:admin;
                        admin = AdminId:FindAdminByIdentity(dupkey, player_authid);
                        SetAdminFlag(AdminId:admin, g_FlagLetters[flags[i]-'a'], true);*/
                        
                        
AddUserFlags(clientg_FlagLetters[flags[i]-'a'])
                        
                    }
                    
                }    
            }
        }
    }
    
    
}


public 
Action:GetDateBySteamid(client)
{
    
    new 
String:tmp[1024];
    
decl String:player_authid[32];
    
    if (
GetClientAuthString(clientplayer_authidsizeof(player_authid)))
    {
        
Format(tmpsizeof(tmp), "SELECT UNIX_TIMESTAMP(`date`), UNIX_TIMESTAMP(`expirationdate`) FROM `autovip` WHERE steamid = '%s';"player_authid);
        
SQL_TQuery(sqlGetDateBySteamidContinuetmpclient);
    }
    
    
}    


public 
Action:testvip(clientargs)
{
    
    
    new 
String:tmp[1024];
    
decl String:player_authid[32];
    
    if (
GetClientAuthString(clientplayer_authidsizeof(player_authid)))
    {
        
Format(tmpsizeof(tmp), "SELECT `verify` FROM `autovip` WHERE steamid = '%s';"player_authid);
        
SQL_TQuery(sqltestvipcointinuetmpclient);
    }
    
}


public 
testvipcointinue(Handle:ownerHandle:query, const String:error[], any:client)
{
    
decl String:player_authid[32];
    new 
String:tmp[1024];
    
int daymonthyearenddayendmonth,endyear
    
new String:sday[10]; 
    new 
String:smonth[10]; 
    new 
String:syear[10]; 
    new 
Handle:testvip_flagstag FindConVar("sm_testvip_flags"); 
    new 
String:testvip_flags[32];
    new 
dayinmonth[13] = {0312830313031303130313031};
    
    
FormatTime(sdaysizeof(sday), "%d"); // Obtain day 
    
FormatTime(smonthsizeof(smonth), "%m"); // Obtain month 
    
FormatTime(syearsizeof(syear), "%Y"); // Obtain year 
    
    
day StringToInt(sday); 
    
month StringToInt(smonth); 
    
year StringToInt(syear); 
    
    
    
    new 
testvip_days GetConVarInt(sm_testvip_days);
    
GetConVarString(testvip_flagstagtestvip_flagssizeof(testvip_flags));
    
    
    
endday day testvip_days;
    
endmonth month;
    
endyear year;
    
    if (
endday dayinmonth[month]) 
    {
        
endday endday dayinmonth[month];
        
endmonth endmonth 1;
    }
    
    if (
endmonth == 13
    {
        
endyear endyear 1;
        
endmonth 1;
    }
    
    if(
query == INVALID_HANDLE)
    {
        
LogError("Load error: %s"error);
        return;
    }
    if(
SQL_GetRowCount(query))
    {
        new 
String:verify[512];
        
int verifyint;
        
        while(
SQL_MoreRows(query))
        {
            
            while(
SQL_FetchRow(query))
            {
                
                
SQL_FetchString(query0verifysizeof(verify));
                
                
verifyint StringToInt(verify);
                
                
                if (
verifyint == 0
                {
                    if (
GetClientAuthString(clientplayer_authidsizeof(player_authid)))
                    {
                        
                        
PrintToChat(client"\x01[\x04VIP\x01] You activated \x04VIP\x01");
                        
Format(tmpsizeof(tmp), "UPDATE `autovip` SET flags = '%s' ,verify = '1', expirationdate = '%i-%i-%i' WHERE steamid = '%s';"testvip_flags,endyear,endmonth,endday,player_authid);
                        
SQL_TQuery(sqlWriteToDatabase_Handlertmpclient);
                        
                    }
                }
                else
                {
                    
PrintToChat(client"\x01[\x04VIP\x01] You can't activate again \x04VIP\x01");
                }
            }
        }
    }
    
    
}


public 
GetDateBySteamidContinue(Handle:ownerHandle:query, const String:error[], any:client)
{
    
decl String:player_authid[32];
    new 
String:tmp[1024];
    
    if(
query == INVALID_HANDLE)
    {
        
LogError("Load error: %s"error);
        return;
    }
    if(
SQL_GetRowCount(query))
    {
        new 
String:date[512];
        new 
String:expirationdate[512];
        
int dateint,expirationdateint;
        
        while(
SQL_MoreRows(query))
        {
            
            while(
SQL_FetchRow(query))
            {
                
                
                
SQL_FetchString(query0datesizeof(date));
                
SQL_FetchString(query1expirationdatesizeof(expirationdate));
                
                
dateint StringToInt(date);
                
expirationdateint StringToInt(expirationdate);
                
dateint = ((expirationdateint dateint)/60/60/24);
                
                if (
dateint >= 1)
                {
                    
PrintToChat(client"\x01[\x04VIP\x01] Your VIP will expire in \x04%i day(s)\x01",dateint);
                    
                    
                    if (
GetClientAuthString(clientplayer_authidsizeof(player_authid)))
                    {
                        
                        
Format(tmpsizeof(tmp), "UPDATE `autovip` SET howmanydays = '%i' WHERE steamid = '%s';"dateint,player_authid);
                        
SQL_TQuery(sqlWriteToDatabase_Handlertmpclient);
                        
                    }
                } else if (
dateint <= 0)
                {
                    
Format(tmpsizeof(tmp), "UPDATE `autovip` SET flags = ' ', howmanydays = '0' WHERE steamid = '%s';"player_authid);
                    
SQL_TQuery(sqlWriteToDatabase_Handlertmpclient);
                }
            }
        }
    }
    
    
}


public 
Action:DataBaseConnect()
{
    
sql SQL_Connect("autovip"truedbErrorsizeof(dbError));
    if(
sql == INVALID_HANDLE)
        
PrintToServer("Could not connect: %s"dbError);
    
SQL_LockDatabase(sql);
    
SQL_FastQuery(sql"CREATE TABLE IF NOT EXISTS `autovip` (`id` INT(11) NOT NULL AUTO_INCREMENT, `steamid` VARCHAR(48) NOT NULL, `flags` VARCHAR(48) NOT NULL, `dupkey` VARCHAR(48), `date` VARCHAR(15), `expirationdate` VARCHAR(15), `howmanydays` INT(11), `verify` INT(4) DEFAULT 0  NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `keyid` (`dupkey`,`steamid`)) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;");
    
SQL_UnlockDatabase(sql);
    
}


public 
Action:WriteToDatabase(client)
{
    
    new 
String:tmp[1024];
    
decl String:player_authid[32];
    
    if (
GetClientAuthString(clientplayer_authidsizeof(player_authid)))
    {
        
        
Format(tmpsizeof(tmp), "INSERT INTO `autovip` (`steamid`,`dupkey`) VALUES ('%s','%skey');"player_authid,player_authid);
        
SQL_TQuery(sqlWriteToDatabase_Handlertmpclient);
        
    }
}

public 
Action:UpdateTimeDatabase(client)
{
    
int daymonthyear
    
new String:sday[10]; 
    new 
String:smonth[10]; 
    new 
String:syear[10]; 
    
    
FormatTime(sdaysizeof(sday), "%d"); // Obtain day 
    
FormatTime(smonthsizeof(smonth), "%m"); // Obtain month 
    
FormatTime(syearsizeof(syear), "%Y"); // Obtain year 
    
    
day StringToInt(sday); 
    
month StringToInt(smonth); 
    
year StringToInt(syear); 
    
    new 
String:tmp[1024];
    
decl String:player_authid[32];
    
    if (
GetClientAuthString(clientplayer_authidsizeof(player_authid)))
    {
        
        
Format(tmpsizeof(tmp), "UPDATE `autovip` SET date = '%i-%i-%i' WHERE steamid = '%s';"year,month,day,player_authid);
        
SQL_TQuery(sqlWriteToDatabase_Handler3tmpclient);
        
    }
    
}


public 
WriteToDatabase_Handler(Handle:ownerHandle:query, const String:error[], any:client)
{
    if(
query == INVALID_HANDLE)
    {
        
LogError("Save error: %s"error);
        return;
    }
}

public 
WriteToDatabase_Handler2(Handle:ownerHandle:query, const String:error[], any:client)
{
    if(
query == INVALID_HANDLE)
    {
        
LogError("Save error: %s"error);
        return;
    }
}

public 
WriteToDatabase_Handler3(Handle:ownerHandle:query, const String:error[], any:client)
{
    if(
query == INVALID_HANDLE)
    {
        
LogError("Save error: %s"error);
        return;
    }
}



public 
bool:IsValidClient(client)
{
    if(
client >= && client <= MaxClients && IsClientInGame(client))
        return 
true;
    
    return 
false;
}


stock AdminFlag:CreateFlagLetters()
{
    new 
AdminFlag:FlagLetters[FLAG_LETTERS_SIZE];
    
    
FlagLetters['a'-'a'] = Admin_Reservation;
    
FlagLetters['b'-'a'] = Admin_Generic;
    
FlagLetters['c'-'a'] = Admin_Kick;
    
FlagLetters['d'-'a'] = Admin_Ban;
    
FlagLetters['e'-'a'] = Admin_Unban;
    
FlagLetters['f'-'a'] = Admin_Slay;
    
FlagLetters['g'-'a'] = Admin_Changemap;
    
FlagLetters['h'-'a'] = Admin_Convars;
    
FlagLetters['i'-'a'] = Admin_Config;
    
FlagLetters['j'-'a'] = Admin_Chat;
    
FlagLetters['k'-'a'] = Admin_Vote;
    
FlagLetters['l'-'a'] = Admin_Password;
    
FlagLetters['m'-'a'] = Admin_RCON;
    
FlagLetters['n'-'a'] = Admin_Cheats;
    
FlagLetters['o'-'a'] = Admin_Custom1;
    
FlagLetters['p'-'a'] = Admin_Custom2;
    
FlagLetters['q'-'a'] = Admin_Custom3;
    
FlagLetters['r'-'a'] = Admin_Custom4;
    
FlagLetters['s'-'a'] = Admin_Custom5;
    
FlagLetters['t'-'a'] = Admin_Custom6;
    
FlagLetters['z'-'a'] = Admin_Root;
    
    return 
FlagLetters;

friendziPeperoni is offline
Kellan123
AlliedModders Donor
Join Date: Aug 2012
Old 07-19-2018 , 14:09   Re: Automatic Vip Flags
Reply With Quote #2

PHP Code:
HookEvent("player_spawn"PlayerSpawn); 
to
PHP Code:
//HookEvent("player_spawn", PlayerSpawn); 
PS:
PHP Code:
public Action:testvip(clientargs

     
     
    new 
String:tmp[1024]; 
    
decl String:player_authid[32]; 
     
    if (
GetClientAuthString(clientplayer_authidsizeof(player_authid))) 
    { 
        
Format(tmpsizeof(tmp), "SELECT `verify` FROM `autovip` WHERE steamid = '%s';"player_authid); 
        
SQL_TQuery(sqltestvipcointinuetmpclient); 
    } 
     

to
PHP Code:
public Action:testvip(clientargs

    
GetDateBySteamid(client);
     
    new 
String:tmp[1024]; 
    
decl String:player_authid[32]; 
     
    if (
GetClientAuthString(clientplayer_authidsizeof(player_authid))) 
    { 
        
Format(tmpsizeof(tmp), "SELECT `verify` FROM `autovip` WHERE steamid = '%s';"player_authid); 
        
SQL_TQuery(sqltestvipcointinuetmpclient); 
    } 
     


Last edited by Kellan123; 07-19-2018 at 14:12.
Kellan123 is offline
friendziPeperoni
New Member
Join Date: Jul 2018
Old 07-19-2018 , 17:12   Re: Automatic Vip Flags
Reply With Quote #3

Not working the plugin now. I tried to change in the database to flag z for example and didnt work. And is there a way to remove the dupkey and the viptest and the plugin keeps working good?

Last edited by friendziPeperoni; 07-19-2018 at 17:12.
friendziPeperoni is offline
TrullSin
Senior Member
Join Date: Jun 2018
Old 07-21-2018 , 14:53   Re: Automatic Vip Flags
Reply With Quote #4

PHP Code:
#include <sourcemod> 
#include <sdkhooks> 
#include <sdktools> 
#include <cstrike> 

#define FLAG_LETTERS_SIZE 26 

#define MAX_PLAYERS 32  


new AdminFlag:g_FlagLetters[FLAG_LETTERS_SIZE]; 
Handle sql;                                 
char dbError[512];     

public 
Plugin:myinfo =  

    
name ""
    
author ""
    
description ""
    
version ""
    
//url = "<- URL ->" 


public 
OnPluginStart() 

    
CreateConVar("auto_vip""0.2""AUTO-DELETE FLAGS FOR TIME"FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
    
g_FlagLetters CreateFlagLetters();
    
DataBaseConnect(); 



public 
Action:PlayerSpawn(Handle:event_spawnString:name[], bool:dontBroadcast

    new 
client GetClientOfUserId(GetEventInt(event_spawn"userid")); 
    if(!
IsValidClient(client) || IsFakeClient(client)) 
        return; 
    
WriteToDatabase(client); 
    
GiveFlagBySteamid(client); 
    
UpdateTimeDatabase(client); 
    
GetDateBySteamid(client);// Every spawn Update/Delete flag,date to user   



public 
Action:GiveFlagBySteamid(client

     
    new 
String:tmp[1024]; 
    
decl String:player_authid[32]; 
     
    if (
GetClientAuthString(clientplayer_authidsizeof(player_authid))) 
    { 
        
Format(tmpsizeof(tmp), "SELECT `flags` FROM `vip` WHERE steamid = '%s';"player_authid); 
        
SQL_TQuery(sqlGiveFlagBySteamidContinuetmpclient); 
    }    
}                 

public 
GiveFlagBySteamidContinue(Handle:ownerHandle:query, const String:error[], any:client

    
decl String:player_authid[32]; 
     
    if(
query == INVALID_HANDLE
    { 
        
LogError("Load error: %s"error); 
        return; 
    } 
     
     
    if(
SQL_GetRowCount(query)) 
    { 
        new 
String:flags[64]; 
         
         
        while(
SQL_MoreRows(query)) 
        {  
             
            while(
SQL_FetchRow(query)) 
            { 
                
flags[client] = SQL_FetchString(query0flagssizeof(flags)); 
                 
                 
                
SQL_FetchString(query0flagssizeof(flags)); 
                 
                 
                if (
GetClientAuthString(clientplayer_authidsizeof(player_authid))) 
                { 
                     
                    for (new 
0strlen(flags); ++i
                    { 
                        if (
flags[i] < 'a' || flags[i] > 'z'
                            continue; 
                         
                        if (
g_FlagLetters[flags[i]-'a'] < Admin_Reservation
                            continue; 
                         
                         
                         
                        
/*new AdminId:admin; 
                        admin = AdminId:FindAdminByIdentity(dupkey, player_authid); 
                        SetAdminFlag(AdminId:admin, g_FlagLetters[flags[i]-'a'], true);*/ 
                         
                        
AddUserFlags(clientg_FlagLetters[flags[i]-'a']) 
                         
                    } 
                     
                }     
            } 
        } 
    } 
     
     


public 
Action:GetDateBySteamid(client

     
    new 
String:tmp[1024]; 
    
decl String:player_authid[32]; 
     
    if (
GetClientAuthString(clientplayer_authidsizeof(player_authid))) 
    { 
        
Format(tmpsizeof(tmp), "SELECT UNIX_TIMESTAMP(`date`), UNIX_TIMESTAMP(`expirationdate`) FROM `vip` WHERE steamid = '%s';"player_authid); 
        
SQL_TQuery(sqlGetDateBySteamidContinuetmpclient); 
    } 
     
     
}     

public 
GetDateBySteamidContinue(Handle:ownerHandle:query, const String:error[], any:client

    
decl String:player_authid[32]; 
    new 
String:tmp[1024]; 
     
    if(
query == INVALID_HANDLE
    { 
        
LogError("Load error: %s"error); 
        return; 
    } 
    if(
SQL_GetRowCount(query)) 
    { 
        new 
String:date[512]; 
        new 
String:expirationdate[512]; 
        
int dateint,expirationdateint
         
        while(
SQL_MoreRows(query)) 
        { 
             
            while(
SQL_FetchRow(query)) 
            { 
                 
                 
                
SQL_FetchString(query0datesizeof(date)); 
                
SQL_FetchString(query1expirationdatesizeof(expirationdate)); 
                 
                
dateint StringToInt(date); 
                
expirationdateint StringToInt(expirationdate); 
                
dateint = ((expirationdateint dateint)/60/60/24); 
                 
                if (
dateint >= 1
                { 
                    
PrintToChat(client"\x01[\x04VIP\x01] Your VIP will expire in \x04%i day(s)\x01",dateint); 
                     
                     
                    if (
GetClientAuthString(clientplayer_authidsizeof(player_authid))) 
                    { 
                         
                        
Format(tmpsizeof(tmp), "UPDATE `vip` SET howmanydays = '%i' WHERE steamid = '%s';"dateint,player_authid); 
                        
SQL_TQuery(sqlWriteToDatabase_Handlertmpclient); 
                         
                    } 
                } else if (
dateint <= 0
                { 
                    
Format(tmpsizeof(tmp), "UPDATE `vip` SET flags = ' ', howmanydays = '0' WHERE steamid = '%s';"player_authid); 
                    
SQL_TQuery(sqlWriteToDatabase_Handlertmpclient); 
                } 
            } 
        } 
    } 
     
     



public 
Action:DataBaseConnect() 

    
sql SQL_Connect("vip"truedbErrorsizeof(dbError)); 
    if(
sql == INVALID_HANDLE
        
PrintToServer("Could not connect: %s"dbError); 
    
SQL_LockDatabase(sql); 
    
SQL_FastQuery(sql"CREATE TABLE IF NOT EXISTS `vip` (`id` INT(11) NOT NULL AUTO_INCREMENT, `steamid` VARCHAR(48) NOT NULL, `flags` VARCHAR(48) NOT NULL, `dupkey` VARCHAR(48), `date` VARCHAR(15), `expirationdate` VARCHAR(15), `howmanydays` INT(11), `verify` INT(4) DEFAULT 0  NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `keyid` (`dupkey`,`steamid`)) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;"); 
    
SQL_UnlockDatabase(sql); 
     



public 
Action:WriteToDatabase(client

     
    new 
String:tmp[1024]; 
    
decl String:player_authid[32]; 
     
    if (
GetClientAuthString(clientplayer_authidsizeof(player_authid))) 
    { 
         
        
Format(tmpsizeof(tmp), "INSERT INTO `vip` (`steamid`,`dupkey`) VALUES ('%s','%skey');"player_authid,player_authid); 
        
SQL_TQuery(sqlWriteToDatabase_Handlertmpclient); 
         
    } 


public 
Action:UpdateTimeDatabase(client

    
int daymonthyear 
    
new String:sday[10];  
    new 
String:smonth[10];  
    new 
String:syear[10];  
     
    
FormatTime(sdaysizeof(sday), "%d"); 
    
FormatTime(smonthsizeof(smonth), "%m");
    
FormatTime(syearsizeof(syear), "%Y");
     
    
day StringToInt(sday);  
    
month StringToInt(smonth);  
    
year StringToInt(syear);  
     
    new 
String:tmp[1024]; 
    
decl String:player_authid[32]; 
     
    if (
GetClientAuthString(clientplayer_authidsizeof(player_authid))) 
    { 
         
        
Format(tmpsizeof(tmp), "UPDATE `vip` SET date = '%i-%i-%i' WHERE steamid = '%s';"year,month,day,player_authid); 
        
SQL_TQuery(sqlWriteToDatabase_Handler3tmpclient); 
         
    } 
     



public 
WriteToDatabase_Handler(Handle:ownerHandle:query, const String:error[], any:client

    if(
query == INVALID_HANDLE
    { 
        
LogError("Save error: %s"error); 
        return; 
    } 


public 
WriteToDatabase_Handler2(Handle:ownerHandle:query, const String:error[], any:client

    if(
query == INVALID_HANDLE
    { 
        
LogError("Save error: %s"error); 
        return; 
    } 


public 
WriteToDatabase_Handler3(Handle:ownerHandle:query, const String:error[], any:client

    if(
query == INVALID_HANDLE
    { 
        
LogError("Save error: %s"error); 
        return; 
    } 




public 
bool:IsValidClient(client

    if(
client >= && client <= MaxClients && IsClientInGame(client)) 
        return 
true
     
    return 
false



stock AdminFlag:CreateFlagLetters() 

    new 
AdminFlag:FlagLetters[FLAG_LETTERS_SIZE]; 
     
    
FlagLetters['a'-'a'] = Admin_Reservation
    
FlagLetters['b'-'a'] = Admin_Generic
    
FlagLetters['c'-'a'] = Admin_Kick
    
FlagLetters['d'-'a'] = Admin_Ban
    
FlagLetters['e'-'a'] = Admin_Unban
    
FlagLetters['f'-'a'] = Admin_Slay
    
FlagLetters['g'-'a'] = Admin_Changemap
    
FlagLetters['h'-'a'] = Admin_Convars
    
FlagLetters['i'-'a'] = Admin_Config
    
FlagLetters['j'-'a'] = Admin_Chat
    
FlagLetters['k'-'a'] = Admin_Vote
    
FlagLetters['l'-'a'] = Admin_Password
    
FlagLetters['m'-'a'] = Admin_RCON
    
FlagLetters['n'-'a'] = Admin_Cheats
    
FlagLetters['o'-'a'] = Admin_Custom1
    
FlagLetters['p'-'a'] = Admin_Custom2
    
FlagLetters['q'-'a'] = Admin_Custom3
    
FlagLetters['r'-'a'] = Admin_Custom4
    
FlagLetters['s'-'a'] = Admin_Custom5
    
FlagLetters['t'-'a'] = Admin_Custom6
    
FlagLetters['z'-'a'] = Admin_Root
     
    return 
FlagLetters

Untested

Last edited by TrullSin; 07-21-2018 at 14:54.
TrullSin is offline
Wanheda
Junior Member
Join Date: Oct 2017
Location: Portugal ♥
Old 07-22-2018 , 09:50   Re: Automatic Vip Flags
Reply With Quote #5

speed-on has something simillar i believe
__________________
ʙᴇɪɴɢ ʜᴀᴘᴘʏ ᴅᴏᴇsɴ'ᴛ ᴍᴇᴀɴ ᴛʜᴀᴛ ᴇᴠᴇʀʏᴛʜɪɴɢ ɪs ᴘᴇʀꜰᴇᴄᴛ
ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ𝐒𝐭𝐞𝐚𝐦
Wanheda is offline
friendziPeperoni
New Member
Join Date: Jul 2018
Old 07-22-2018 , 12:06   Re: Automatic Vip Flags
Reply With Quote #6

They dont provide the SP of the plugin.
friendziPeperoni 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 06:33.


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