hlmod.hu
https://hlmod.hu/

Mien pugin ez és mit csinál?
https://hlmod.hu/viewtopic.php?f=9&t=18833
Oldal: 1 / 3

Szerző:  alfaanero [ 2015.01.04. 11:23 ]
Hozzászólás témája:  Mien pugin ez és mit csinál?

Hello.Valaki eltudná mondani,hogy ez a plugin mit csinál?
Steam ID váltás ellen kapcsolatos?

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <hamsandwich>
  3. #include <colorchat>
  4.  
  5. new govno[33]
  6.  
  7. public plugin_init() {
  8. register_plugin("Oteraj stoku", "1", "desikac")
  9. RegisterHam(Ham_TraceAttack, "player", "tk")
  10. RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1)
  11. register_clcmd("say", "handlesay")
  12. register_clcmd("say_team", "handlesay")
  13. }
  14.  
  15. public test(id)
  16. govno[id] = 1
  17.  
  18. public client_putinserver(id) {
  19. new authid[32]
  20. get_user_authid(id, authid, 31)
  21. if(containi(authid, "STEAM_0:4") != -1)
  22. govno[id] = 1
  23.  
  24. }
  25.  
  26. public tk(victim, attacker, Float:damage, Float:direction[3], tracehandle, damagebits) {
  27. if(!is_user_connected(victim) || !is_user_connected(attacker) || victim == attacker)
  28. return HAM_IGNORED
  29.  
  30. if(govno[attacker])
  31. return HAM_SUPERCEDE
  32.  
  33. return HAM_IGNORED
  34. }
  35.  
  36. public handlesay(id){
  37.  
  38. if(!govno[id])
  39. return PLUGIN_CONTINUE
  40.  
  41. new said[192], name[30]
  42. get_user_name(id, name, 29)
  43. read_args(said,191)
  44. remove_quotes(said)
  45. new cmd[11]
  46. read_argv(0, cmd, 10)
  47.  
  48. new players[32] , inum
  49. get_players(players, inum)
  50. for(new a = 0; a < inum; ++a)
  51. if(get_user_flags(players[a]) & ADMIN_BAN)
  52. client_print(players[a], print_chat, "govno %s je reklo %s", name, said)
  53.  
  54. if(equal(cmd, "say_team"))
  55. return PLUGIN_HANDLED
  56.  
  57. ColorChat(id , NORMAL, "^3%s ^1: %s ",name, said)
  58. return PLUGIN_HANDLED
  59.  
  60. }
  61.  
  62. public client_disconnect(id)
  63. if(govno[id])
  64. govno[id] = 0
  65.  
  66. public fwHamPlayerSpawnPost(id)
  67. if(govno[id])
  68. set_task(60.0, "ubi_govno", id)
  69.  
  70. public ubi_govno(id)
  71. if(is_user_alive(id))
  72. user_kill(id)

Szerző:  TraneTommy [ 2015.01.04. 12:28 ]
Hozzászólás témája:  Re: Mien pugin ez és mit csinál?

Szerintem nem Steam ID váltással kapcsolatod:)

Szerző:  V!rusHD [ 2015.01.04. 12:32 ]
Hozzászólás témája:  Re: Mien pugin ez és mit csinál?

Szerintem meg igen.

Szerző:  mforce [ 2015.01.04. 12:35 ]
Hozzászólás témája:  Re: Mien pugin ez és mit csinál?

steam_0:4 csak a dprotoban átírt id_lan. de bannolni se lehet,ha steam-re van átírva, valve_0:4 kell :)

Szerző:  alfaanero [ 2015.01.04. 12:35 ]
Hozzászólás témája:  Re: Mien pugin ez és mit csinál?

és a status parancsot,hogy tudom blokkolni?

Szerző:  xXlederXxHUN [ 2015.01.04. 12:37 ]
Hozzászólás témája:  Re: Mien pugin ez és mit csinál?

SMA Forráskód: [ Mindet kijelol ]
  1. register_clcmd("status","blokk")


SMA Forráskód: [ Mindet kijelol ]
  1. public blokk(id) client_cmd(id, "clear")

Szerző:  alfaanero [ 2015.01.04. 12:39 ]
Hozzászólás témája:  Re: Mien pugin ez és mit csinál?

és ez?
SMA Forráskód: [ Mindet kijelol ]
  1. register_concmd("status", "BLOKKOLVA", 0, "asdasd")
  2.  
  3. public BLOKKOLVA(id)
  4. {
  5. client_print(id, print_console, "A status parancs, ezen a szerveren le van tiltva.")
  6. return PLUGIN_HANDLED
  7. }

Szerző:  mforce [ 2015.01.04. 12:43 ]
Hozzászólás témája:  Re: Mien pugin ez és mit csinál?

nem fog működni :)

Szerző:  alfaanero [ 2015.01.04. 12:50 ]
Hozzászólás témája:  Re: Mien pugin ez és mit csinál?

és valaki egy működőt tud adni?:)

Szerző:  xXlederXxHUN [ 2015.01.04. 13:06 ]
Hozzászólás témája:  Re: Mien pugin ez és mit csinál?

az enyém nem megy?

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