AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Advanced Bans (Real Time) by Exolent (https://forums.alliedmods.net/showthread.php?t=80858)

ZEDD_Intensity 01-20-2019 06:47

Re: Advanced Bans (Real Time) by Exolent
 
Quote:

Originally Posted by VINAGHOST (Post 2635608)
It work!

Thanks ._.

I'm happy it worked for you! Have fun with that!

Kind Regards,
ZEDD

VINAGHOST 01-20-2019 06:51

Re: Advanced Bans (Real Time) by Exolent
 
@ZEDD_Intensity

But I have problem in search tool.
It lead me to http://vinastudio.dynu.net/banlist/# in all case.

Can you fix it ?

ZEDD_Intensity 01-20-2019 08:59

Re: Advanced Bans (Real Time) by Exolent
 
Quote:

Originally Posted by VINAGHOST (Post 2635611)
@ZEDD_Intensity

But I have problem in search tool.
It lead me to http://vinastudio.dynu.net/banlist/# in all case.

Can you fix it ?

Read the reply below

VINAGHOST 01-20-2019 10:33

Re: Advanced Bans (Real Time) by Exolent
 
Quote:

Originally Posted by ZEDD_Intensity (Post 2635631)
Just tested and works totally fine for me. I see you've translated some stuff to Vietnamese, which is perfectly okay. But you should still have just a second look at your file if you edited something wrong in a critical field.
And for the link - sub.domain.net/banlist/# - that "#" is totally okay, what's more important here is the page displaying the search results, which your page apparently doesn't. Heavy changes can lead to a broken search function.

Update : Tested again with the uncensored fix I gave you, at this point, I feel safe to say that the file has no issues with the search tool itself, and so it's probably one of the changes you've made that are somehow interfering with the search function resulting in an empty result. So by default, the file is confirmed to be fine.

Best,
ZEDD

I found it !
In this line (line 255) , you use wrong table. It is victim_name not name.

PHP Code:

$query1 'SELECT * FROM advanced_bans where   === >>> name <<< ===  like "'.$search.'%" ORDER BY banlength DESC' 

After I change, it work perfectly ._.

ZEDD_Intensity 01-20-2019 10:38

Re: Advanced Bans (Real Time) by Exolent
 
Quote:

Originally Posted by VINAGHOST (Post 2635650)
I found it !
In this line (line 255) , you use wrong table. It is victim_name not name.

PHP Code:

$query1 'SELECT * FROM advanced_bans where   === >>> name <<< ===  like "'.$search.'%" ORDER BY banlength DESC' 

After I change, it work perfectly ._.

Ah, good catch. Can't believe I missed that myself. I'm happy it's all good for you now. Reason why it worked for me is because my table is 'name' and so that one really went unnoticed.

Updated in the Original Post.

Regards,
ZEDD

flowem 01-21-2019 05:15

Re: Advanced Bans (Real Time) by Exolent
 
Hi, everything works, but there is 1 thing that I really don't understand.
When I ban someone, there are some Vietnamese letters in chat (in console too), says that ADMIN banned user, but in VIETNAMESE? I don't get this.
I am using LinuxGSM, is there the problem?

And yea, Cvar "ab_website" was set to some Vietnamese Facebook page...

VINAGHOST 01-22-2019 07:59

Re: Advanced Bans (Real Time) by Exolent
 
Quote:

Originally Posted by flowem (Post 2635741)
Hi, everything works, but there is 1 thing that I really don't understand.
When I ban someone, there are some Vietnamese letters in chat (in console too), says that ADMIN banned user, but in VIETNAMESE? I don't get this.
I am using LinuxGSM, is there the problem?

And yea, Cvar "ab_website" was set to some Vietnamese Facebook page...

I know it's too late but this guy downloaded my .sma file above so that is why he get Vietnamese letters. And he contacted me to ask this question, I and him have solved this problem together ._.

ZEDD_Intensity 01-22-2019 08:21

Re: Advanced Bans (Real Time) by Exolent
 
Quote:

Originally Posted by flowem (Post 2635741)
Hi, everything works, but there is 1 thing that I really don't understand.
When I ban someone, there are some Vietnamese letters in chat (in console too), says that ADMIN banned user, but in VIETNAMESE? I don't get this.
I am using LinuxGSM, is there the problem?

And yea, Cvar "ab_website" was set to some Vietnamese Facebook page...

Hey,

The sma file attached in an above post by VINAGHOST is only for testing some stuff out and is not officially for "Public Use". Discard the file.

You should always download plugin sources from their respective main posts. In this case, download advanced_bans_sql.sma from the main post here.

Regards

Titus 01-24-2019 10:11

Re: Advanced Bans (Real Time) by Exolent
 
Hi there i do have a problem with this .. im Having "ReHLDS" with reunion
Code:

# ========================================================
#                REUNION CONFIGURATION
# ========================================================

#
# General rule for modifying this file:
#        DONT CHANGE ANYTHING IF YOU DONT KNOW WHAT IT MEANS!
#


# ========================================================
#                AUTHID MANAGEMENT
# ========================================================

# ClientID types (for cid_* options)
#  1: Real (or generated by HW) steam (STEAM_xx:xx:xx)
#  2: Real (or generated by HW) valve (VALVE_xx:xx:xx)
#  3: STEAM_ by IP
#  4: VALVE_ by IP
#  5: Deprecated - client will be rejected
#  6: reserved for future use
#  7: HLTV
#  8: STEAM_ID_LAN
#  9: STEAM_ID_PENDING
#  10: VALVE_ID_LAN
#  11: VALVE_ID_PENDING
#  12: STEAM_666:88:666

# Use these options to set authid's for clients

### AUTH CONTROL ###

# For Legit Steam clients (default is real STEAM_xx:xx:xx [1])
cid_Steam = 1

# Client recognized as pending when they sucessfully authorized, but did not get steam id
# REMARK: Actually, it got steamid, but it is useless (STEAM_0:0:0 for example)
# default is STEAM_ID_PENDING [9]
cid_SteamPending = 9

# for HLTV (default is HLTV [7])
cid_HLTV = 7

# for p.47 clients that do not support unique id generation (default is STEAM_ID_LAN [8])
cid_NoSteam47 = 4

# for p.48 clients that do not support unique id generation (default is VALVE_ID_LAN [10])
cid_NoSteam48 = 4

# For players having revEmu ( >= 9.74) on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_RevEmu = 4

# For players having RevEmu 2013 on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_RevEmu2013 = 4

# For players having SteamClient 2009 / revEmu > 9.82 on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_SC2009 = 4

# For players having old revEmu on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_OldRevEmu = 4

# For players having hCupa's SteamEmu on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_SteamEmu = 4

# For players having AVSMP (Cracked Steam) on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_AVSMP = 4

# For SETTI ServerScanner
# default is STEAM_xx:xx:xx generated by IP [3]
cid_Setti = 4

# For SXEI Clients
# default is real STEAM_xx:xx:xx [1]
cid_SXEI = 4

# For players having SmartSteamEmu > 1.2.4 on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_SSE3 = 1


### AUTH SETTINGS ###

# ServerInfoAnswerType (0/1/2)
# Sets server answer type for query requests
#  0 = New style (Source Engine)
#  1 = Old Style (Fix favorites list for p.47 clients)
#  2 = Hybrid mode - Server is visible anywhere, but there are 3 packets generated for every serverinfo request
ServerInfoAnswerType = 2

# EnableSXEIdGeneration (0 / 1)
# Turns on steamid generation based on info sent by sXeI client
# Enable this ONLY if you have sXeI server installed!
EnableSXEIdGeneration = 0

# SC2009_RevCompatMode (0 / 1)
# Enable fix to make steamids generated for SC2009 compatible with revEmu
SC2009_RevCompatMode = 1

# SteamIdHashSalt (string)
# Salt string for SteamIDs hashing. Irreversibly changes SteamIDs. Applies only to SteamIDs generated by emulators.
# Should be more than 16 chars length. If string is empty, hashing is not applied.
SteamIdHashSalt =

# SteamIdHashDProtoCompat (0 / 1)
# Use less reliable method of SteamID hashing from dproto (deprecated).
SteamIdHashDProtoCompat = 0

# EnableGenPrefix2 (0 / 1)
# Enable second prefix (0 or 1) for generated by HW authids. Reduces chance of authid collisions. Works only with configured SteamIdHashSalt.
EnableGenPrefix2 = 0

# FixBuggedQuery (0 / 1)
# Enable fix for clients with bugged serverbrowser. Prevents hanging on connect.
FixBuggedQuery = 1

# HLTVExcept_IP (ip addr)
# HLTV from this IP will be able to join the server even if cid_HLTV is set to 5 (deprecated)
HLTVExcept_IP = 127.0.0.1

# EnableQueryLimiter (0 / 1)
# Enable ratelimit for server queries (TSource, players, etc). You can use 0 if external protection solutions used.
EnableQueryLimiter = 0

# QueryFloodBanTime (0 - 60).
# Ban time in minutes for server query flooding. Use 0 to disable bans (block only).
QueryFloodBanTime = 0


### AUTHID PREFIXES ###

# IPGen_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by IP
IPGen_Prefix1 = 0

# IPGen_Prefix2 (int)
# STEAM_a:b:c
# second prefix (b) for authids generated by IP
IPGen_Prefix2 = 4

# Native_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by native auth method (Steam)
Native_Prefix1 = 0;

# RevEmu_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by RevEmu
RevEmu_Prefix1 = 0;

# RevEmu2013_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by RevEmu2013
RevEmu2013_Prefix1 = 1;

# SC2009_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by Steamclient 2009
SC2009_Prefix1 = 1;

# OldRevEmu_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by old RevEmu
OldRevEmu_Prefix1 = 2;

# SteamEmu_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by SteamEmu
SteamEmu_Prefix1 = 3;

# SteamEmu_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids assigned for AVSMP Clients (Cracked steam)
AVSMP_Prefix1 = 4;

# Setti_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids assigned for Setti server scanner
Setti_Prefix1 = 5;

# SXEI_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids assigned for sXeI clients
SXEI_Prefix1 = 6;

# SSE3_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids assigned for SSE3
SSE3_Prefix1 = 7;

# Note that banid will use steamid WITHOUT any prefixes!


# ========================================================
#                OTHER STUFF
# ========================================================

# LoggingMode:
#  0 = None
#  1 = Console
#  2 = Log Files
#  3 = Both
LoggingMode = 0

im using this 2 commands: amx_ban name minutes reason and it said: You cannot ban this name, is not autorize from the server, it cant be banned! and also amx_addban when i typed its constantly repeat me use :
Value: amx_addban <name> <authid or ip> <time in minutes> <reason>

all users have unique id: valve_0_xxx/xxx and steam_0_xxx_xxx but this plugin doesnt recognize the valve ones, its all protected.. with steam clients work perfectly.

Example how it looks in console when i type status:


# name userid uniqueid frag time ping loss adr
# 1 "turbomelcul" 1 VALVE_0:4:748185584 0 00:18 11 0
# 2 "Flavius" 2 STEAM_0:1:39279603 0 00:12 5 0
2 users

Mordekay 01-24-2019 18:10

Re: Advanced Bans (Real Time) by Exolent
 
no-steam = no support


All times are GMT -4. The time now is 05:43.

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