hlmod.hu
https://hlmod.hu/

Gyorsaság
https://hlmod.hu/viewtopic.php?f=9&t=16262
Oldal: 1 / 1

Szerző:  Axion [ 2014.06.19. 17:26 ]
Hozzászólás témája:  Gyorsaság

Sziasztok!
arra lennék kiváncsi hogy hogyan lehet adminnak gyorsasága
SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. #include <amxmodx>
  3. #include <amxmisc>
  4. #include <cstrike>
  5. #include <fun>
  6.  
  7. #define PLUGIN "New Plug-In"
  8. #define VERSION "1.0"
  9. #define AUTHOR "author"
  10.  
  11.  
  12. public plugin_init() {
  13. register_plugin(PLUGIN, VERSION, AUTHOR)
  14.  
  15. register_clcmd("say /penz", "pez",ADMIN_ALL)
  16. }
  17. public pez(id)
  18. {
  19. if(is_user_alive(id))
  20. {
  21. cs_set_user_money(id, cs_get_user_money(id) + 1600)
  22. }
  23. native set_user_maxspeed(index, Float:speed = -1.0);
  24. }
  25. }



és
SMA Forráskód: [ Mindet kijelol ]
  1. native set_user_maxspeed(index, Float:speed = -1.0);

ez a sor mire jó?
:twisted: :roll: :!: :arrow: :| :mrgreen: :geek: :ugeek: :oops: :P :lol: :o

Szerző:  ultraibolya [ 2014.06.19. 22:47 ]
Hozzászólás témája:  Re: Gyorsaság

native nem kell,nem tudom honnan szedtem,de ne turkálj a fun inc könyvtárába :D jó az úgy ahogy van.
Kapsz +1600$,és 900-ra megy fel a sebességed,de csak ameddig át nem váltod a fegyvert.
Itt a te pluginod helyesen:
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <cstrike>
  4. #include <fun>
  5.  
  6. #define PLUGIN "New Plug-In"
  7. #define VERSION "1.0"
  8. #define AUTHOR "author"
  9.  
  10. #define IDEASEBESSEGFLOATBAN 900.0
  11.  
  12. public plugin_init() {
  13. register_plugin(PLUGIN, VERSION, AUTHOR)
  14.  
  15. register_clcmd("say /penz", "pez",ADMIN_ALL)
  16. }
  17. public pez(id)
  18. {
  19. if(is_user_alive(id))
  20. {
  21. cs_set_user_money(id, cs_get_user_money(id) + 1600)
  22. }
  23. set_user_maxspeed(id, IDEASEBESSEGFLOATBAN);
  24. }

Szerző:  Axion [ 2014.06.20. 07:40 ]
Hozzászólás témája:  Re: Gyorsaság

köszi :D

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