- Click | Afiseaza codul
[Modificare plugin] Bots
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
- Stai..Ce?
- Membru, skill +1
- Posts: 366
- Joined: 03 Jun 2017, 18:56
- Detinator Steam: Da
- CS Status: N/A
- Detinator server CS: FUN.LALEAGANE.RO
- SteamID: jetski_fun
- Fond eXtream: 0
- Location: str. îngustă, nr. sub fustă.
Am urmatorul plugin de spec bots pe server:
-
- Membru, skill 0
- Posts: 95
- Joined: 14 Feb 2018, 15:56
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Contact:
poftim asta folosesc eu si sunt multumit de el. acesti 3 boti vor intra toti odata si vor ramane in permanenta i-ar cand server-ul este 22/32 boti vor fii scosi afara automat.
Code: Select all
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
new bool:is_user_fake[33]
new fake_players[33]
new const name_of_bots[][] =
{
"IP-UL TAU",
"DNS-UL TAU",
"WWW.EXTREAMCS.COM"
}
public plugin_init()
{
register_plugin("boti", "1.0", "cyby")
set_task(10.0, "make_bot")
}
public make_bot()
{
new i;
for(i = 0; i < sizeof name_of_bots; i++)
{
if(fake_players[i] <= 2)
{
new FAKE_PLAYER = engfunc(EngFunc_CreateFakeClient,name_of_bots[i])
dllfunc(DLLFunc_ClientConnect,FAKE_PLAYER)
dllfunc(DLLFunc_ClientPutInServer,FAKE_PLAYER)
set_pev(FAKE_PLAYER,pev_team,3)
is_user_fake[FAKE_PLAYER] = true
fake_players[FAKE_PLAYER] += 1
}
}
}
- Stai..Ce?
- Membru, skill +1
- Posts: 366
- Joined: 03 Jun 2017, 18:56
- Detinator Steam: Da
- CS Status: N/A
- Detinator server CS: FUN.LALEAGANE.RO
- SteamID: jetski_fun
- Fond eXtream: 0
- Location: str. îngustă, nr. sub fustă.
Nu am nevoie de alt plugin, vreau ca pluginul pus de mine sa fie modificat in asa fel in cat sa-mi bage cate 1 bot din fiecare, nu random.
Adica, 1 bot cu ip, 1 cu dns si 1 cu forum, nu sa ii bage random si sa pice chiar 3 cu ip.
Adica, 1 bot cu ip, 1 cu dns si 1 cu forum, nu sa ii bage random si sa pice chiar 3 cu ip.
Last bumped by Stai..Ce? on 19 Apr 2018, 20:58.