hlmod.hu
https://hlmod.hu/

Késsel gyorsabb mész parancsra!
https://hlmod.hu/viewtopic.php?f=29&t=15488
Oldal: 1 / 1

Szerző:  barnamate17 [ 2014.04.22. 15:40 ]
Hozzászólás témája:  Késsel gyorsabb mész parancsra!

Üdv, írtam egy elég egyszerű plugint , késsel gyorsabban mész.
Annyit kéne még beleírni ,hogy parancsra ki/be lehessen kapcsolni , a parancs: /kes ; /speed ; /knife
alapból be legyen kapcsolva és Színesen írja amikor be/kapcsolva van (print_color) + chatba is hirdetesse
pl.:
Knife Speed |ON| [ Késsel gyorsabban mész ]
Knife Speed |OFF| [ Késsel nem mész gyorsabban ]
Knife Speed [ Írd be /kes vagy /speed ,hogy ki/be kapcsold! ]

Előre is köszi.
SMA:
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <fun>
  3. #include <cstrike>
  4.  
  5. #define PLUGIN "Gyorsito Kes"
  6. #define VERSION "1.2"
  7. #define AUTHOR "LaGgeR"
  8.  
  9. new CVAR_GYORSITO
  10. public plugin_init() {
  11. register_plugin(PLUGIN, VERSION, AUTHOR)
  12. register_event("CurWeapon","GYORSITAS","be","1=1")
  13. CVAR_GYORSITO = register_cvar("kes_speed","340")
  14.  
  15. }
  16.  
  17. public GYORSITAS(id) {
  18. new clip, ammo
  19. new weapon = get_user_weapon(id, clip, ammo)
  20. if(weapon == CSW_KNIFE) {
  21.  
  22. {
  23. new GYORSITAS = get_pcvar_float(CVAR_GYORSITO)
  24.  
  25. set_user_maxspeed(id, GYORSITAS)
  26.  
  27. }
  28.  
  29. }
  30. }

Szerző:  lis789 [ 2014.04.22. 15:49 ]
Hozzászólás témája:  Re: Késsel gyorsabb mész parancsra!

LOL
Nem te irtad!

Szerző:  Applee [ 2014.04.22. 17:03 ]
Hozzászólás témája:  Re: Késsel gyorsabb mész parancsra!

Egy kicsit idegesítő már!
Kis sza* taknyosokat ki kellene dobni innen akik feltöltenek olyan plugint amibe csak az AUTHORT írják át!
Szégyen ez a viselkedés!
Itt az eredeti amit Cocaine készített.
Késsel gyorsabban mész

Szerző:  Anonymous1337 [ 2014.04.22. 17:11 ]
Hozzászólás témája:  Re: Késsel gyorsabb mész parancsra!

EDIT: Nem Cocaine készítette. Amikor ezt a plugint megírták, Cocaine tervbe se volt véve. Lásd:

https://forums.alliedmods.net/showthread.php?t=19901 // 2005 -ben írták meg először. Az oldal sincs meg annyi ideje ;)

Üdv!

Soha nem értettem, hogy ha valaki ír egy plugint, minek tesz fel kérdést? Ha már megírtam egy plugint, akkor ez már semmiség beleírni.

Különben tényleg nem te írtad, nem értem az AUTHOR -t miért kell átírni.

Nem is értem minek túlbonyolítani, amikor:

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <fun>
  3.  
  4. #define PLUGIN "Faster with knife"
  5. #define VERSION "0.1"
  6. #define AUTHOR "v3x"
  7.  
  8. #define MAX_SPEED 420.0
  9.  
  10. public plugin_init()
  11. {
  12. register_plugin(PLUGIN, VERSION, AUTHOR);
  13. register_event("CurWeapon","Event_CurWeapon","b");
  14. }
  15.  
  16. public Event_CurWeapon( id )
  17. {
  18. new clip, ammo, weapon = get_user_weapon(id,clip,ammo);
  19.  
  20. if(weapon == CSW_KNIFE)
  21. set_user_maxspeed(id, MAX_SPEED);
  22. }
  23.  

Ehhez beleírod amit szeretnél, és ennyi. Pl Chatba írja, parancsra ki/be, stb..stb

barnamate17 írta:
Üdv, írtam egy elég egyszerű plugint , késsel gyorsabban mész.
Annyit kéne még beleírni ,hogy parancsra ki/be lehessen kapcsolni , a parancs: /kes ; /speed ; /knife
alapból be legyen kapcsolva és Színesen írja amikor be/kapcsolva van (print_color) + chatba is hirdetesse
pl.:
Knife Speed |ON| [ Késsel gyorsabban mész ]
Knife Speed |OFF| [ Késsel nem mész gyorsabban ]
Knife Speed [ Írd be /kes vagy /speed ,hogy ki/be kapcsold! ]

Előre is köszi.
SMA:
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <fun>
  3. #include <cstrike>
  4.  
  5. #define PLUGIN "Gyorsito Kes"
  6. #define VERSION "1.2"
  7. #define AUTHOR "LaGgeR"
  8.  
  9. new CVAR_GYORSITO
  10. public plugin_init() {
  11. register_plugin(PLUGIN, VERSION, AUTHOR)
  12. register_event("CurWeapon","GYORSITAS","be","1=1")
  13. CVAR_GYORSITO = register_cvar("kes_speed","340")
  14.  
  15. }
  16.  
  17. public GYORSITAS(id) {
  18. new clip, ammo
  19. new weapon = get_user_weapon(id, clip, ammo)
  20. if(weapon == CSW_KNIFE) {
  21.  
  22. {
  23. new GYORSITAS = get_pcvar_float(CVAR_GYORSITO)
  24.  
  25. set_user_maxspeed(id, GYORSITAS)
  26.  
  27. }
  28.  
  29. }
  30. }

Szerző:  Applee [ 2014.04.22. 17:15 ]
Hozzászólás témája:  Re: Késsel gyorsabb mész parancsra!

Bocsi, akkor Cocaine sem készítette.
Én az oldalon találtam ezt és bemásoltam a linket.

Szerző:  ultraibolya [ 2014.04.22. 19:57 ]
Hozzászólás témája:  Re: Késsel gyorsabb mész parancsra!

Tessék:

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <fun>
  3. #include <colorchat>
  4.  
  5. #define PLUGIN "Faster with knife"
  6. #define VERSION "0.1"
  7. #define AUTHOR "v3x"
  8.  
  9. #define MAX_SPEED 420.0
  10.  
  11. new bool:speed[33]=true
  12.  
  13. new const parancsok[][]={
  14. "say /speed","say /kes","say /knife"
  15. }
  16.  
  17. public plugin_init()
  18. {
  19. register_plugin(PLUGIN, VERSION, AUTHOR);
  20. register_event("CurWeapon","Event_CurWeapon","b");
  21. set_task(120.0 , "hirdet" ,_,_,_, "b" )
  22. for( new i=0 ; i<sizeof(parancsok) ; i++ ) register_clcmd( parancsok[i] , "atvalt" )
  23. }
  24. public atvalt( id ) {
  25. if( speed[id] ) speed[id]=false
  26. else if( !speed[id] ) speed[id]=true
  27. ColorChat( id , RED , "Knife Speed %s",speed[id]? "|ON| [ Késsel gyorsabban mész ]":"|OFF| [ Késsel nem mész gyorsabban ]")
  28. }
  29. public Event_CurWeapon( id )
  30. {
  31. if( speed[id] ){
  32. new clip, ammo, weapon = get_user_weapon(id,clip,ammo);
  33.  
  34. if(weapon == CSW_KNIFE)
  35. set_user_maxspeed(id, MAX_SPEED);
  36. }
  37. }
  38. public hirdet( id )
  39. ColorChat( 0 , RED, "Knife Speed [ Írd be /kes vagy /speed ,hogy ki/be kapcsold! ]")

Szerző:  CrB [ 2014.04.22. 20:01 ]
Hozzászólás témája:  Re: Késsel gyorsabb mész parancsra!

try
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <fun>
  3.  
  4. #define PLUGIN "Faster with knife"
  5. #define VERSION "0.1"
  6. #define AUTHOR "v3x"
  7.  
  8. #define MAX_SPEED 420.0
  9. new bool:kibe[33]
  10. public plugin_init()
  11. {
  12. register_plugin(PLUGIN, VERSION, AUTHOR);
  13. register_event("CurWeapon","Event_CurWeapon","b");
  14. register_clcmd("say /speed", "kibes")
  15. register_clcmd("say /kes", "kibes")
  16. }
  17. public kibes(id)
  18. {
  19. if(kibe[id] == false)
  20. {
  21. kibe[id] = true
  22. client_print(id, print_center, "Knife Speed |ON| [ Késsel gyorsabban mész ]")
  23. }
  24. else if(kibe[id] == true)
  25. {
  26.  
  27. kibe[id] = false
  28. client_print(id, print_center, "Knife Speed |OFF| [ Késsel nem mész gyorsabban ]")
  29. }
  30. }
  31. public Event_CurWeapon( id )
  32. {
  33. new clip, ammo, weapon = get_user_weapon(id,clip,ammo);
  34.  
  35. if(weapon == CSW_KNIFE && kibe[id] == true)
  36. set_user_maxspeed(id, MAX_SPEED);
  37. }
  38. public client_putinserver(id)
  39. {
  40.  
  41. kibe[id] = false
  42. set_task(15.0, "szoveg", id)
  43. }
  44. public szoveg(id)
  45. {
  46. client_print(id, print_chat, "Knife Speed [ Írd be /kes vagy /speed ,hogy ki/be kapcsold! ]")
  47. set_task(15.0, "szoveg", id)
  48. }

Szerző:  norbee.16 [ 2014.04.22. 21:29 ]
Hozzászólás témája:  Re: Késsel gyorsabb mész parancsra!

Sorry az offért.
Ha már ennyit meg írsz akkor ez amit kértél már kis újból kéne jönnie. Ezt még én is bele írom hála 'ibi' kis oktatásának :) Thx you! :)

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