hlmod.hu
https://hlmod.hu/

cl_forwardspeed javítás help!
https://hlmod.hu/viewtopic.php?f=10&t=10548
Oldal: 1 / 1

Szerző:  nemesis99 [2013.08.28. 15:13 ]
Hozzászólás témája:  cl_forwardspeed javítás help!

Üdv.
Kérem javítsa valaki köszönöm!

SMA Forráskód: [ Mindet kijelol ]
  1. #include amxmodx
  2.  
  3. public plugin_init()
  4. {
  5. register_plugin("cl_forwardspeed","1.0","Nemesis")
  6. }
  7.  
  8. public client_putinserver(id)
  9. {
  10. query_client_cvar(id, cl_forwardspeed, fw)
  11. }
  12.  
  13. public fw(id, const cvar[], const value[])
  14. {
  15. static const KickMsg[] = Ok cl_forwardspeed tobb 400 - nal! (alapertek 400)
  16.  
  17. if ((!strcmp(cvar, cl_forwardspeed, 1)) && (str_to_num(value) 400))
  18. {
  19. kick_user(id, KickMsg)
  20. }
  21. }
  22.  
  23. kick_user(id, const KickMsg[])
  24. {
  25. emessage_begin(MSG_ONE, SVC_DISCONNECT, _, id)
  26. ewrite_string(KickMsg)
  27. emessage_end()
  28. }

Szerző:  norbee.16 [2013.08.28. 15:16 ]
Hozzászólás témája:  Re: cl_forwardspeed javítás help!

Mi a hiba? Átalakításnál van baj vagy talán nem működik?

Szerző:  nemesis99 [2013.08.28. 15:21 ]
Hozzászólás témája:  Re: cl_forwardspeed javítás help!

alakítás

Szerző:  Vinnice [2013.08.28. 15:29 ]
Hozzászólás témája:  Re: cl_forwardspeed javítás help!

Gondolom ezzel a pluginnal a cl_forwardspeed-et kérnéd le.
Teszteld. (Amit te írtál az teli van hibákkal)
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. new const PLUGIN[] = "New Plug-in"
  5. new const VERSION[] = "1.0"
  6. new const AUTHOR[] = "Vinnice"
  7.  
  8.  
  9. public plugin_init() {
  10. register_plugin(PLUGIN, VERSION, AUTHOR)
  11. }
  12. public client_putinserver(id)
  13. {
  14. set_task(3.0,"lekeres",id)
  15. }
  16. public lekeres(id)
  17. {
  18. new info[32];
  19. get_user_info(id, "cl_forwardspeed",info,charsmax(info));
  20. if(info[31] > 400)
  21. {
  22. server_cmd("amx_kick ^"#%d^" ^"A forwardspeed max. 400 lehet!^"",get_user_userid(id))
  23. }
  24. }

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