hlmod.hu
https://hlmod.hu/

Körvégén nyertes csapat
https://hlmod.hu/viewtopic.php?f=9&t=7027
Oldal: 1 / 1

Szerző:  Cyber [2013.01.05. 00:30 ]
Hozzászólás témája:  Körvégén nyertes csapat

Üdv.

Egy példa kóddal tudná valaki imitálni hogy hogyan lehetne minden körvégén a nyertes csapattagokon lefuttatni egy kódot, és a vesztes csapattagokon pedig egy másik kódot.


Előre is köszönöm! :)

Szerző:  HunGamer [2013.01.05. 13:07 ]
Hozzászólás témája:  Re: Körvégén nyertes csapat

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. #define PLUGIN "New Plug-In"
  5. #define VERSION "1.0"
  6. #define AUTHOR "HunGamer"
  7.  
  8.  
  9. public plugin_init()
  10. {
  11. register_plugin(PLUGIN, VERSION, AUTHOR);
  12. register_event("SendAudio", "te_win", "a", "2&%!MRAD_terwin");
  13. register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin");
  14. }
  15. public te_win()
  16. {
  17. new Players[32], playerCount, id;
  18.  
  19. get_players(Players, playerCount, "eh", "TERRORIST");
  20. for (new i=0; i<playerCount; i++)
  21. {
  22. id = Players[i];
  23. //NYERTESEK
  24. }
  25.  
  26. get_players(Players, playerCount, "eh", "CT");
  27. for (new i=0; i<playerCount; i++)
  28. {
  29. id = Players[i];
  30. //VESZTESEK
  31. }
  32. }
  33.  
  34. public ct_win()
  35. {
  36. new Players[32], playerCount, id;
  37.  
  38. get_players(Players, playerCount, "eh", "CT");
  39. for (new i=0; i<playerCount; i++)
  40. {
  41. id = Players[i];
  42. //NYERTESEK
  43. }
  44.  
  45. get_players(Players, playerCount, "eh", "TERRORIST");
  46. for (new i=0; i<playerCount; i++)
  47. {
  48. id = Players[i];
  49. //VESZTESEK
  50.  
  51. }
  52. }

Szerző:  Cyber [2013.01.05. 17:12 ]
Hozzászólás témája:  Re: Körvégén nyertes csapat

köszi :)

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