Raised This Month: $12 Target: $400
 3% 

Taking suggestions


Post New Thread Reply   
 
Thread Tools Display Modes
EFFx
Veteran Member
Join Date: Feb 2016
Location: Sγo Paulo, Brasil
Old 05-02-2023 , 13:04   Re: Taking suggestions
Reply With Quote #51

Exactly. Also I don't plan on killing myself like that, the game is already too dead for me to waste my time that much. The version with this top15 is already being used and is stable, people like the way it is and I wont create too many things anymore, just improvements in the code.

Last thing I want to do is pagination, but I have very little time to learn.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
MAJESTIC_SZ
Senior Member
Join Date: Mar 2020
Location: Portugal
Old 05-03-2023 , 19:48   Re: Taking suggestions
Reply With Quote #52

Well, i didn't knew about his plugin.
Has mlibre mentioned, i use gameme on my server.
We all know all the features it has.
But i would love to test this plugin on my server.
How can i use it?
Dα uma ajuda aν irmγo, aqui para Portugal
MAJESTIC_SZ is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: Sγo Paulo, Brasil
Old 05-04-2023 , 02:35   Re: Taking suggestions
Reply With Quote #53

Caso tiver interessado me chama no discord lα, ta no final da minha assinatura. Tenho IP de vαrios servidores usando ele, assim vocκ pode ver como funciona.

Take a look at my signature and contact me via discord. I've got a lot of servers for you to see how it looks like.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: Sγo Paulo, Brasil
Old 05-07-2023 , 06:59   Re: Taking suggestions
Reply With Quote #54




Pagination added. Also, by using media queries, the motd resizes itself completely to display the whole statistics without having to scroll in any direction.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 05-07-2023 at 07:25.
EFFx is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: Sγo Paulo, Brasil
Old 05-10-2023 , 09:24   Re: Taking suggestions
Reply With Quote #55

Added an ini file in which Servers Owners can customize Rank, Levels and SQL connection informations for themselves:

Code:
[SQL CONFIG]
SQL_AFFINITY = sqlite
SQL_HOST = 127.0.0.1
SQL_USER = root
SQL_PASS = 
SQL_DB_NAME = effex_ranksystem

[LEVEL LIST]
"Newbie" "0" "za"
"Silver I" "5400" "zb"
"Silver II" "7200" "zc"
"Silver III" "8400" "zd"
"Silver IV" "12000" "ze"
"Silver V" "15600" "zf"
"Silver Elite" "19200" "zg"
"Gold Nova I" "30000" "zh"
"Gold Nova II" "48000" "zi"
"Gold Nova III" "84000" "zj"
"Gold Nova Master" "132000" "zk"
"Master Guardian I" "156000" "zl"
"Master Guardian II" "210000" "zm"
"Master Guardian Elite" "270000" "zn"
"DMG" "390000" "zo"
"Legendary Eagle" "510000" "zp"
"Legendary Eagle Master" "600000" "zq"
"Supreme" "2100000" "zr"
"The Global Elite" "3000000" "zs"

[RANK LIST]
"Recruit" "0" "xa"
"Soldier I" "2400" "xb"
"Soldier II" "4800" "xc"
"Soldier III" "10800" "xd"
"Cape I" "14400" "xe"
"Cape II" "18000" "xf"
"Cape III" "21000" "xg"
"IV Cable" "24000" "xh"
"3rd Sergeant I" "30000" "xi"
"3rd Sergeant II" "33000" "xj"
"3rd Sergeant III" "39000" "xk"
"3rd Sergeant IV" "48000" "xl"
"2nd Sergeant I" "57000" "xm"
"2nd Sergeant II" "72000" "xn"
"2nd Sergeant III" "96000" "xo"
"2nd Sergeant IV" "132000" "xp"
"1st Sergeant I" "192000" "xq"
"1st Sergeant II" "246000" "xr"
"1st Sergeant III" "330000" "xs"
"1st Sergeant IV" "450000" "xu"
"Warrant Officer" "570000" "xv"
"Aspiring Officer I" "630000" "xw"
"Aspiring Officer II" "840000" "xx"
"Aspiring Officer III" "960000" "xy"
"Captain I" "1080000" "xz"
"Captain II" "1200000" "ya"
"Captain III" "1320000" "yb"
"Captain IV" "1440000" "yc"
"Major I" "1500000" "yd"
"Major II" "1560000" "ye"
"Major III" "1680000" "yf"
"Major IV" "1740000" "yg"
"Colonel I" "1800000" "yh"
"Colonel II" "1920000" "yi"
"Colonel III" "2040000" "yj"
"Brigadier General" "2160000" "yk"
"General Major" "2280000" "yl"
"Division General" "2400000" "ym"
"General" "2520000" "yn"
"General Global" "3000000" "yo"
More configurations are coming soon, such as VIP support and others.
All MOTDs designs rezises themselves by using media queries. So, no matter your resolution, all informations will be displayed correctly.
Also, it displays your real life name ^^

__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 05-10-2023 , 13:18   Re: Taking suggestions
Reply With Quote #56

did you do all the css yourself?
pretty impressive
__________________
bigdaddy424 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: Sγo Paulo, Brasil
Old 05-10-2023 , 13:48   Re: Taking suggestions
Reply With Quote #57

Thank you. I started the project using a css already built by another creator, it was simple and did not have much options due MOTD char limit. But as soon as I understood how CSS and HTML works, it was a game changer when I started writing it on PHP. You see what it led me to.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 05-10-2023 at 13:50.
EFFx is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: Sγo Paulo, Brasil
Old 05-18-2023 , 03:10   Re: Taking suggestions
Reply With Quote #58

Web Support finished.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: Sγo Paulo, Brasil
Old 05-24-2023 , 10:49   Re: Taking suggestions
Reply With Quote #59

Updated the web support designs and informations. Also, changed the PHP format to connect to the servers and retrieve the datas, as the old one was too slow, click here to check.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: Sγo Paulo, Brasil
Old 05-27-2023 , 09:54   Re: Taking suggestions
Reply With Quote #60

System Updated



Added more options inside the .ini file to edit the system's features. Main settings:
Code:
[SQL CONFIG]
# SQL Connection settings
# Put here your SQL connection data for the rank system to connect in

SQL_HOST =	 	127.0.0.1
SQL_USER = 		root
SQL_PASS = 		
SQL_DB_NAME = 		ranksystem

[XP Settings]
# XP Settings
# Put here the ammount of XP of each event

DEFAULT_XP = 		100
HEADSHOT_XP = 		125
BOMB_PLANT_XP = 	200
BOMB_DEFUSED_XP = 	200
BOMB_EXPLOSION_XP = 	200
ROUND_WIN_XP = 		150
ACTIVITY_XP = 		100
FLASH_ASSIST_XP = 	50
ASSIST_XP = 		50
KNIFE_KILL_XP = 	85
BLIND_KILL_XP = 	75
GRENADE_KILL_XP = 	60
SUICIDE_XP = 		50
MVP_XP = 		400

[Settings]
# Misc settings for some events and bonus for players throughout the gameplay

# The main URL the system will load the files from
MAIN_URL = 		

# The .php postfix in case you want to have different top15 data 
# without having to change the MAIN_URL
FILE_PREFIX = 		

# Assist toggle (Use 1 to activate and 0 to turn off)
ASSIST_TOGGLE = 	1

# Number of frags players will receive when assisting
ASSIST_FRAGS = 		1

# Active bonus check delay in seconds (default 10 minutes)
ACTIVE_DELAY = 		600

# Number of min players necessary for statistics save
SQLSAVE_MIN_PLAYERS = 	10

# Assist min damage
ASSIST_MIN_DAMAGE	40

# Spawn info hud toggle (Use 1 to activate and 0 to turn off)
SPAWN_HUD = 		1

# Spawn Hud colors in RGB
SPAWN_HUD_COLOR = 	200 	80 	30

# Spawn Hud position X and Y (horizontal and vertical)
SPAWN_HUD_POSITION =	0.02 	0.15

# End of round MVP display toggle (Use 1 to activate and 0 to turn off).
MVP_HUD = 		1

# End of round MVP display colors in RGB
MVP_HUD_COLOR = 	random 	random 	random

# End of round MVP display position X and Y (horizontal and vertical)
MVP_HUD_POSITION =	-1.0 	0.2

# XP bonus chat messages toggle (Use 1 to activate and 0 to turn off)
CHAT_INFO_MESSAGES = 	1

# Level up sound directory
LEVEL_UP_SOUND = 	ranksystem/levelup.wav

# Level down sound directory
LEVEL_DOWN_SOUND = 	ranksystem/leveldown.wav

# Required flag access to have an Admin Color on the top15
PHP_ADMIN_FLAG =	d

# Required flag access to have an VIP Color on the top15
PHP_VIP_FLAG =		t

# Required flag access to have an Owner Color on the top15
PHP_OWNER_FLAG =	a

# Menu Prefix on all menus
MENUS_TITLE = 		\rEFFEX Rank System\w

# ---------------------------------------------------
# ---------- RANK AND LEVELS CONFIGURATIONS ----------
# ---------------------------------------------------

[LEVEL LIST]
# Level List
# Manage here the name and the xp required for each level
# the last parameters CANNOT be changed.

"Newbie" "0" "za"
"Silver I" "5400" "zb"
"Silver II" "7200" "zc"
"Silver III" "8400" "zd"
"Silver IV" "12000" "ze"
"Silver V" "15600" "zf"
"Silver Elite" "19200" "zg"
"Gold Nova I" "30000" "zh"
"Gold Nova II" "48000" "zi"
"Gold Nova III" "84000" "zj"
"Gold Nova Master" "132000" "zk"
"Master Guardian I" "156000" "zl"
"Master Guardian II" "210000" "zm"
"Master Guardian Elite" "270000" "zn"
"DMG" "390000" "zo"
"Legendary Eagle" "510000" "zp"
"Legendary Eagle Master" "600000" "zq"
"Supreme" "2100000" "zr"
"The Global Elite" "3000000" "zs"

[RANK LIST]
# Manage here the name and the xp required for each rank
# the last parameters CANNOT be changed.

"Recruit" "0" "xa"
"Soldier I" "2400" "xb"
"Soldier II" "4800" "xc"
"Soldier III" "10800" "xd"
"Cape I" "14400" "xe"
"Cape II" "18000" "xf"
"Cape III" "21000" "xg"
"IV Cable" "24000" "xh"
"3rd Sergeant I" "30000" "xi"
"3rd Sergeant II" "33000" "xj"
"3rd Sergeant III" "39000" "xk"
"3rd Sergeant IV" "48000" "xl"
"2nd Sergeant I" "57000" "xm"
"2nd Sergeant II" "72000" "xn"
"2nd Sergeant III" "96000" "xo"
"2nd Sergeant IV" "132000" "xp"
"1st Sergeant I" "192000" "xq"
"1st Sergeant II" "246000" "xr"
"1st Sergeant III" "330000" "xs"
"1st Sergeant IV" "450000" "xu"
"Warrant Officer" "570000" "xv"
"Aspiring Officer I" "630000" "xw"
"Aspiring Officer II" "840000" "xx"
"Aspiring Officer III" "960000" "xy"
"Captain I" "1080000" "xz"
"Captain II" "1200000" "ya"
"Captain III" "1320000" "yb"
"Captain IV" "1440000" "yc"
"Major I" "1500000" "yd"
"Major II" "1560000" "ye"
"Major III" "1680000" "yf"
"Major IV" "1740000" "yg"
"Colonel I" "1800000" "yh"
"Colonel II" "1920000" "yi"
"Colonel III" "2040000" "yj"
"Brigadier General" "2160000" "yk"
"General Major" "2280000" "yl"
"Division General" "2400000" "ym"
"General" "2520000" "yn"
"General Global" "3000000" "yo"
Chat settings:

Code:
# Configuration tips for Tag Formats:
# FLAG = tags by flag
# example: FLAG = "c" "[Admin]" = tags with c flag
# -

# STEAM = tags by steam
# example: STEAM = "STEAM_" "[Admin]" = tags for steam

# IP = tags by ip
# example: IP = "IP" "[Admin]" = tags for ip

# NAME = tags by name
# example: NAME = "Name" "[Admin]" = tags for name

# ---------------------------- Tag Formats ------------------------------

FLAG = "a" "{green}[Owner]"
FLAG = "c" "{green}[Admin]"
FLAG = "t" "{green}[VIP]"

# ---------------------------- Default Formats ---------------------------------
# Avaliable custom tags to display on the chat:
# {kills}, {kd}, {headshots}, {levelname}, {level}, {rank}, {rankname}
#
# also, you can use {customtag} key to display your own custom tag
# make sure you use erank_set_customtag() native
# with the custom tag you want to display on chat.

SAY_ALLCHAT = 0
SAY_TEAM_ALLCHAT = 1

TERRORIST = "(Terrorists)"
COUNTER-TERRORIST = "(Counter-Terrorists)"

FORMAT_MESSAGE_PLAYER = "{tag} {green}[+{kills}] {team-color}{name}: {normal}{message}"
FORMAT_MESSAGE_PLAYER_DEAD = "{normal}*DEAD* {green}[+{kills}] {team-color}{name}: {normal}{message}"
FORMAT_MESSAGE_PLAYER_TEAM = "{normal}{team} {green}[+{kills}] {team-color}{name}: {normal}{message}"
FORMAT_MESSAGE_PLAYER_TEAM_DEAD = "{team} {normal}*DEAD* {tag} {green}[+{kills}] {team-color}{name}: {normal}{message}"

FORMAT_MESSAGE_ADMIN = "{tag} {green}[+{kills}] {team-color}{name}: {green}{message}"
FORMAT_MESSAGE_ADMIN_DEAD = "{normal}*DEAD* {green}[+{kills}] {tag} {team-color}{name}: {green}{message}"
FORMAT_MESSAGE_ADMIN_TEAM = "{normal}{team} {green}[+{kills}] {tag} {team-color}{name}: {green}{message}"
FORMAT_MESSAGE_ADMIN_TEAM_DEAD = "{normal}{team} {normal}*DEAD* {green}[+{kills}] {tag} {team-color}{name}: {green}{message}"
There are natives avaliable for users to communicate with the system as well:

PHP Code:
/*     Gets the user's rank position
*    @id        the user's identification
*/
native erank_get_position(id)

/*     Gets the user's level number
*    @id        the user's identification
*/
native erank_get_level(id)

/*     Gets the user's rank number
*    @id        the user's identification
*/
native erank_get_rank(id)

/*     Gets the user's XP ammount
*    @id        the user's identification
*/
native erank_get_userxp(id)

/*     Completely reset user's data
*    @id        the user's identification
*/
native erank_reset_user_data(id)

/*     Returns the user's current level name
*    @id        the user's identification
*    @szLevelName    the string that will be formated
*    @iLen        string's length
*/
native erank_get_levelname(idszLevelName[], iLen)

/*     Returns the user's current rank name
*    @id        the user's identification
*    @szRankName    the string that will be formated
*    @iLen        string's length
*/
native erank_get_rankname(idszRankName[], iLen)

/*     Get a specified user's data
*    @id        the user's identification
*    @iUserData    specified data to get info from
*/
native erank_get_userdata(idpPlayerData:iUserData)

/*     Set a specified user's data
*    @id        the user's identification
*    @iUserData    specified data to get info from
*    @iValue        value
*/
native erank_set_userdata(idpPlayerData:iUserDataiValue)

/*     Sets the user's XP ammount
*    @id        the user's identification
*    @iXpAmmount    ammount of XP
*/
native erank_set_userxp(idiXpAmmount)

/*     Sets a custom tag property for players
*    @id        the user's identification
*    @szCustomTag    custom tag string
*/
native erank_set_customtag(idszCustomTag[]) 
Avaliable commands to use on the system:

PHP Code:
erank_alter_column = <column name> <condition> <value> - change column values
erank_delete_column 
= <column name> - delete a column
erank_create_column 
= <column name> <varchar or int> <num> - create a new column
erank_give_player_xp 
= <name> <XP ammount (use negative values to take from or 0 to reset)> <automatically calculates kills and deaths based on the XP added (1|0)>
erank_reset_prefixes the name explain's itself. 
Simple example on how to use the natives by giving a certain flag to users depending of their's rank position:

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

#define PLUGIN "EFFEX Rank system: Flags"
#define VERSION "1.0"
#define AUTHOR "author"

enum arData
{
    
szRequiredLevel[5],
    
szFlag[32]
}

new Array:
g_arIniFlags

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn"player""playerSpawn"1)
    
    
g_arIniFlags ArrayCreate(arData)
    
readIniFile()
}

public 
playerSpawn(id)
{
    for(new 
iarrayData[arData];ArraySize(g_arIniFlags);i++)
    {
        
ArrayGetArray(g_arIniFlagsiarrayData)
        if(
erank_get_level(id) >= str_to_num(arrayData[szRequiredLevel]))
        {
            
set_user_flags(idread_flags(arrayData[szFlag]))
            
remove_user_flags(idread_flags("z"))
        }
    }
}

readIniFile()
{
    new 
szConfigsName[256],szFilename[256];
    
get_configsdir(szConfigsName255);
    
formatex(szFilenamecharsmax(szFilename), "%s/erank_flags.ini"szConfigsName);
    
    new 
iFile fopen(szFilename"r")
    if(!
iFile)
    {
        new 
szFmt[100]
        
formatex(szFmtcharsmax(szFmt), "Archive ^"%s^" does not exist!"szFilename)
        
set_fail_state(szFmt)
    }
    
    while (!
feof(iFile))
    {
        new 
szBuffer[512], szKey[5], szValue[32], arrayData[arData]

        
fgets(iFileszBuffercharsmax(szBuffer))
        
trim(szBuffer)
        
        if(
szBuffer[0] == EOS || szBuffer[0] == ';' || szBuffer[0] == '#' || (szBuffer[0] == '/' && szBuffer[1] == '/'))
            continue
        
        
strtok(szBufferszKeycharsmax(szKey), szValuecharsmax(szValue), '=')

        
trim(szKey)
        
trim(szValue)
        
        
copy(arrayData[szRequiredLevel], charsmax(arrayData[szRequiredLevel]), szKey)
        
copy(arrayData[szFlag], charsmax(arrayData[szFlag]), szValue)

        
ArrayPushArray(g_arIniFlagsarrayData)
    }
    
fclose(iFile)

erank_flags.ini:

Code:
; On level 5 = gives abcd flags
5 = abcd
Another example by giving T flag (normally used for VIPS) for top3 players:

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <effex_ranksystem>

#define PLUGIN "EFFEX Rank system: Top3 VIP"
#define VERSION "1.0"
#define AUTHOR "author"

#define REQUIRED_FLAG    ADMIN_LEVEL_H

const MIN_POSITION 3

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn"player""playerSpawn"1)
}

public 
playerSpawn(id)
{
    if((
erank_get_position(id) >= MIN_POSITION) && !(get_user_flags(id) & REQUIRED_FLAG))
    {
        
set_user_flags(idREQUIRED_FLAG)
        
remove_user_flags(idread_flags("z"))
    }

Ty.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 05-27-2023 at 13:41.
EFFx 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 03:45.


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