hlmod.hu
https://hlmod.hu/

Heashot T
https://hlmod.hu/viewtopic.php?f=29&t=13636
Oldal: 1 / 1

Szerző:  DanKe16 [ 2014.01.03. 13:56 ]
Hozzászólás témája:  Heashot T

Üdv!
Egy olyan pluginra lenne szükségem , ami azt csinálja , hogy a t-ket CSAK headshot-al lehessen sebezni
De CSAK a t ket , a ct ket lehessen bárhogyan , Köszönöm előre is , Üdv! :)

Szerző:  crazy` [ 2014.01.03. 14:23 ]
Hozzászólás témája:  Re: Heashot T

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <engine>
  3. #include <fakemeta>
  4. #include <cstrike>
  5.  
  6. public plugin_init() {
  7. register_plugin("Only Headshot","1.0", "crazy")
  8.  
  9. register_forward(FM_TraceLine, "forward_traceline", 1)
  10. }
  11. public forward_traceline(Float:v1[3], Float:v2[3], noMonsters, pentToSkip)
  12. {
  13.  
  14. new CsTeams: team = cs_get_user_team(pentToSkip);
  15. if(!is_user_alive(pentToSkip) || team==CS_TEAM_T == true)
  16. return FMRES_IGNORED
  17.  
  18. static entity2
  19. entity2 = get_tr(TR_pHit)
  20.  
  21. if(!is_user_alive(entity2))
  22. return FMRES_IGNORED
  23.  
  24. if(pentToSkip == entity2)
  25. return FMRES_IGNORED
  26.  
  27. if(get_tr(TR_iHitgroup) != 1)
  28. {
  29. set_tr(TR_flFraction,1.0)
  30. return FMRES_SUPERCEDE
  31. }
  32. return FMRES_IGNORED
  33. }

Szerző:  DanKe16 [ 2014.01.03. 14:25 ]
Hozzászólás témája:  Re: Heashot T

köszi crazy :)

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