hlmod.hu
https://hlmod.hu/

Nincs T-be Allas
https://hlmod.hu/viewtopic.php?f=10&t=17579
Oldal: 1 / 1

Szerző:  levo00 [2014.10.15. 08:42 ]
Hozzászólás témája:  Nincs T-be Allas

Sziasztok valaki ezt árírná nekem olyanra hogy ha t-be akar állni rajta CT-be ne engedje be T-be! köszi!
SMX Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <cstrike>
  3. #include <hamsandwich>
  4.  
  5. #define PLUGIN "Nincs T-be Allas"
  6. #define VERSION "1.0"
  7. #define AUTHOR "DeRoiD"
  8.  
  9. new szam = 0
  10. new marvant = 0
  11. new csapdazo[33]
  12.  
  13. public plugin_init()
  14. {
  15. register_plugin(PLUGIN, VERSION, AUTHOR)
  16. register_logevent("korveg",2,"1=Round_End")
  17. RegisterHam(Ham_Spawn, "player", "ujraeledes", 1)
  18. }
  19. public korveg()
  20. {
  21. szam = 0
  22. marvant = 0
  23.  
  24. new play[32], num
  25. get_players(play, num)
  26.  
  27. for(new i = 0; i < num; i++)
  28. csapdazo[i] = 0
  29. }
  30. public ujraeledes(id)
  31. {
  32. if(is_user_bot(id) || cs_get_user_team(id) == CS_TEAM_CT)
  33. return PLUGIN_CONTINUE
  34.  
  35. szam++
  36.  
  37. if(szam >= 2 && marvant != 0)
  38. {
  39. cs_set_user_team(id, CS_TEAM_CT)
  40. client_print(id,print_chat,"[Deathrun] Tilos a T-be allni! (Plugin By : DeRoiD)")
  41. user_silentkill(id)
  42. }
  43. else
  44. {
  45. marvant = 1
  46. csapdazo[id] = 1
  47. }
  48. return PLUGIN_CONTINUE
  49. }
  50. public client_disconnect(id)
  51. {
  52. if(csapdazo[id] == 1)
  53. marvant = 0
  54. }

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