hlmod.hu

Magyar Half-Life Mód közösség!
Pontos idő: 2024.06.06. 23:48



Jelenlévő felhasználók

Jelenleg 222 felhasználó van jelen :: 1 regisztrált, 0 rejtett és 221 vendég

A legtöbb felhasználó (1565 fő) 2020.11.21. 11:26-kor tartózkodott itt.

Regisztrált felhasználók: Google [Bot] az elmúlt 5 percben aktív felhasználók alapján

Utoljára aktív
Ahhoz hogy lásd ki volt utoljára aktív, be kell jelentkezned.



Az oldal teljeskörű
használatához regisztrálj.

Regisztráció

Kereső


Új téma nyitása  Hozzászólás a témához  [ 25 hozzászólás ]  Oldal 1 2 3 Következő
Szerző Üzenet
 Hozzászólás témája: Admin_check [ Nem megy a plugin ] HELP!
HozzászólásElküldve: 2013.05.11. 14:54 
Offline
Tud valamit

Csatlakozott: 2013.01.21. 10:10
Hozzászólások: 138
Megköszönt másnak: 20 alkalommal
Megköszönték neki: 6 alkalommal
Sziasztok. Valamiért nem fut le a plugin a szerómon... Aki tud az legyen szíves segítsen.

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2.  
  3. /*---------------EDIT ME------------------*/
  4. #define ADMIN_CHECK ADMIN_KICK
  5.  
  6. static const COLOR[] = "^x04" //green
  7. static const CONTACT[] = ""
  8. /*----------------------------------------*/
  9.  
  10. new maxplayers
  11. new gmsgSayText
  12.  
  13. public plugin_init() {
  14. register_plugin("Admin Check", "1.51", "OneEyed")
  15. maxplayers = get_maxplayers()
  16. gmsgSayText = get_user_msgid("SayText")
  17. register_clcmd("say", "handle_say")
  18. }
  19.  
  20. public handle_say(id) {
  21. new said[192]
  22. read_args(said,192)
  23. if( ( containi(said, "who") != -1 && containi(said, "admin") != -1 ) || contain(said, "/admin") != -1 )
  24. set_task(0.1,"print_adminlist",id)
  25. return PLUGIN_CONTINUE
  26. }
  27.  
  28. public print_adminlist(user)
  29. {
  30. new adminnames[33][32]
  31. new message[256]
  32. new id, count, x, len
  33.  
  34. for(id = 1 ; id <= maxplayers ; id++)
  35. if(is_user_connected(id))
  36. if(get_user_flags(id) & ADMIN_CHECK)
  37. get_user_name(id, adminnames[count++], 31)
  38.  
  39. len = format(message, 255, "%s Ne[X]oR Adminok: ",COLOR)
  40. if(count > 0) {
  41. for(x = 0 ; x < count ; x++) {
  42. len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"")
  43. if(len > 96 ) {
  44. print_message(user, message)
  45. len = format(message, 255, "%s ",COLOR)
  46. }
  47. }
  48. print_message(user, message)
  49. }
  50. else {
  51. len += format(message[len], 255-len, "Admin hivasa => fb.com/nexor.clan => LIKE!")
  52. print_message(user, message)
  53. }
  54.  
  55. }
  56.  
  57. print_message(id, msg[]) {
  58. message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id)
  59. write_byte(id)
  60. write_string(msg)
  61. message_end()
  62. }
  63. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  64. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
  65. */
  66. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  67. *{\\ rtf1\\ ansi\\ ansicpg1250\\ deff0\\ deflang1038{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
  68. */
  69.  


Aki segít, megy a köszönöm :)

_________________
See you next time! :)

Ha hasznosnak találtad a hozzászólásomat, köszönd meg a Kép lenyomásával..!! :)


Hozzászólás jelentése
Vissza a tetejére
   
HozzászólásElküldve: 2013.05.11. 15:52 
Offline
Őskövület
Avatar

Csatlakozott: 2011.09.17. 17:54
Hozzászólások: 2350
Megköszönt másnak: 40 alkalommal
Megköszönték neki: 57 alkalommal
Írd konzolba: amx_plugins,keresd meg és nézd meg mit ír neki,majd írd le ide.


Hozzászólás jelentése
Vissza a tetejére
   
HozzászólásElküldve: 2013.05.11. 16:04 
Offline
Tud valamit

Csatlakozott: 2013.01.21. 10:10
Hozzászólások: 138
Megköszönt másnak: 20 alkalommal
Megköszönték neki: 6 alkalommal
VirTuaL ~` írta:
Írd konzolba: amx_plugins,keresd meg és nézd meg mit ír neki,majd írd le ide.


Dupla post :D

Ezt írja:

SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. unknown unknown unknown admin_check.amx bad load

_________________
See you next time! :)

Ha hasznosnak találtad a hozzászólásomat, köszönd meg a Kép lenyomásával..!! :)


Hozzászólás jelentése
Vissza a tetejére
   
HozzászólásElküldve: 2013.05.11. 16:21 
Offline
Őskövület
Avatar

Csatlakozott: 2011.09.17. 17:54
Hozzászólások: 2350
Megköszönt másnak: 40 alkalommal
Megköszönték neki: 57 alkalommal
Error logot másold be.


Hozzászólás jelentése
Vissza a tetejére
   
HozzászólásElküldve: 2013.05.11. 16:35 
Offline
Tud valamit

Csatlakozott: 2013.01.21. 10:10
Hozzászólások: 138
Megköszönt másnak: 20 alkalommal
Megköszönték neki: 6 alkalommal
VirTuaL ~` írta:
Error logot másold be.



Megtaláltam :D


ITT A LOG:

SMA Forráskód: [ Mindet kijelol ]
  1. STEAM Auth Server
  2.  
  3. couldn't exec listip.cfg
  4. couldn't exec banned.cfg
  5. Enabling LOWDELAY TOS option
  6. Server IP address 91.82.84.189:27023
  7.  
  8. Metamod version 1.19p32 Copyright (c) 2001-2006 Will Day
  9. Patch: Metamod-P (mm-p) v32 Copyright (c) 2004-2007 Jussi Kivilinna
  10. Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'.
  11. This is free software, and you are welcome to redistribute it
  12. under certain conditions; type `meta gpl' for details.
  13.  
  14.  
  15. AMX Mod X version 1.8.2-dev Copyright (c) 2004-2006 AMX Mod X Development Team
  16. AMX Mod X comes with ABSOLUTELY NO WARRANTY; for details type `amxx gpl'.
  17. This is free software and you are welcome to redistribute it under
  18. certain conditions; type 'amxx gpl' for details.
  19.  
  20. [DPROTO]: Version 0.9.87 Linux
  21. [DPROTO]: Loading config './cstrike/dproto.cfg'
  22. [DPROTO]: LoggingMode = 2
  23. [DPROTO]: Config sucessfully loaded.
  24. [DPROTO]: Done.
  25. scandir failed:/servers/members/retech/server1/SAVE
  26. scandir failed:/servers/members/retech/server1/./valve/SAVE
  27. scandir failed:/servers/members/retech/server1/./platform/SAVE
  28. L 05/11/2013 - 14:47:59: -------- Mapchange to de_dust2 --------
  29. L 05/11/2013 - 14:47:59: [AMXX] Invalid Plugin (plugin "admin_check.amxx")
  30. L 05/11/2013 - 14:47:59: [AMXX] Invalid Plugin (plugin "advanced_rs.amxx")
  31. [AMXX] 1 ADMIN betoltve a file-bol.
  32. L 05/11/2013 - 14:47:59: Invalid multi-lingual line (file "cstrike/addons/amxmodx/data/lang/lame_connection_punisher.txt" line 1)
  33. Looking up breakpad interfaces from steamclient
  34. Calling BreakpadMiniDumpSystemInit
  35.  
  36. Executing AMX Mod X Configuration File
  37. Mozgo uzenet: 10:00 percenkent
  38. maxplayers cannot be changed while a server is running.
  39. couldn't exec listip.cfg
  40. couldn't exec banned.cfg
  41. Menu item 17 added to Menus Front-End: "Plugin Cvars" from plugin "pluginmenu.amxx"
  42. Menu item 18 added to Menus Front-End: "Plugin Commands" from plugin "pluginmenu.amxx"
  43. Connection to Steam servers successful.
  44. VAC secure mode is activated.
  45. MasterRequestRestart
  46. Your server needs to be restarted in order to receive the latest update.
  47. L 05/11/2013 - 14:48:07: [admin.amxx] Login: "*tOrNaDo --> OwNeD`<1><STEAM_0:1:53715213><>" became an admin (account "STEAM_0:1:53715213") (access "abcdefghijklmnopqrstu") (address "84.2.248.55")
  48. Ignoring custom decal from *tOrNaDo --> OwNeD`
  49. *tOrNaDo --> OwNeD` : /rs
  50. MasterRequestRestart
  51. Your server needs to be restarted in order to receive the latest update.
  52. MasterRequestRestart
  53. Your server needs to be restarted in order to receive the latest update.
  54. Dropped *tOrNaDo --> OwNeD` from server
  55. Reason: Client sent 'drop'
  56. MasterRequestRestart
  57. Your server needs to be restarted in order to receive the latest update.
  58. MasterRequestRestart
  59. Your server needs to be restarted in order to receive the latest update.
  60. MasterRequestRestart
  61. Your server needs to be restarted in order to receive the latest update.
  62. MasterRequestRestart
  63. Your server needs to be restarted in order to receive the latest update.
  64. MasterRequestRestart
  65. Your server needs to be restarted in order to receive the latest update.
  66. MasterRequestRestart
  67. Your server needs to be restarted in order to receive the latest update.
  68. MasterRequestRestart
  69. Your server needs to be restarted in order to receive the latest update.
  70. MasterRequestRestart
  71. Your server needs to be restarted in order to receive the latest update.
  72. MasterRequestRestart
  73. Your server needs to be restarted in order to receive the latest update.
  74. MasterRequestRestart
  75. Your server needs to be restarted in order to receive the latest update.
  76. MasterRequestRestart
  77. Your server needs to be restarted in order to receive the latest update.
  78. MasterRequestRestart
  79. Your server needs to be restarted in order to receive the latest update.
  80. MasterRequestRestart
  81. Your server needs to be restarted in order to receive the latest update.
  82. MasterRequestRestart
  83. Your server needs to be restarted in order to receive the latest update.
  84. L 05/11/2013 - 16:02:54: [admin.amxx] Login: "*tOrNaDo --> OwNeD`<2><STEAM_0:1:53715213><>" became an admin (account "STEAM_0:1:53715213") (access "abcdefghijklmnopqrstu") (address "84.2.248.55")
  85. MasterRequestRestart
  86. Your server needs to be restarted in order to receive the latest update.
  87. Ignoring custom decal from *tOrNaDo --> OwNeD`
  88. Dropped *tOrNaDo --> OwNeD` from server
  89. Reason: Client sent 'drop'
  90. MasterRequestRestart
  91. Your server needs to be restarted in order to receive the latest update.
  92. MasterRequestRestart
  93. Your server needs to be restarted in order to receive the latest update.
  94. MasterRequestRestart
  95. Your server needs to be restarted in order to receive the latest update.
  96. MasterRequestRestart
  97. Your server needs to be restarted in order to receive the latest update.
  98. MasterRequestRestart
  99. Your server needs to be restarted in order to receive the latest update.
  100. MasterRequestRestart
  101. Your server needs to be restarted in order to receive the latest update.
  102. 1
  103.  

_________________
See you next time! :)

Ha hasznosnak találtad a hozzászólásomat, köszönd meg a Kép lenyomásával..!! :)


Hozzászólás jelentése
Vissza a tetejére
   
HozzászólásElküldve: 2013.05.11. 17:03 
Offline
Őskövület
Avatar

Csatlakozott: 2011.09.17. 17:54
Hozzászólások: 2350
Megköszönt másnak: 40 alkalommal
Megköszönték neki: 57 alkalommal
Nézd meg beraktad-e a plugint a plugins mappába. Ha igen,akkor hibás az amxx fájl,alakítsd át te magad a kódot és jó lesz.


Hozzászólás jelentése
Vissza a tetejére
   
HozzászólásElküldve: 2013.05.11. 18:07 
Offline
Tud valamit

Csatlakozott: 2013.01.21. 10:10
Hozzászólások: 138
Megköszönt másnak: 20 alkalommal
Megköszönték neki: 6 alkalommal
VirTuaL ~` írta:
Nézd meg beraktad-e a plugint a plugins mappába. Ha igen,akkor hibás az amxx fájl,alakítsd át te magad a kódot és jó lesz.



Nem megy :( Megnéznéd nekem hogy jó e a forráskód? Előre is köszi.

_________________
See you next time! :)

Ha hasznosnak találtad a hozzászólásomat, köszönd meg a Kép lenyomásával..!! :)


Hozzászólás jelentése
Vissza a tetejére
   
HozzászólásElküldve: 2013.05.11. 18:21 
Offline
Őskövület
Avatar

Csatlakozott: 2011.09.17. 17:54
Hozzászólások: 2350
Megköszönt másnak: 40 alkalommal
Megköszönték neki: 57 alkalommal
Adj forráskódot.


Hozzászólás jelentése
Vissza a tetejére
   
HozzászólásElküldve: 2013.05.11. 18:29 
Offline
Tud valamit

Csatlakozott: 2013.01.21. 10:10
Hozzászólások: 138
Megköszönt másnak: 20 alkalommal
Megköszönték neki: 6 alkalommal
VirTuaL ~` írta:
Adj forráskódot.



Tessék:

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2.  
  3. /*---------------EDIT ME------------------*/
  4. #define ADMIN_CHECK ADMIN_KICK
  5.  
  6. static const COLOR[] = "^x04" //green
  7. static const CONTACT[] = ""
  8. /*----------------------------------------*/
  9.  
  10. new maxplayers
  11. new gmsgSayText
  12.  
  13. public plugin_init() {
  14. register_plugin("Admin Check", "1.51", "OneEyed")
  15. maxplayers = get_maxplayers()
  16. gmsgSayText = get_user_msgid("SayText")
  17. register_clcmd("say", "handle_say")
  18. }
  19.  
  20. public handle_say(id) {
  21. new said[192]
  22. read_args(said,192)
  23. if( ( containi(said, "who") != -1 && containi(said, "admin") != -1 ) || contain(said, "/admin") != -1 )
  24. set_task(0.1,"print_adminlist",id)
  25. return PLUGIN_CONTINUE
  26. }
  27.  
  28. public print_adminlist(user)
  29. {
  30. new adminnames[33][32]
  31. new message[256]
  32. new id, count, x, len
  33.  
  34. for(id = 1 ; id <= maxplayers ; id++)
  35. if(is_user_connected(id))
  36. if(get_user_flags(id) & ADMIN_CHECK)
  37. get_user_name(id, adminnames[count++], 31)
  38.  
  39. len = format(message, 255, "%s Ne[X]oR Adminok: ",COLOR)
  40. if(count > 0) {
  41. for(x = 0 ; x < count ; x++) {
  42. len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"")
  43. if(len > 96 ) {
  44. print_message(user, message)
  45. len = format(message, 255, "%s ",COLOR)
  46. }
  47. }
  48. print_message(user, message)
  49. }
  50. else {
  51. len += format(message[len], 255-len, "Admin hivasa => fb.com/nexor.clan => LIKE!")
  52. print_message(user, message)
  53. }
  54.  
  55. }
  56.  
  57. print_message(id, msg[]) {
  58. message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id)
  59. write_byte(id)
  60. write_string(msg)
  61. message_end()
  62. }
  63. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  64. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
  65. */
  66. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  67. *{\\ rtf1\\ ansi\\ ansicpg1250\\ deff0\\ deflang1038{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
  68. */
  69.  
  70.  

_________________
See you next time! :)

Ha hasznosnak találtad a hozzászólásomat, köszönd meg a Kép lenyomásával..!! :)


Hozzászólás jelentése
Vissza a tetejére
   
HozzászólásElküldve: 2013.05.11. 18:35 
Offline
Őskövület
Avatar

Csatlakozott: 2011.09.17. 17:54
Hozzászólások: 2350
Megköszönt másnak: 40 alkalommal
Megköszönték neki: 57 alkalommal
http://amx.freakz.ro/ alakítsd itt át és cseréled le az amxx filet.


Hozzászólás jelentése
Vissza a tetejére
   
Hozzászólások megjelenítése:  Rendezés  
Új téma nyitása  Hozzászólás a témához  [ 25 hozzászólás ]  Oldal 1 2 3 Következő


Ki van itt

Jelenlévő fórumozók: nincs regisztrált felhasználó valamint 13 vendég


Nyithatsz új témákat ebben a fórumban.
Válaszolhatsz egy témára ebben a fórumban.
Nem szerkesztheted a hozzászólásaidat ebben a fórumban.
Nem törölheted a hozzászólásaidat ebben a fórumban.
Nem küldhetsz csatolmányokat ebben a fórumban.

Keresés:
Ugrás:  
Powered by phpBB® Forum Software © phpBB Limited
Magyar fordítás © Magyar phpBB Közösség
Portal: Kiss Portal Extension © Michael O'Toole