Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <amxmisc>
- #include <fakemeta>
- new bool:is_user_fake[33]
- new fake_players[33]
- new const name_of_bots[][] =
- {
- "WWW.BESTFRAG.RO # 1",
- "Visit/Registrer BESTFRAG"
- }
- 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] <= 3)
- {
- 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
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement