hlmod.hu
https://hlmod.hu/

bann
https://hlmod.hu/viewtopic.php?f=9&t=14320
Oldal: 1 / 1

Szerző:  slre141 [2014.02.09. 10:05 ]
Hozzászólás témája:  bann

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. #define PLUGIN "Ban with proof"
  5. #define VERSION "1.0.4"
  6. #define AUTHOR "[lego]F34R and re-scripted by kuddo"
  7.  
  8. static const banurl[] = ""
  9.  
  10. new Bantype
  11.  
  12. public plugin_init() {
  13. register_plugin(PLUGIN, VERSION, AUTHOR)
  14. register_concmd("amx_banshot","banwithproof",ADMIN_BAN,"<name> <time> <reason>")
  15. register_cvar("amx_banurl",banurl)
  16. Bantype = register_cvar("amx_banshot_type", "2")
  17. }
  18.  
  19.  
  20. public banwithproof(id,level,cid){
  21. if(!cmd_access(id,level,cid,2))
  22. return PLUGIN_HANDLED;
  23.  
  24. new authid[32], ipadd[32], name[32], admin_name[32], reason[32], CurrentTime[9], hostname[64] ,banurl[64]
  25. new arg[32], arg2[32], temp[2]
  26.  
  27. read_argv(1,arg,31)
  28. read_argv(2,arg2,31)
  29.  
  30. new target = cmd_target(id,arg,1)
  31.  
  32. if (!target) return PLUGIN_HANDLED
  33.  
  34. get_user_ip(target,ipadd,31)
  35. get_cvar_string("hostname",hostname,63)
  36. get_user_name(target,name,31)
  37. get_user_authid(target,authid,31)
  38. get_cvar_string("amx_banurl", banurl,63)
  39. get_user_name(id, admin_name, 31)
  40. read_argv(3, reason, 31)
  41.  
  42. log_to_file("BannedwithSS.txt"," %s | IP: %s | STEAMid: %s | ADMIN: %s | REASON: %s^n",name,ipadd,authid,admin_name,reason)
  43.  
  44. client_print(target,print_chat, "[Server] %s",hostname)
  45. client_print(target,print_chat, "[Name] %s [STEAMid] %s [IP] %s",name,authid,ipadd)
  46. client_print(target,print_chat, "[Admin] %s [Reason] %s",admin_name,reason)
  47. get_time("%m/%d/%Y - %H:%M:%S",CurrentTime,31)
  48.  
  49. client_print(target,print_chat, "[Date/Hour] %s",CurrentTime)
  50. client_print(target,print_chat, "[Website] Visit %s to be unbanned",banurl)
  51.  
  52. console_print(target,"[Server] %s",hostname)
  53. console_print(target,"[Name] %s [STEAMid] %s [IP] %s",name,authid,ipadd)
  54. console_print(target,"[Admin] %s [Reason] %s",admin_name,reason)
  55. console_print(target,"[Date/Hour] %s",CurrentTime)
  56. console_print(target,"[Website] Visit %s to be unbanned",banurl)
  57.  
  58. set_hudmessage(0, 170, 0, 0.01, 0.15, 0, 6.0, 17.0)
  59. show_hudmessage(0, "%s bannolva %s altal! Ok:%s (%d)", name, admin_name, reason, ipadd)
  60.  
  61. client_cmd(target,"wait;wait;snapshot;wait;snapshot")
  62.  
  63. temp[0] = target
  64. temp[1] = str_to_num(arg2)
  65.  
  66. set_task(0.5,"persontoban", target, temp, 2)
  67.  
  68. return PLUGIN_HANDLED
  69. }
  70.  
  71. public persontoban(arg[]){
  72. new name2[32]
  73.  
  74. new target = arg[0]
  75. new bantime = arg[1]
  76.  
  77. get_user_name(target,name2,31)
  78.  
  79. switch (get_pcvar_num(Bantype)){
  80. case 1:{
  81. server_cmd("amx_ban %s %d",name2,bantime)
  82. }
  83. case 2:{
  84. server_cmd("amx_banip %s %d",name2,bantime)
  85. }
  86. case 3:{
  87. server_cmd("amx_ban %d %s",bantime,name2)
  88. }
  89. case 4:{
  90. server_cmd("amx_say Visit %s",banurl)
  91. }
  92. }
  93.  
  94. }

Ehez a pluginhoz kell a fejlett bann plugin hogy lehesen normálisan bannolni vagy kell hozá a fejlett ban?

Szerző:  Badboy.killer [2014.02.09. 10:12 ]
Hozzászólás témája:  Re: bann

Én látok duplán, vagy tényleg kétszer szerepel a "fejlett ban" kifejezés a kérdőmondatodban?

Szerző:  slre141 [2014.02.09. 10:15 ]
Hozzászólás témája:  Re: bann

:D elirtam Nah akkor kell hozzá vagy se?

Szerző:  Badboy.killer [2014.02.09. 10:20 ]
Hozzászólás témája:  Re: bann

amúgy nem értem az ilyen kérdéseket, tedd fel a szerveredre és nézd meg, hogy lehet-e vele banolni...
ha jól látom ehhez nem kell

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