hlmod.hu
https://hlmod.hu/

Spectator BOT
https://hlmod.hu/viewtopic.php?f=9&t=10314
Oldal: 1 / 1

Szerző:  R3C [ 2013.08.19. 18:35 ]
Hozzászólás témája:  Spectator BOT

Sziasztok!Melyik az a plugin amivel Spectatorba botokat lehet betenni?

Szerző:  theglorious [ 2013.08.19. 18:37 ]
Hozzászólás témája:  Re: Spectator BOT

R3C írta:
Sziasztok!Melyik az a plugin amivel Spectatorba botokat lehet betenni?

tess
Kód:
#include <amxmodx>
#include <fakemeta>
#include <cstrike>

new mycvar

public plugin_init()
{
    register_plugin("Bot 1", "1.0", "AMXX Community")
   
    mycvar = register_cvar("amx_bot1" , "1")
    set_task(5.0, "create_bot")
}

public create_bot()
{
    if( get_pcvar_num(mycvar) )
    {
         
         new buffer[75]
         formatex(buffer, sizeof(buffer) - 1, "amxmodx.crys.hu")     // <--ide amit akarsz specbe
         
         new bot
         bot = engfunc(EngFunc_CreateFakeClient, buffer)
         
         new ptr[128]
         dllfunc(DLLFunc_ClientConnect, bot, "127.0.0.2", ptr)
         dllfunc(DLLFunc_ClientPutInServer, bot)
         
         set_user_info(bot, "rate", "3500")
         set_user_info(bot, "cl_updaterate", "25")
         set_user_info(bot, "cl_lw", "1")
         set_user_info(bot, "cl_lc", "1")
         set_user_info(bot, "cl_dlmax", "128")
         set_user_info(bot, "cl_righthand", "1")
         set_user_info(bot, "_vgui_menus", "0")
         set_user_info(bot, "_ah", "0")
         set_user_info(bot, "dm", "0")
         set_user_info(bot, "tracker", "0")
         set_user_info(bot, "friends", "0")
         set_user_info(bot, "*bot", "1")
         
         cs_set_user_team(bot, CS_TEAM_SPECTATOR, CS_DONTCHANGE)
         
    }
}

Szerző:  R3C [ 2013.08.19. 18:41 ]
Hozzászólás témája:  Re: Spectator BOT

theglorious írta:
R3C írta:
Sziasztok!Melyik az a plugin amivel Spectatorba botokat lehet betenni?

tess
Kód:
#include <amxmodx>
#include <fakemeta>
#include <cstrike>

new mycvar

public plugin_init()
{
    register_plugin("Bot 1", "1.0", "AMXX Community")
   
    mycvar = register_cvar("amx_bot1" , "1")
    set_task(5.0, "create_bot")
}

public create_bot()
{
    if( get_pcvar_num(mycvar) )
    {
         
         new buffer[75]
         formatex(buffer, sizeof(buffer) - 1, "amxmodx.crys.hu")     // <--ide amit akarsz specbe
         
         new bot
         bot = engfunc(EngFunc_CreateFakeClient, buffer)
         
         new ptr[128]
         dllfunc(DLLFunc_ClientConnect, bot, "127.0.0.2", ptr)
         dllfunc(DLLFunc_ClientPutInServer, bot)
         
         set_user_info(bot, "rate", "3500")
         set_user_info(bot, "cl_updaterate", "25")
         set_user_info(bot, "cl_lw", "1")
         set_user_info(bot, "cl_lc", "1")
         set_user_info(bot, "cl_dlmax", "128")
         set_user_info(bot, "cl_righthand", "1")
         set_user_info(bot, "_vgui_menus", "0")
         set_user_info(bot, "_ah", "0")
         set_user_info(bot, "dm", "0")
         set_user_info(bot, "tracker", "0")
         set_user_info(bot, "friends", "0")
         set_user_info(bot, "*bot", "1")
         
         cs_set_user_team(bot, CS_TEAM_SPECTATOR, CS_DONTCHANGE)
         
    }
}


És ha 2 BOTra van szükségem? Akkor alá beírok még egyet vagy hogy smint?

Szerző:  theglorious [ 2013.08.19. 18:44 ]
Hozzászólás témája:  Re: Spectator BOT

R3C írta:
theglorious írta:
R3C írta:
Sziasztok!Melyik az a plugin amivel Spectatorba botokat lehet betenni?

tess
Kód:
#include <amxmodx>
#include <fakemeta>
#include <cstrike>

new mycvar

public plugin_init()
{
    register_plugin("Bot 1", "1.0", "AMXX Community")
   
    mycvar = register_cvar("amx_bot1" , "1")
    set_task(5.0, "create_bot")
}

public create_bot()
{
    if( get_pcvar_num(mycvar) )
    {
         
         new buffer[75]
         formatex(buffer, sizeof(buffer) - 1, "amxmodx.crys.hu")     // <--ide amit akarsz specbe
         
         new bot
         bot = engfunc(EngFunc_CreateFakeClient, buffer)
         
         new ptr[128]
         dllfunc(DLLFunc_ClientConnect, bot, "127.0.0.2", ptr)
         dllfunc(DLLFunc_ClientPutInServer, bot)
         
         set_user_info(bot, "rate", "3500")
         set_user_info(bot, "cl_updaterate", "25")
         set_user_info(bot, "cl_lw", "1")
         set_user_info(bot, "cl_lc", "1")
         set_user_info(bot, "cl_dlmax", "128")
         set_user_info(bot, "cl_righthand", "1")
         set_user_info(bot, "_vgui_menus", "0")
         set_user_info(bot, "_ah", "0")
         set_user_info(bot, "dm", "0")
         set_user_info(bot, "tracker", "0")
         set_user_info(bot, "friends", "0")
         set_user_info(bot, "*bot", "1")
         
         cs_set_user_team(bot, CS_TEAM_SPECTATOR, CS_DONTCHANGE)
         
    }
}


És ha 2 BOTra van szükségem? Akkor alá beírok még egyet vagy hogy smint?


2 szer felrakot a plugint más név-el de lehet ez hülyeség :)

Szerző:  norbee.16 [ 2013.08.19. 19:08 ]
Hozzászólás témája:  Re: Spectator BOT

amxmodx.crys.hu/site/?p=pluginz&c=l&f=fakefullOriginal
Ez jobb! amxx.cfg-be ezt írd majd be amx_addfake 3 a 3 helyet anyit írj ahány botot akarsz a szerveren.

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