Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fake Bots
#1
This plugin adds 2 fake bots to the server, good for tracking websites.

Code:
#include <amxmodx>
#include <fakemeta>
#include <fun>
#include <engine_stocks>

#define PLUGIN   "Bots"
#define VERSION  "1.0"
#define AUTHOR   "sToP !"

public plugin_init()
{
    register_plugin(PLUGIN,VERSION,AUTHOR)
    CreateBots()
}

CreateBots()
{
    static szReason[128], id
    
    id = engfunc(EngFunc_CreateFakeClient, "Server: HL.DM20.NET")
    engfunc(EngFunc_FreeEntPrivateData, id)
    set_pev(id, pev_flags, pev(id, pev_flags) | FL_FAKECLIENT)
    dllfunc(DLLFunc_ClientConnect, id, "Server: HL.DM20.NET", "127.0.0.1", szReason)
    dllfunc(DLLFunc_ClientPutInServer, id)
    set_entity_visibility(id, 0)
    set_pev(id, pev_solid, SOLID_NOT)
    set_user_godmode(id, 1)
    set_user_frags(id, -100)

    id = engfunc(EngFunc_CreateFakeClient, "Website: www.DM20.net/forum")
    engfunc(EngFunc_FreeEntPrivateData, id)
    set_pev(id, pev_flags, pev(id, pev_flags) | FL_FAKECLIENT)
    dllfunc(DLLFunc_ClientConnect, id, "Website: www.DM20.net/forum", "127.0.0.1", szReason)
    dllfunc(DLLFunc_ClientPutInServer, id)
    set_entity_visibility(id, 0)
    set_pev(id, pev_solid, SOLID_NOT)
    set_user_godmode(id, 1)
    set_user_frags(id, -100)
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)