hlmod.hu
https://hlmod.hu/

Fegyver gyorsasag
https://hlmod.hu/viewtopic.php?f=10&t=14441
Oldal: 1 / 1

Szerző:  Telapo11 [ 2014.02.16. 13:30 ]
Hozzászólás témája:  Fegyver gyorsasag

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("mp5_speed","500")
  14.  
  15. }
  16.  
  17. public change(id) {
  18. new clip, ammo
  19. new weapon = get_user_weapon(id, clip, ammo)
  20. if(userswep == CSW_MP5)
  21.  
  22. {
  23. new Speed = get_pcvar_float(CVAR_SPEED)
  24.  
  25. set_user_maxspeed(id, Speed)
  26.  
  27. }
  28.  
  29. }
  30. }


Valaki irja nekem átt mert én nem birom hogy minden fegyoval lehessen gyorsan menni

Szerző:  Vinnice [ 2014.02.17. 17:57 ]
Hozzászólás témája:  Re: Fegyver gyorsasag

SMA Forráskód: [ Mindet kijelol ]
  1. #include < amxmodx >
  2. #include < amxmisc >
  3. #include < fun >
  4.  
  5. #define VERSION "0.0.1"
  6.  
  7. new pCvarSpeed;
  8.  
  9. public plugin_init( ) {
  10. register_plugin( "Fegyver Gyorsaság", VERSION, "#YouCantStopMe" );
  11.  
  12. pCvarSpeed = register_cvar( "amx_weaponspeed", "500" );
  13.  
  14. register_event( "CurWeapon", "eCurWeapon", "be", "1=1" );
  15. }
  16.  
  17. public eCurWeapon( iClient )
  18. {
  19. if( !is_user_alive( iClient ) )
  20. return;
  21.  
  22. set_user_maxspeed( iClient, get_pcvar_float( pCvarSpeed ) );
  23. }

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