hlmod.hu
https://hlmod.hu/

1x újraéledés
https://hlmod.hu/viewtopic.php?f=29&t=8858
Oldal: 1 / 1

Szerző:  Joke [ 2013.06.08. 13:28 ]
Hozzászólás témája:  1x újraéledés

Sziasztok...

Az lenne a kérésem ,hogy amikor a ct meghal egyből újra éledhet 3mp múlva 1x...
Köszönöm ,(Deathrunra kell)...

Szerző:  crazy` [ 2013.06.08. 13:47 ]
Hozzászólás témája:  Re: 1x újraéledés

teszteld:

SMA Forráskód: [ Mindet kijelol ]
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <cstrike>
  5. #include <hamsandwich>
  6.  
  7. #define PLUGIN "Respawn for CTs"
  8. #define VERSION "1.0"
  9. #define AUTHOR "crazy"
  10.  
  11. public plugin_init() {
  12. register_plugin(PLUGIN, VERSION, AUTHOR)
  13. register_event("DeathMsg", "halal", "a")
  14. }
  15. public halal(id)
  16. {
  17. set_task(3.0,"eleszt",id)
  18. }
  19. public eleszt(id)
  20. {
  21. if(cs_get_user_team(id) == CS_TEAM_CT)
  22.  
  23. {
  24. if (!is_user_alive(id))
  25. {
  26. new id = read_data(2)
  27.  
  28. ExecuteHam(Ham_CS_RoundRespawn, id)
  29.  
  30. }
  31. }
  32. }

Szerző:  Vinnice [ 2013.06.08. 17:55 ]
Hozzászólás témája:  Re: 1x újraéledés

Nem azt kérted ,hogy 1x éledjen újra?

SMA Forráskód: [ Mindet kijelol ]
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <cstrike>
  5. #include <hamsandwich>
  6.  
  7. #define PLUGIN "Respawn for CTs"
  8. #define VERSION "1.0"
  9. #define AUTHOR "crazy"
  10.  
  11. new van[33];
  12.  
  13. public plugin_init() {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15. register_event("DeathMsg", "halal", "a")
  16. register_logevent( "delete", 2, "1=Round_Start" );
  17. }
  18. public client_putinserver(id) van[id] = 1;
  19.  
  20. public halal(id)
  21. {
  22. if(van[id] == 1)
  23. {
  24. set_task(3.0,"eleszt",id)
  25. }
  26. }
  27.  
  28. public eleszt(id)
  29. {
  30. if(cs_get_user_team(id) == CS_TEAM_CT)
  31.  
  32. {
  33. if (!is_user_alive(id))
  34. {
  35. new id = read_data(2)
  36. ExecuteHam(Ham_CS_RoundRespawn, id)
  37. van[id] = 0;
  38. }
  39. }
  40. }
  41. public delete()
  42. {
  43. new players[32], pnum;
  44. get_players(players, pnum, "c")
  45. for(new i = 0; i < 0; i++)
  46. {
  47. van[players[i]] = 1
  48. }
  49. }

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