PHP- 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))
}
Bunu kur, oyuncular oyuna girince configs klasöründeki debugx.txt dosyasının içeriğini kopyala. Sorunu öyle anlarız