hlmod.hu
https://hlmod.hu/

Hátralévő Ct és Terrorista
https://hlmod.hu/viewtopic.php?f=29&t=18134
Oldal: 1 / 1

Szerző:  MeSter [2014.11.15. 16:56 ]
Hozzászólás témája:  Hátralévő Ct és Terrorista

Olyan plugint keresek hogy ha megölnek egy ct vagy egy t akkor kiírja hudban chatnél hogy %d Ct maradt (Ezt csak a terroristáknak írja)
És ha ct ol meg egy T akkor %d T maradt (Ezt meg csak a Ct-nek mutassa

Kép

Szerző:  CrB [2014.11.26. 19:43 ]
Hozzászólás témája:  Re: Hátralévő Ct és Terrorista

try
SMA Forráskód: [ Mindet kijelol ]
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <amxmisc>
  5. #include <cstrike>
  6.  
  7. #define PLUGIN "New Plug-In"
  8. #define VERSION "1.0"
  9. #define AUTHOR "HlTube"
  10.  
  11. new players[32], numt,numct
  12.  
  13. public plugin_init() {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15.  
  16. register_event("DeathMsg", "halal", "a")
  17. }
  18. public halal()
  19. {
  20. new victim = read_data(2)
  21. get_players(players, numt, "aceh", "TERRORIST")
  22. get_players(players, numct, "aceh", "CT")
  23. switch(cs_get_user_team(victim))
  24. {
  25. case CS_TEAM_T: {
  26. for(new i = 0; i<=numct; i++)
  27. {
  28. new id = players[i]
  29. if(cs_get_user_team(id) == CS_TEAM_CT)
  30. {
  31. set_hudmessage(255, 255, 255, 0.02, 0.86, 0, 6.0, 8.0)
  32. show_hudmessage(id, "%d TERRORISTA MARADT", numt)
  33.  
  34. }
  35. }
  36.  
  37. }
  38. case CS_TEAM_CT: {
  39. for(new i=0; i<=numt; i++)
  40. {
  41. new id = players[i]
  42. if(cs_get_user_team(id) == CS_TEAM_T)
  43. {
  44. set_hudmessage(255, 255, 255, 0.02, 0.86, 0, 6.0, 8.0)
  45. show_hudmessage(id, "%d CT MARADT", numct)
  46.  
  47. }
  48.  
  49. }
  50. }
  51. }
  52. }

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