hlmod.hu
https://hlmod.hu/

Autobuy Fixed 1.4 (Fix ServerShutdown Bugs)
https://hlmod.hu/viewtopic.php?f=29&t=9905
Oldal: 1 / 1

Szerző:  alfanero [ 2013.08.06. 11:22 ]
Hozzászólás témája:  Autobuy Fixed 1.4 (Fix ServerShutdown Bugs)

Hallo valaki be tudna nekem linkelni ezt a plugint vagy irni?

Szerző:  Anonymous1337 [ 2013.08.06. 11:25 ]
Hozzászólás témája:  Re: Autobuy Fixed 1.4 (Fix ServerShutdown Bugs)

alfanero írta:
Hallo valaki be tudna nekem linkelni ezt a plugint vagy irni?


1.3 -t találtam csak

https://forums.alliedmods.net/showthread.php?t=175192

Szerző:  Anonymous1337 [ 2013.08.06. 11:27 ]
Hozzászólás témája:  Re: Autobuy Fixed 1.4 (Fix ServerShutdown Bugs)

Anonymous1337 írta:
alfanero írta:
Hallo valaki be tudna nekem linkelni ezt a plugint vagy irni?


1.3 -t találtam csak

https://forums.alliedmods.net/showthread.php?t=175192



SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2.  
  3. #define PLUGIN_NAME "Fix AutoBuy Bug"
  4. #define PLUGIN_VERSION "1.1"
  5. #define PLUGIN_AUTHOR "PomanoB / UFPS.Team"
  6.  
  7. new g_logfile[64]
  8.  
  9. public plugin_init( )
  10. {
  11. register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR )
  12.  
  13. register_clcmd( "cl_setautobuy", "cmd_check" )
  14. register_clcmd( "cl_setrebuy", "cmd_check" )
  15.  
  16. get_time ( "autobuy_%Y%m.log", g_logfile, charsmax ( g_logfile ) )
  17. }
  18.  
  19. public cmd_check( id )
  20. {
  21. static arg[512], args, i
  22. args = read_argc( )
  23.  
  24. for( i = 1; i < args; ++i )
  25. {
  26. read_argv( i, arg, charsmax( arg ) )
  27.  
  28. if( is_cmd_long( arg, charsmax( arg ) ) )
  29. {
  30. log_autobuy( id )
  31. return PLUGIN_HANDLED
  32. }
  33. }
  34.  
  35. return PLUGIN_CONTINUE
  36. }
  37.  
  38. stock bool:is_cmd_long( string[], const len )
  39. {
  40. static cmd[512]
  41.  
  42. while( strlen( string ) )
  43. {
  44. strtok( string, cmd, charsmax( cmd ), string, len , ' ', 1 )
  45.  
  46. if( strlen( cmd ) > 31 ) return true
  47. }
  48.  
  49. return false
  50. }
  51.  
  52. stock log_autobuy( id )
  53. {
  54. static name[32], steamid[44], ip[16]
  55. get_user_ip( id, ip, charsmax( ip ), 1 )
  56. get_user_authid( id, steamid, charsmax( steamid ) )
  57. get_user_name( id, name, charsmax( name ) )
  58.  
  59. log_to_file( g_logfile, "Autobuy bug use: %s [%s] <%s>", name, ip, steamid )
  60. }


ez 100% ..

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