hlmod.hu
https://hlmod.hu/

Respawn
https://hlmod.hu/viewtopic.php?f=29&t=13120
Oldal: 1 / 1

Szerző:  TraneTommy [2013.12.07. 15:50 ]
Hozzászólás témája:  Respawn

Sziasztok!
Egy olyan plugint keresek ami a kör első pár másodperceiben újra éleszti azt aki meghalt.
Az elv ugyan az mint a teljes respawn nál csak ne éledjen újra végig :)
Ha valaki belinkelné nekem azt a plugint megköszönném és menne a kéz :)
Előre is köszi

Szerző:  CrB [2013.12.08. 13:00 ]
Hozzászólás témája:  Re: Respawn

próbáld

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <hamsandwich>
  3. new cvar
  4. new counter
  5. public plugin_init()
  6. {
  7. register_plugin("Ujraelesztes", "1.0", "qKKKJ;>")
  8. register_event("DeathMsg", "halal", "a")
  9. cvar = register_cvar("Ido", "5")
  10. register_logevent("ujkor",2,"0=World triggered","1=Round_Start")
  11. set_task(1.0, "szamlalo",_,_,_,"b")
  12. }
  13. public ujkor()
  14. {
  15. counter = get_pcvar_num(cvar)
  16. }
  17. public szamlalo()
  18. {
  19. new player[32], pnum
  20. get_players(player, pnum)
  21. for(new y; y<get_maxplayers(); y++)
  22. {
  23. if(counter > 0) {
  24. new id = player[y]
  25. counter--
  26. set_hudmessage(85, 255, 85, 0.33, 0.49, 0, 6.0, 1.0)
  27. show_hudmessage(id, "Ujra lehet eledni meg %d mp-ig!", counter)
  28. }
  29. }
  30. }
  31. public halal()
  32. {
  33. new id = read_data(2)
  34. if(counter > 0)
  35. {
  36. ExecuteHam(Ham_CS_RoundRespawn, id)
  37. }
  38.  
  39. }

Szerző:  TraneTommy [2013.12.08. 15:45 ]
Hozzászólás témája:  Re: Respawn

crazyboy írta:
próbáld

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <hamsandwich>
  3. new cvar
  4. new counter
  5. public plugin_init()
  6. {
  7. register_plugin("Ujraelesztes", "1.0", "qKKKJ;>")
  8. register_event("DeathMsg", "halal", "a")
  9. cvar = register_cvar("Ido", "5")
  10. register_logevent("ujkor",2,"0=World triggered","1=Round_Start")
  11. set_task(1.0, "szamlalo",_,_,_,"b")
  12. }
  13. public ujkor()
  14. {
  15. counter = get_pcvar_num(cvar)
  16. }
  17. public szamlalo()
  18. {
  19. new player[32], pnum
  20. get_players(player, pnum)
  21. for(new y; y<get_maxplayers(); y++)
  22. {
  23. if(counter > 0) {
  24. new id = player[y]
  25. counter--
  26. set_hudmessage(85, 255, 85, 0.33, 0.49, 0, 6.0, 1.0)
  27. show_hudmessage(id, "Ujra lehet eledni meg %d mp-ig!", counter)
  28. }
  29. }
  30. }
  31. public halal()
  32. {
  33. new id = read_data(2)
  34. if(counter > 0)
  35. {
  36. ExecuteHam(Ham_CS_RoundRespawn, id)
  37. }
  38.  
  39. }

Ez sem jó :(

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