hlmod.hu
https://hlmod.hu/

Steam_id_lan tiltása
https://hlmod.hu/viewtopic.php?f=108&t=27953
Oldal: 1 / 1

Szerző:  longhorn [ 2017.07.15. 13:02 ]
Hozzászólás témája:  Steam_id_lan tiltása

Hali!

olyan kérdésem lenne, hogy a STEAM_ID_LAN-t hogyan tudom tiltani a szerverről úgy, hogy steamidvel rendelkező tört kliensek tudjanak csatlakozni?? A szerveren rehlds van, ha ez könnyebbíti a dolgot...

Válaszokat előre is köszi :)

Szerző:  norbee.16 [ 2017.07.15. 15:08 ]
Hozzászólás témája:  Re: Steam_id_lan tiltása

  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. #define PLUGIN "STEAM ID-vel nem rendelkezők tiltása"
  5. #define VERSION "1.0"
  6. #define AUTHOR "IrOn"
  7.  
  8.  
  9. public plugin_init() {
  10.     register_plugin(PLUGIN, VERSION, AUTHOR)
  11. }
  12.  
  13. public client_connect(id)
  14. {
  15.     new steamid[33];
  16.     get_user_authid(id, steamid, 32)
  17.     if(containi(steamid, "VALVE_ID_LAN")  != -1 || containi(steamid, "STEAM_ID_LAN") != -1 || containi(steamid, "HLTV") != -1)
  18.     {
  19.         server_cmd("kick #%d ^"Tölts le másik Klienst!^"", get_user_userid(id));
  20.     }
  21.    }

Szerző:  regener [ 2017.07.15. 17:18 ]
Hozzászólás témája:  Re: Steam_id_lan tiltása

Egyszerűbb ha a dproto.cfg vagy reunion.cfg-ben átírod hogy fel se engedje őket:
Kód:
# for p.47 clients that do not support unique id generation (default is STEAM_ID_LAN [8])
cid_NoSteam47 = 8

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

->
Kód:
# for p.47 clients that do not support unique id generation (default is STEAM_ID_LAN [8])
cid_NoSteam47 = 5

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

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/