hlmod.hu
https://hlmod.hu/

dupla frag
https://hlmod.hu/viewtopic.php?f=29&t=16391
Oldal: 1 / 1

Szerző:  LostLegend [ 2014.07.04. 00:33 ]
Hozzászólás témája:  dupla frag

Sziasztok!
Ismét hozzátok fordulok segitségül , egy olyan pluginra lenne szükségem , hogy ha a csapatodba te vagy az utolsó élő ,akkor minden ölésed dupla fraget érjen. Remélem elég értehető , tudom nem nehéz plugin csak mostmár két nap alvás után az ember elfárad , ha lehetséges minél hamarább előre köszönöm és természetesen a + megy. ;)

Szerző:  LostLegend [ 2014.07.04. 21:15 ]
Hozzászólás témája:  Re: dupla frag

Valaki ?

Szerző:  demon [ 2014.07.05. 01:39 ]
Hozzászólás témája:  Re: dupla frag

Tessék:
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <fun>
  3.  
  4. #define PLUGIN "Dupla Frag"
  5. #define VERSION "1.0"
  6. #define AUTHOR "demon"
  7.  
  8. new players_ct[32], players_t[32], ict, ite
  9.  
  10. public plugin_init() {
  11. register_plugin(PLUGIN, VERSION, AUTHOR)
  12. register_event("DeathMsg","death_msg","a")
  13. }
  14.  
  15. public death_msg()
  16. {
  17. get_players(players_ct,ict,"ae","CT")
  18. get_players(players_t,ite,"ae","TERRORIST")
  19. new killer = read_data(1);
  20. new victim = read_data(2);
  21.  
  22. if (ict==1&&ite==1)
  23. set_user_frags(killer,get_user_frags(killer)+1);
  24. else if (ict==1&&players_ct[0]==killer&&get_user_team(killer)!=get_user_team(victim))
  25. set_user_frags(killer,get_user_frags(killer)+1);
  26. else if (ite==1&&players_t[0]==killer&&get_user_team(killer)!=get_user_team(victim))
  27. set_user_frags(killer,get_user_frags(killer)+1);
  28. }

Szerző:  LostLegend [ 2014.07.05. 11:42 ]
Hozzászólás témája:  Re: dupla frag

Üha :S

Csatolmányok:
asd.JPG
asd.JPG [ 138.77 KiB | Megtekintve 2177 alkalommal ]

Szerző:  xXlederXxHUN [ 2014.07.05. 12:07 ]
Hozzászólás témája:  Re: dupla frag

cstrike include kell hozzá :D
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <fun>
  3. #include <cstrike>
  4.  
  5. #define PLUGIN "Dupla Frag"
  6. #define VERSION "1.0"
  7. #define AUTHOR "demon"
  8.  
  9. new players_ct[32], players_t[32], ict, ite
  10.  
  11. public plugin_init() {
  12. register_plugin(PLUGIN, VERSION, AUTHOR)
  13. register_event("DeathMsg","death_msg","a")
  14. }
  15.  
  16. public death_msg()
  17. {
  18. get_players(players_ct,ict,"ae","CT")
  19. get_players(players_t,ite,"ae","TERRORIST")
  20. new killer = read_data(1);
  21. new victim = read_data(2);
  22.  
  23. if (ict==1&&ite==1)
  24. set_user_frags(killer,get_user_frags(killer)+1);
  25. else if (ict==1&&players_ct[0]==killer&&get_user_team(killer)!=get_user_team(victim))
  26. set_user_frags(killer,get_user_frags(killer)+1);
  27. else if (ite==1&&players_t[0]==killer&&get_user_team(killer)!=get_user_team(victim))
  28. set_user_frags(killer,get_user_frags(killer)+1);
  29. }

Szerző:  LostLegend [ 2014.07.05. 14:55 ]
Hozzászólás témája:  Re: dupla frag

Köszi müködik :))
Egy baj van vele csak ,hogy rankohoz nem adja hozzá , csak statba mutatja.

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