hlmod.hu
https://hlmod.hu/

amx_banshot
https://hlmod.hu/viewtopic.php?f=10&t=7246
Oldal: 1 / 1

Szerző:  DanComment [ 2013.01.23. 16:46 ]
Hozzászólás témája:  amx_banshot

Sziasztok! Az lenne a kérdésem hogy valaki ezt át tudná írni úgy hogy mikor megcsinálnja a pillanat képet akkor a szöveg a képen zölden jelenjen meg? És amikor bannolok valakit akkor Hud-on radar alatt írja ki a ban t? név idő ok , ki bannolta stb.. (zölden) a válaszokat előre is köszi! :D (ha valaki csak egy részét tudja megcsinálni nekem úgy is jó egyenlőre :D )

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. client_cmd(target,"wait;wait;snapshot;wait;snapshot")
  59.  
  60. temp[0] = target
  61. temp[1] = str_to_num(arg2)
  62.  
  63. set_task(0.5,"persontoban", target, temp, 2)
  64.  
  65. return PLUGIN_HANDLED
  66. }
  67.  
  68. public persontoban(arg[]){
  69. new name2[32]
  70.  
  71. new target = arg[0]
  72. new bantime = arg[1]
  73.  
  74. get_user_name(target,name2,31)
  75.  
  76. switch (get_pcvar_num(Bantype)){
  77. case 1:{
  78. server_cmd("amx_ban %s %d",name2,bantime)
  79. }
  80. case 2:{
  81. server_cmd("amx_banip %s %d",name2,bantime)
  82. }
  83. case 3:{
  84. server_cmd("amx_ban %d %s",bantime,name2)
  85. }
  86. case 4:{
  87. server_cmd("amx_say Visit %s",banurl)
  88. }
  89. }
  90.  
  91. }
  92.  

Szerző:  dontercfg [ 2013.03.16. 08:10 ]
Hozzászólás témája:  Re: amx_banshot

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. ColorChat(id,GREEN, "[Server] %s",hostname)
  45. ColorChat(id,GREEN, "[Name] %s [STEAMid] %s [IP] %s",name,authid,ipadd)
  46. ColorChat(id,GREEN, "[Admin] %s [Reason] %s",admin_name,reason)
  47. get_time("%m/%d/%Y - %H:%M:%S",CurrentTime,31)
  48.  
  49. ColorChat(id,GREEN, "[Date/Hour] %s",CurrentTime)
  50. ColorChat(id,GREEN, "[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. client_cmd(target,"wait;wait;snapshot;wait;snapshot")
  59.  
  60. temp[0] = target
  61. temp[1] = str_to_num(arg2)
  62.  
  63. set_task(0.5,"persontoban", target, temp, 2)
  64.  
  65. return PLUGIN_HANDLED
  66. }
  67.  
  68. public persontoban(arg[]){
  69. new name2[32]
  70.  
  71. new target = arg[0]
  72. new bantime = arg[1]
  73.  
  74. get_user_name(target,name2,31)
  75.  
  76. switch (get_pcvar_num(Bantype)){
  77. case 1:{
  78. server_cmd("amx_ban %s %d",name2,bantime)
  79. }
  80. case 2:{
  81. server_cmd("amx_banip %s %d",name2,bantime)
  82. }
  83. case 3:{
  84. server_cmd("amx_ban %d %s",bantime,name2)
  85. }
  86. case 4:{
  87. server_cmd("amx_say Visit %s",banurl)
  88. }
  89. }
  90.  
  91. }


Nem tudom, hogy működik-e..

Szerző:  DanComment [ 2013.03.16. 08:14 ]
Hozzászólás témája:  Re: amx_banshot

dontercfg írta:
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. ColorChat(id,GREEN, "[Server] %s",hostname)
  45. ColorChat(id,GREEN, "[Name] %s [STEAMid] %s [IP] %s",name,authid,ipadd)
  46. ColorChat(id,GREEN, "[Admin] %s [Reason] %s",admin_name,reason)
  47. get_time("%m/%d/%Y - %H:%M:%S",CurrentTime,31)
  48.  
  49. ColorChat(id,GREEN, "[Date/Hour] %s",CurrentTime)
  50. ColorChat(id,GREEN, "[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. client_cmd(target,"wait;wait;snapshot;wait;snapshot")
  59.  
  60. temp[0] = target
  61. temp[1] = str_to_num(arg2)
  62.  
  63. set_task(0.5,"persontoban", target, temp, 2)
  64.  
  65. return PLUGIN_HANDLED
  66. }
  67.  
  68. public persontoban(arg[]){
  69. new name2[32]
  70.  
  71. new target = arg[0]
  72. new bantime = arg[1]
  73.  
  74. get_user_name(target,name2,31)
  75.  
  76. switch (get_pcvar_num(Bantype)){
  77. case 1:{
  78. server_cmd("amx_ban %s %d",name2,bantime)
  79. }
  80. case 2:{
  81. server_cmd("amx_banip %s %d",name2,bantime)
  82. }
  83. case 3:{
  84. server_cmd("amx_ban %d %s",bantime,name2)
  85. }
  86. case 4:{
  87. server_cmd("amx_say Visit %s",banurl)
  88. }
  89. }
  90.  
  91. }


Nem tudom, hogy működik-e..

Huh azt már nem tudom mit akartam ezzel de ha már fáradtál vele köszi ! :D :)

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