hlmod.hu
https://hlmod.hu/

Specben következő pálya
https://hlmod.hu/viewtopic.php?f=9&t=6840
Oldal: 1 / 1

Szerző:  pixxa112 [2012.12.16. 00:41 ]
Hozzászólás témája:  Specben következő pálya

Hali.

Létezik olyan plugin, hogy "SPECBEN" írja ki a következő pályát így:
Next map: de_dust2_snow

és ha már át vált a de_dust2_snow pályára akkor egyből már kint van a specben a következő pálya neve (de_dust2_christmash2) és így tovább.

Valakinek akinek meg van az kérlek el küldené??

Előre is köszönöm.

Szerző:  CeDee [2012.12.16. 09:13 ]
Hozzászólás témája:  Re: Specben következő pálya

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <fakemeta>
  3. #include <cstrike>
  4.  
  5. new amx_nextmap
  6.  
  7. public plugin_init()
  8. {
  9. register_plugin("Nextmap BOT", "1.0", "AMXX Community")
  10.  
  11. amx_nextmap = get_cvar_pointer("amx_nextmap")
  12.  
  13. set_task(5.0, "create_bot")
  14. }
  15.  
  16. public create_bot()
  17. {
  18. new nextmap[64]
  19. get_pcvar_string(amx_nextmap, nextmap, sizeof(nextmap) - 1)
  20.  
  21. new buffer[75]
  22. formatex(buffer, sizeof(buffer) - 1, "Nextmap: %s", nextmap)
  23.  
  24. new bot
  25. bot = engfunc(EngFunc_CreateFakeClient, buffer)
  26.  
  27. new ptr[128]
  28. dllfunc(DLLFunc_ClientConnect, bot, nextmap, "127.0.0.1", ptr)
  29. dllfunc(DLLFunc_ClientPutInServer, bot)
  30.  
  31. set_user_info(bot, "rate", "3500")
  32. set_user_info(bot, "cl_updaterate", "25")
  33. set_user_info(bot, "cl_lw", "1")
  34. set_user_info(bot, "cl_lc", "1")
  35. set_user_info(bot, "cl_dlmax", "128")
  36. set_user_info(bot, "cl_righthand", "1")
  37. set_user_info(bot, "_vgui_menus", "0")
  38. set_user_info(bot, "_ah", "0")
  39. set_user_info(bot, "dm", "0")
  40. set_user_info(bot, "tracker", "0")
  41. set_user_info(bot, "friends", "0")
  42. set_user_info(bot, "*bot", "1")
  43.  
  44. cs_set_user_team(bot, CS_TEAM_SPECTATOR, CS_DONTCHANGE)
  45.  
  46. set_task(10.0, "update_bot_name", bot)
  47. }
  48.  
  49. public update_bot_name(bot)
  50. {
  51. if(is_user_connected(bot))
  52. {
  53. new nextmap[64]
  54. get_pcvar_string(amx_nextmap, nextmap, sizeof(nextmap) - 1)
  55.  
  56. new buffer[75]
  57. formatex(buffer, sizeof(buffer) - 1, "Nextmap: %s", nextmap)
  58.  
  59. set_user_info(bot, "name", buffer)
  60.  
  61. set_task(10.0, "update_bot_name", bot)
  62. }
  63. }

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