hlmod.hu
https://hlmod.hu/

Kes Modell
https://hlmod.hu/viewtopic.php?f=29&t=7513
Oldal: 1 / 1

Szerző:  reminder [ 2013.02.23. 20:04 ]
Hozzászólás témája:  Kes Modell

Sziasztok! Szeretnek egy kes model plugint kerni! Olyan legyen hogy , CTNEk , TERRORNAK , legyen mas kes skinjuk , ennyit szeretnek kerni , koszonom:D!

Szerző:  crazy` [ 2013.02.23. 20:20 ]
Hozzászólás témája:  Re: Kes Modell

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <fakemeta>
  4.  
  5. #define PLUGIN "New Plug-In"
  6. #define VERSION "1.0"
  7. #define AUTHOR "HunGamer"
  8.  
  9. new const p_temodel[] = "models/p_te.mdl" //TE P_ MODEL
  10. new const v_temodel[] = "models/v_te.mdl" //TE V_ MODEL
  11. new const p_ctmodel[] = "models/p_ct.mdl" //CT P_ MODEL
  12. new const v_ctmodel[] = "models/v_ct.mdl" //CT V_ MODEL
  13.  
  14. public plugin_init()
  15. {
  16. register_plugin(PLUGIN, VERSION, AUTHOR)
  17. register_event("CurWeapon", "Event_Change_Weapon", "be", "1=1")
  18. }
  19. public plugin_precache()
  20. {
  21. precache_model(p_temodel)
  22. precache_model(v_temodel)
  23. precache_model(p_ctmodel)
  24. precache_model(v_ctmodel)
  25. }
  26. public Event_Change_Weapon(id)
  27. {
  28. new weaponID = read_data(2)
  29.  
  30. if(weaponID == CSW_KNIFE)
  31. {
  32. if(get_user_team(id) == 1)
  33. {
  34. set_pev(id, pev_viewmodel2, v_temodel)
  35. set_pev(id, pev_weaponmodel2, p_temodel)
  36. }
  37. else if(get_user_team(id) == 2)
  38. {
  39. set_pev(id, pev_viewmodel2, v_ctmodel)
  40. set_pev(id, pev_weaponmodel2, p_ctmodel)
  41. }
  42. }
  43. return PLUGIN_CONTINUE
  44. }

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