news about free vip steam

Сообщения
272
Реакции
14
Hi. How do I add a message to this plugin (gives players Steam VIP for free) that they received a VIP 3 seconds after joining the team?

Код:
#include <amxmodx>

new Forward_amxbans,iRet
 
public plugin_init() {
        Forward_amxbans= CreateMultiForward("amxbans_admin_connect",ET_IGNORE,FP_CELL)
}

public client_putinserver(id)
{
        if(is_steam(id))
        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;
}
13 Окт 2022
I can't do this. I used the "set_task" option, but then it gave everyone a VIP, and the second time it gave players a VIP steam, but the message popped up to all players.
 
Сообщения
49
Реакции
32
Hi. Try this code

Код:
#include <amxmodx>

new Forward_amxbans,iRet

public plugin_init() {
        Forward_amxbans= CreateMultiForward("amxbans_admin_connect",ET_IGNORE,FP_CELL)
        register_clcmd("joinclass","event_jointeam");
}

public event_jointeam(id)
{  
        if(!is_steam(id))
                return PLUGIN_CONTINUE;
    
        set_user_flags(id, ADMIN_LEVEL_H);
        ExecuteForward(Forward_amxbans, iRet, id);
        client_print_color(id, print_team_default, "^4Your ^3Message");
        return PLUGIN_CONTINUE;
}

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;
}
Or use set_task in event_jointeam if you want to show a message after 3 seconds
 
Последнее редактирование:
Сообщения
101
Реакции
-11
Помог
2 раз(а)
Если я не ошибаюсь, этим стоком не определит стим игрок или нет
 
  • Не нравится
Реакции: Just
Сообщения
49
Реакции
32
Nemec, если заглянуть в настройки reunion, а конкретно в графу ### AUTHID PREFIXES ### и внимательно посмотреть, то префикс STEAM_0:0 и STEAM_0:1 могут иметь только легитные игроки со стим. STEAM_ by IP будет с префиксом STEAM_0:4, все остальные STEAM_1 - STEAM_7
 
Последнее редактирование:
Сообщения
101
Реакции
-11
Помог
2 раз(а)
Не поверишь, захожу с нон стима и начало с 0:1, вечером гляну, могу заскринить
 
Сообщения
49
Реакции
32
Nemec, да, желательно бы еще с конфигом посмотреть, потому что я вижу такую картину у себя
1665683375440.png1665683391718.png
 
Сообщения
101
Реакции
-11
Помог
2 раз(а)
Вот я зашёл с пиратки, хотя в версии 1.10 с 1 начало, а в более старой с 0
 

Вложения

Сообщения
272
Реакции
14
UrShade , The problem is that the message is shown every time the player changes teams ... I prefer the message to show only once per map.
13 Окт 2022
It doesn't have to be after joining the team. It may just be 10 seconds after the server has been accessed
 
Сообщения
49
Реакции
32
pmadisson75, you need to check the user flags

Код:
#include <amxmodx>

new Forward_amxbans,iRet;

public plugin_init() {
    Forward_amxbans= CreateMultiForward("amxbans_admin_connect",ET_IGNORE,FP_CELL);
    register_clcmd("joinclass","event_jointeam");
}

public event_jointeam(id)
{ 
    if(!is_steam(id) || get_user_flags(id) & ADMIN_LEVEL_H)
        return PLUGIN_CONTINUE;
    
    set_user_flags(id, ADMIN_LEVEL_H);
    ExecuteForward(Forward_amxbans, iRet, id);
    client_print_color(id, print_team_default, "^4Your ^3Message");
    return PLUGIN_CONTINUE;
}

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;
}
 
Сообщения
272
Реакции
14
I tried, then a message popped up for everyone and everyone got a VIP ...
13 Окт 2022
Can someone make the message appear just 10 seconds after joining the server?
 
Сообщения
49
Реакции
32
Nemec, потому что dproto надо настраивать.
INI:
# 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;

# SC2009_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by Steamclient 2009
SC2009_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 = 0;

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

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

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

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

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

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

Кто вообще сейчас пользуется dproto в 2022 году? :dntknw: Ну, кроме консервативных свидетелей неиспорченной стрельбы
 
Сообщения
101
Реакции
-11
Помог
2 раз(а)
Честно не спец в настройках серверов, скинул то что наблюдал, тоесть есть случай как я указал выше
 
  • Не нравится
Реакции: Just
Сообщения
101
Реакции
-11
Помог
2 раз(а)
Так а чем это не подходит то?
Код:
stock bool:is_user_steam(id) {                                                                   
    static dp_pointer;
 
    if(dp_pointer || (dp_pointer = get_cvar_pointer("dp_r_id_provider"))) {
        server_cmd("dp_clientinfo %d", id);
        server_exec();
        return (get_pcvar_num(dp_pointer) == 2) ? true : false;
    }
    
    return false;
}
 
Сообщения
272
Реакции
14
Nemec
Код:
54.38.205.232:27020
# 2 "BLABLABLA" 410 STEAM_0:0:7925304   3 15:48   39    0
# 3 "Knight" 422 VALVE_2:0:2128058394   4 03:27   39    0
# 4 "Typowy Gebels [Jak chcesz]" 425 VALVE_2:0:1222132529   0 00:22   52    0
# 5 "Sorentino^" 423 STEAM_0:1:554649313   0 02:49   10    0
# 6 "--> No Stres <--" 424 STEAM_0:0:515717743   1 02:03   28    0
# 7 "DeltaGreen``WMFox" 409 STEAM_0:0:3402692   5 15:52   49    0
Код:
# ========================================================
#         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 = 5

# 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 = 2

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

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

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

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

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

# 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 = 2

# 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 = my_ip

# 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

# QueryFloodBanLevel (320 - 2048).
# Queries/sec level for ip ban. Maximum measured legit level is 80/sec.
# Default: 400
QueryFloodBanLevel = 400

### 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 = 2;

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

# 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 = 4;

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

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

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

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

# 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
13 Окт 2022
Player no-steam are show - valve_id, and players steam are show - steam_id :))
 
Сообщения
49
Реакции
32
Nemec, да и это тоже подходит. Оно что так будет работать, что так. Просто разный подход к проверке. Но в твоем случае, это более правильный вариант, ибо оно всегда будет определять нативных стим игроков, не смотря на установленные префиксы.
 
Сообщения
272
Реакции
14
Код:
#include <amxmodx>

new Forward_amxbans,iRet;

public plugin_init() {
    Forward_amxbans= CreateMultiForward("amxbans_admin_connect",ET_IGNORE,FP_CELL);
    register_clcmd("joinclass","event_jointeam");
}

public event_jointeam(id)
{ 
    if(!is_steam(id) || get_user_flags(id) & ADMIN_LEVEL_H)
        return PLUGIN_CONTINUE;
    
    set_user_flags(id, ADMIN_LEVEL_H);
    ExecuteForward(Forward_amxbans, iRet, id);
    set_dhudmessage(200, 100, 0, -1.0, 0.60, 0, 0.1, 5.0, 0.3, 0.5);
    show_dhudmessage(id,"Witaj!^nOtrzymales VIP-a za posiadanie konta steam! :)")
    return PLUGIN_CONTINUE;
}

stock bool:is_steam(id) {                                                                   
    static dp_pointer;
 
    if(dp_pointer || (dp_pointer = get_cvar_pointer("dp_r_id_provider"))) {
        server_cmd("dp_clientinfo %d", id);
        server_exec();
        return (get_pcvar_num(dp_pointer) == 2) ? true : false;
    }
    
    return false;
}
13 Окт 2022
UrShade ,
so should it be for correct steam verification?
p.s will the plugin work?
 
Сообщения
272
Реакции
14
There is a problem. Can't join the team now that I've changed ... players can't ...
 
Сообщения
491
Реакции
89
Помог
5 раз(а)
Dude, why u use this stock?
Код:
#include <amxmodx>

new Forward_amxbans,iRet;

public plugin_init() {
    Forward_amxbans= CreateMultiForward("amxbans_admin_connect",ET_IGNORE,FP_CELL);
    register_clcmd("joinclass","event_jointeam");
}

public event_jointeam(id)
{
    if(!is_steam(id) || get_user_flags(id) & ADMIN_LEVEL_H)
        return PLUGIN_CONTINUE;
   
    set_user_flags(id, ADMIN_LEVEL_H);
    ExecuteForward(Forward_amxbans, iRet, id);
    set_dhudmessage(200, 100, 0, -1.0, 0.60, 0, 0.1, 5.0, 0.3, 0.5);
    show_dhudmessage(id,"Witaj!^nOtrzymales VIP-a za posiadanie konta steam! :)")
    return PLUGIN_CONTINUE;
}

stock bool:is_steam(id) {                                                                  
    static dp_pointer;

    if(dp_pointer || (dp_pointer = get_cvar_pointer("dp_r_id_provider"))) {
        server_cmd("dp_clientinfo %d", id);
        server_exec();
        return (get_pcvar_num(dp_pointer) == 2) ? true : false;
    }
   
    return false;
}
13 Окт 2022
UrShade ,
so should it be for correct steam verification?
p.s will the plugin work?
13 Окт 2022
Код:
#include <reapi>

is_user_steam(id)
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу