hlmod.hu
https://hlmod.hu/

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

Szerző:  CocaIne.^ [2012.01.20. 19:09 ]
Hozzászólás témája:  Spec BOT

Hali.
Valaki tudna nekem 1 olyan BOT plugint adni ami nem a website,nem a FakeFullOrginal (nem jól írom de 8),hanem olyan h mappváltás után is megmarad specbe?

Szerző:  expert [2012.01.20. 20:13 ]
Hozzászólás témája:  Re: Spec BOT

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ő:  CocaIne.^ [2012.01.20. 20:30 ]
Hozzászólás témája:  Re: Spec BOT

KÖSZI!

Szerző:  ChaspeR [2012.01.20. 20:33 ]
Hozzászólás témája:  Re: Spec BOT

[spoiler]3-at hogy lehetne hozzáadni??[/spoiler]

Szerző:  CocaIne.^ [2012.01.20. 20:36 ]
Hozzászólás témája:  Re: Spec BOT

A világ leghülyébb megoldása:3x berakod a plugint más cvarral.

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