Arkadaşlar sizden istediğim sadece NON-STEAM oyuncu serverimize girebilecek.
Yani Fake-Steam ve Gerçek Steam oyuncuları oyundan atsın giremesin.
Dproto kapatsakta giriyorlar nasılsa?
Printable View
Arkadaşlar sizden istediğim sadece NON-STEAM oyuncu serverimize girebilecek.
Yani Fake-Steam ve Gerçek Steam oyuncuları oyundan atsın giremesin.
Dproto kapatsakta giriyorlar nasılsa?
emin değilim ama bir dene. Olmazsa farklı bir şey deneriz. Steamin ne zararı var anlamadım ama :D
PHP- Kodu:
#include <amxmodx>
public plugin_init() {
register_plugin("No Steam Access", "1.0", "akcaliberkk")
}
public client_authorized(id) {
new szAuthID[32];
get_user_authid(id,szAuthID,31)
if(!equali(szAuthID,"VALVE_ID_LAN")
&& !equali(szAuthID,"STEAM_ID_LAN")
&& (containi(szAuthID,"PENDING") == -1)) {
server_cmd("kick #%d ^"Sadece Non-Steam Hesaplar Girebilir^"",get_user_userid(id))
}
}
deniyorum bi saniye
Niye biliyor musun? Bizim HNS Modunda Fake-Steam ile hile açıyorlar. Bu yüzden STEAM yoluyla engellenecek
olmadı. Sadece Non-Steam girilsin istiyorum
Non-steam serverların nasıl davranacağını kestirmek zor. Şuan kendim deneyemiyorum hldsupdatetool falan uzun iş.
Serverına önce steam ile girip status yaz. Ordan authid kısmında ne yazıyor gönder. Bir de steamsiz girip aynısını yapıp gönder.
CounterMerkezi serverinden biri işte.
Non-Steam'da: STEAM_ID_LAN
Steamda:
+Orjinal Steamlar;
STEAM_0:1:53641345
STEAM_0:1:50167505
+Fake Steamlar;
STEAM_0:0:904214129
STEAM_0:0:727529438
STEAM_0:0:303418764
STEAM_0:1:139
STEAM_0:1:145
Öyleyse çalışması lazım. Hata göremiyorum eklentide ?
Bir de böyle dene
Server'da deniyorsun değil mi ?PHP- Kodu:
#include <amxmodx>
public plugin_init() {
register_plugin("No Steam Access", "1.0", "akcaliberkk")
}
public client_authorized(id) {
new szAuthID[32];
get_user_authid(id,szAuthID,31)
if(!equali(szAuthID,"STEAM_ID_LAN")){
set_task(3.0,"Kick",id+345)
}
}
public Kick(id) {
id -= 345;
if(is_user_connected(id)) server_cmd("kick #%d ^"Sadece Non-Steam Hesaplar Girebilir^"",get_user_userid(id))
}
sonuç:
# 1 "Karaoglan." 534 STEAM_0:0:194108443 0 19:55 24 0
# 2 "[ IP: 46.45.172.11 ]" 600 BOT 0 2:05:36 0 0
# 3 "[ fb.com/JumpersGaming ]" 601 BOT 0 2:05:36 0 0
# 4 "[ Skype: DelyPower ]" 602 BOT 0 2:05:36 0 0
# 5 "oK-By |# N1qhTmaRe* [C]" 567 STEAM_ID_LAN 0 11:41 40 0
# 6 "Ryum vol 1" 564 STEAM_ID_LAN 0 11:54 26 1
# 7 "XXCCAA [EXTREME] vol 0" 570 STEAM_ID_LAN 0 10:53 18 0
# 8 "SIRFINTI" 543 STEAM_ID_LAN 0 18:24 42 0
# 9 "oK-By |# DuffyDuck* [C]" 589 STEAM_ID_LAN 0 04:34 49 0
#10 "E [fLameLine-]" 501 STEAM_ID_LAN 0 30:34 53 0
#11 "selcof" 569 STEAM_ID_LAN 0 11:34 15 0
#13 "FDFDFGD" 604 STEAM_ID_LAN 0 00:04 0 0
#15 "CheaR" 603 STEAM_ID_LAN 0 00:06 17 0
#16 "Realfriend | Berkay-" 568 STEAM_ID_LAN 0 11:36 35 0
#17 "xR. <jumpers>" 598 STEAM_0:1:50167505 0 00:14 34 0
#21 "S" 590 STEAM_ID_LAN 0 03:47 44 3
:D yani ben steamdan giriyorum şuan
edit olarak kick yerine banip yapıyorum bilgin olsun
yani;
PHP- Kodu:
#include <amxmodx>
public plugin_init() {
register_plugin("No Steam Access", "1.0", "akcaliberkk")
}
public client_authorized(id) {
new szAuthID[32];
get_user_authid(id,szAuthID,31)
if(!equali(szAuthID,"STEAM_ID_LAN")){
set_task(3.0,"Kick",id+345)
}
}
public Kick(id) {
id -= 345;
if(is_user_connected(id)) server_cmd("banip #%d 0 ^"Sadece Non-Steam Hesaplar Girebilir^"",get_user_userid(id))
}
kick yapıp denedin mi hiç ?
kick sonuç; :D
yani olmadı.PHP- Kodu:
# name userid uniqueid frag time ping loss adr
# 6 "OGUZ-HAN x" 927 STEAM_ID_LAN 0 00:47 49 0
# 7 ":." 857 STEAM_ID_LAN 0 21:17 47 0
# 8 "SIRFINTI" 662 STEAM_ID_LAN 0 1:11:15 34 0
# 9 "Ho$naF" 925 STEAM_ID_LAN 0 00:48 15 0
#10 ">>!!Omer!!<<" 895 STEAM_0:1:412 0 07:04 27 0
#11 "MuCK" 897 STEAM_0:0:1967542964 0 06:51 46 1
#13 "SaLaKK" 919 STEAM_ID_LAN 0 01:52 35 0
#14 "xR. <jumpers>" 926 STEAM_0:1:50167505 0 00:48 46 0
#15 "SAKA*" 826 STEAM_ID_LAN 0 31:15 42 0
#16 "Ryum vol 1" 873 STEAM_ID_LAN 0 14:30 30 0
Bunu kur, oyuncular oyuna girince configs klasöründeki debugx.txt dosyasının içeriğini kopyala. Sorunu öyle anlarızPHP- Kodu:
#include <amxmodx>
new const file[] = "addons/amxmodx/configs/debugx.txt";
public plugin_init() {
register_plugin("No Steam Access", "1.0", "akcaliberkk")
if(!file_exists(file)) {
new f = fopen(file,"wt");
fclose(f)
}
}
public client_authorized(id) {
new szAuthID[32];
get_user_authid(id,szAuthID,31)
new name[32]; get_user_name(id,name,31)
new linetxt[128]; formatex(linetxt,127,"Player Connected & Authorized : %s SteamID: %s",name,szAuthID)
write_file(file,linetxt)
if(!equali(szAuthID,"STEAM_ID_LAN")){
formatex(linetxt,127,"Player Kicked %s, SteamID: %s",name,szAuthID)
write_file(file,linetxt)
set_task(3.0,"Kick",id+345)
}
formatex(linetxt,127,"Player %s ! end of debug",name)
write_file(file,linetxt)
}
public Kick(id) {
id -= 345;
if(is_user_connected(id)) server_cmd("kick #%d ^"Sadece Non-Steam Hesaplar Girebilir^"",get_user_userid(id))
}
debugs.txt dosyası oluşmadı ki?
O zaman sorun belli. Eklenti çalışır durumda değil :D
amx_plugins yaz çalışıp çalışmadığını kontrol et
debugs değil bu arada debugx
NOT: J_NoSteam.amxx adı :DPHP- Kodu:
Ban Kaldirma Menu 1.0 XrouRamein CM-BanKaldirma. running
rCon Fix2 1.0 xR. rConFix.amxx running
Jumpers: No Steam 1.0 akcaliberkk J_NoSteam.amxx running
Jumpers: Yasakli 1.0 xR. J_KomutEngellem running
Jumpers: Chat 1.0 xR. J_Allchat.amxx running
Jumpers: Auto Res 1.0 xR. J_AutoRestart.a running
Jumpers: Oto Taki 1.0 xR. J_AutoTeam.amxx running
Jumpers: Auto Bin 1.0 xR. J_Binds.amxx running
Jumpers: Block Ni 1.0 xR. J_BlockNick.amx running
Jumpers: Boost Me 1.0 xR. J_Boost.amxx running
Jumpers: Block Cv 1.0 xR. J_CvarGuard.amx running
Jumpers: Eb JB St 1.0 xR. J_EbStats.amxx running
Jumpers: FrostNad 1.0 xR. J_Frostnades.am running
Jumpers: GBSD 1.0 xR. J_GBSD.amxx running
Jumpers: Mod 1.0 xR. J_HideNSeek.amxx running
Jumpers: SpecList 1.0 xR. J_izleyici.amxx running
Jumpers: Kufur 1.0 xR. J_kufur.amxx running
Jumpers: Flood Fi 1.0 xR. J_NoFlood.amxx running
Jumpers: Death Ef 1.0 xR. J_Olum.amxx running
Jumpers: Entitys 1.0 xR. J_Remover_Entit running
Jumpers: ResetSco 1.0 xR. J_ResetScore.am running
Jumpers: Reservas 1.0 xR. J_Rezervasyon.a running
Jumpers: Spawn 1.0 xR. J_Spawns.amxx running
Jumpers: SpecBot 1.0 xR. J_SpecBot.amxx running
Jumpers: SpecBot 1.0 xR. J_SpecBot2.amxx running
Jumpers: SpecBot 1.0 xR. J_SpecBot3.amxx running
Jumpers: Stats 1.0 xR. J_Stats.amxx running
Jumpers: Stats To 1.0 xR. J_Stats_Top.amx running
Emin misin debugx.txt adlı bir dosya olmadığına ? Yani olmamasına imkan yok :D Son verdiğim eklentiyi kurduğuna emin misin ?
aynen ftpye baktım debugx.txt isimli dosya oluşturmamış.
Ben de şimdi denedim şüphelenip acaba bir şey mi eksik diye. Dosya oluşuyor. Sende bir sorun var ama hiç bir fikrim yok neden olmuyor. Son verdiğim sma nın ismini değiştirip öyle kur bir de. Emin ol amx_pluginste eklentinin isminin de değiştiğine
eminim. birde hldsden denicem.
HLDS konsoldan şöyle bir uyarı geldi.
"[AMX Mod X] Unknown id type "a", use one of: steamid, ip, name"
Fakat benim cstrike p47 olduğu için deneyemiyorum steamla :D
ben de giremiyorum hlds servera steamle o yüzden deneyemiyorum. Ancak plugin debugx.txt dosyasını oluşturabiliyor.
Player Connected & Authorized : aq SteamID: STEAM_ID_LAN
Oyuncu: aq, end of debug
HLDS'den gelen kopyalama bu herneyse.
Yalnız sanırsam FTP izinleri engelliyor olabilir eklenti için?
İşte bu yazıların o dosyada yazması lazımdı :) Evet izinlerden de olabilir. Bu da yeterli yine. Burda STEAM_ID_LAN lı steamid nin kontrolden başarılı olarak geçtiğini söylüyor.
Bu yazının bir de steamli oyuncuda olanını gösterirmisin
p48 li cstrike dosyasını nerden bulucam şimdi :D
yanına debug yazdık serverda debugx.txt dosyası oluştu.
debugx.txt & J_SteamBan.sma
Şunu hiç editlemeden bir kurar mısın . Yazısını dahi değiştirme. Bu şekilde çalışıyo görünüyorPHP- Kodu:
#include <amxmodx>
public plugin_init() {
register_plugin("No Steam Access", "1.0", "akcaliberkk")
}
public client_authorized(id) {
new szAuthID[32];
get_user_authid(id,szAuthID,31)
if(!equali(szAuthID,"STEAM_ID_LAN")){
set_task(3.0,"Kick",id+345)
}
}
public Kick(id) {
id -= 345;
if(is_user_connected(id)) server_cmd("kick #%d ^"Sadece Non-Steam Hesaplar Girebilir^"",get_user_userid(id))
}
Çözülmüş İsteklere taşındı.
Protocol 49 kurun
Sağol Ellerine Sağlık...