hlmod.hu
https://hlmod.hu/

auto kick
https://hlmod.hu/viewtopic.php?f=29&t=13466
Oldal: 1 / 1

Szerző:  Applee [ 2013.12.25. 15:36 ]
Hozzászólás témája:  auto kick

Sziasztok!
Kérhetek 1 olyan plugint, hogy akinek HLTV ID-je van, azt kickeli?

Szerző:  NiGGeR-BorZ [ 2013.12.25. 15:45 ]
Hozzászólás témája:  Re: auto kick

https://forums.alliedmods.net/showthread.php?t=134741

Szerző:  Applee [ 2013.12.25. 16:30 ]
Hozzászólás témája:  Re: auto kick

Felrakod az SMA-t?
Mert hiába beregisztrálok, és tölteném le az SMA-t de semmi..

Szerző:  norbexx_13 [ 2013.12.27. 08:49 ]
Hozzászólás témája:  Re: auto kick

Applee írta:
Felrakod az SMA-t?
Mert hiába beregisztrálok, és tölteném le az SMA-t semmit..

Tessék:
SMA Forráskód: [ Mindet kijelol ]
  1. /*
  2. Anti HLTV by Lulu the hero
  3.  
  4. With this plugin you can simply keep out HLTV servers from your map.
  5.  
  6. CVARs:
  7.  - anti_hltv <0|1> //keep kicking out hltv servers. 0=off, 1=on, default value is 0
  8. */
  9.  
  10. #include <amxmodx>
  11.  
  12. new pcvar_anti_hltv;
  13.  
  14. public plugin_init(){
  15. register_plugin("Anti HLTV","1.1","Lulu the hero");
  16.  
  17. pcvar_anti_hltv = register_cvar("anti_hltv","0");
  18. }
  19.  
  20. //someone is trying to connect to the server, filter out HLTV by name
  21. public client_connect(id){
  22. /*static name[32], pos;
  23. name[0] = 0;
  24.  
  25. //is the plugin enabled?
  26. if(get_pcvar_num(pcvar_anti_hltv)==1){
  27.  
  28. //get the players name
  29. get_user_name(id, name, sizeof name-1);
  30.  
  31. //check, whether the name contains the HLTV string, and get it's pos
  32. pos = contain(name,"HLTV");
  33.  
  34. //if it's at the beginning
  35. if(pos == 0){
  36.  
  37. //then print out some info
  38. console_print(id,"HLTV not allowed on this server!");
  39.  
  40. //and kick the user
  41. console_cmd(id,"disconnect");
  42. }
  43. }*/
  44. // code by:Emp0wer
  45. if(get_pcvar_num(pcvar_anti_hltv) && is_user_hltv(id))
  46. server_cmd("kick #%d ^"HLTV not allowed on this server!^"",get_user_userid(id))
  47. }
  48. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  49. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
  50. */
  51.  

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