hlmod.hu
https://hlmod.hu/

Késsel gyorsabban mész
https://hlmod.hu/viewtopic.php?f=10&t=29859
Oldal: 1 / 1

Szerző:  matkoimre [ 2019.05.04. 12:01 ]
Hozzászólás témája:  Késsel gyorsabban mész

Sziasztok!

Valaki beletudná nekem írni hogy Gyors Késsel ne lehessen előbb elindulni ?


Köszönöm Előre is :)

Csatolmányok:
amxmodx_12649-knifespeed.sma [619 bájt]
Letöltve 141 alkalommal.

Szerző:  ultraibolya [ 2019.05.04. 14:39 ]
Hozzászólás témája:  Re: Késsel gyorsabban mész

Szia.
Próbáld

  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. new bool:gyorskes=false
  11. public plugin_init() {
  12.     register_plugin(PLUGIN, VERSION, AUTHOR)
  13.    
  14.     register_logevent("legyenigaz", 2, "1=Round_Start")
  15.    
  16.     register_event("CurWeapon","change","be","1=1")
  17.     register_event("HLTV", "legyenhamis", "a", "1=0", "2=0")
  18.     CVAR_SPEED = register_cvar("kes_speed","370")
  19.    
  20. }
  21. public legyenhamis()
  22.     gyorskes=false
  23. public legyenigaz()
  24.     gyorskes=true
  25. public change(id) {
  26.     new clip, ammo  
  27.     new weapon = get_user_weapon(id, clip, ammo)  
  28.     if(weapon == CSW_KNIFE && gyorskes) {
  29.         new Float:Speed = get_pcvar_float(CVAR_SPEED)
  30.         set_user_maxspeed(id,Speed)
  31.        
  32.     }
  33. }

Szerző:  matkoimre [ 2019.05.04. 17:26 ]
Hozzászólás témája:  Re: Késsel gyorsabban mész

ultraibolya írta:
Szia.
Próbáld

  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. new bool:gyorskes=false
  11. public plugin_init() {
  12.     register_plugin(PLUGIN, VERSION, AUTHOR)
  13.    
  14.     register_logevent("legyenigaz", 2, "1=Round_Start")
  15.    
  16.     register_event("CurWeapon","change","be","1=1")
  17.     register_event("HLTV", "legyenhamis", "a", "1=0", "2=0")
  18.     CVAR_SPEED = register_cvar("kes_speed","370")
  19.    
  20. }
  21. public legyenhamis()
  22.     gyorskes=false
  23. public legyenigaz()
  24.     gyorskes=true
  25. public change(id) {
  26.     new clip, ammo  
  27.     new weapon = get_user_weapon(id, clip, ammo)  
  28.     if(weapon == CSW_KNIFE && gyorskes) {
  29.         new Float:Speed = get_pcvar_float(CVAR_SPEED)
  30.         set_user_maxspeed(id,Speed)
  31.        
  32.     }
  33. }



Köszönöm,Működik! :)

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