hlmod.hu
https://hlmod.hu/

fegyver sebesség
https://hlmod.hu/viewtopic.php?f=29&t=20293
Oldal: 1 / 1

Szerző:  bbshop [ 2015.04.14. 14:35 ]
Hozzászólás témája:  fegyver sebesség

Sziasztok valaki megcsinálja, hogy MP5-re, USP-re és GLOCK-ra is megváltozzon a sebesség? De csak ezekre a fegyverekre!!!
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <fun>
  3. #include <cstrike>
  4.  
  5. #define PLUGIN "Gyors kes"
  6. #define VERSION "1.0"
  7. #define AUTHOR "CocaIne"
  8.  
  9. new CVAR_SPEED
  10. public plugin_init() {
  11. register_plugin(PLUGIN, VERSION, AUTHOR)
  12. register_event("CurWeapon","change","be","1=1")
  13. CVAR_SPEED = register_cvar("kes_speed","340")
  14.  
  15. }
  16.  
  17. public change(id) {
  18. new clip, ammo
  19. new weapon = get_user_weapon(id, clip, ammo)
  20. if(weapon == CSW_KNIFE) {
  21.  
  22. {
  23. new Speed = get_pcvar_float(CVAR_SPEED)
  24.  
  25. set_user_maxspeed(id, Speed)
  26.  
  27. }
  28.  
  29. }
  30. }

Szerző:  DeR0iD [ 2015.04.14. 14:39 ]
Hozzászólás témája:  Re: fegyver sebesség

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <fun>
  3. #include <hamsandwich>
  4.  
  5. #define PLUGIN "New Plug-In"
  6. #define VERSION "1.0"
  7. #define AUTHOR "author"
  8.  
  9.  
  10. public plugin_init() {
  11. register_plugin(PLUGIN, VERSION, AUTHOR)
  12. RegisterHam(Ham_Item_PreFrame, "player", "gyorsasag", 1)
  13. // Add your code here...
  14. }
  15. public gyorsasag(id) {
  16. if(!is_user_alive(id))
  17. return PLUGIN_HANDLED
  18.  
  19. if(get_user_weapon(id) == CSW_USP || get_user_weapon(id) == CSW_GLOCK18 || get_user_weapon(id) == CSW_MP5NAVY)
  20. set_user_maxspeed(id, 400.0)
  21. else
  22. return PLUGIN_CONTINUE
  23. return PLUGIN_CONTINUE
  24. }

Szerző:  bbshop [ 2015.04.14. 14:39 ]
Hozzászólás témája:  Re: fegyver sebesség

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/