Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Ham Register CZ Bots

A Config Script for Counter-Strike 1.6

No ads for members. Membership is 100% free. Sign up!
57 1 kb Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define VERSION "2.1.3"

new g_iFwdSetClientKeyValue

public plugin_init()
{
    register_plugin("Ham Register Cz Bots", VERSION, "ConnorMcLeod")
}

public client_putinserver( id )
{
    if( !g_iFwdSetClientKeyValue && is_user_bot(id) )
    {
        g_iFwdSetClientKeyValue = register_forward(FM_SetClientKeyValue, "SetClientKeyValue")
    }
}

public SetClientKeyValue(id, infobuffer[], key[], value[])
{
    if( value[0] == '1' && equal(key, "*bot") )
    {
        unregister_forward(FM_SetClientKeyValue, g_iFwdSetClientKeyValue)
        if( IsCzBot( id ) )
        {
            new iRet, iForward = CreateMultiForward("cz_bot_ham_registerable", ET_IGNORE, FP_CELL)
            ExecuteForward(iForward, iRet, id)
            DestroyForward(iForward)
            pause("ac")
        }
        else
        {
            g_iFwdSetClientKeyValue = 0
        }
    }
}

IsCzBot( id )
{
#if defined Ham_CS_Player_IsBot
    static valid = -1
    if( valid == -1 )
    {
        valid = IsHamValid( Ham_CS_Player_IsBot )
    }
    if( valid )
    {
        return ExecuteHam(Ham_CS_Player_IsBot, id)
    }
    return ExecuteHam(Ham_Weapon_ExtractClipAmmo, id, 0)
#else
    return ExecuteHam(Ham_Weapon_ExtractClipAmmo, id, 0)
#endif
}

Updates

VERSION "2.1.3" 15d
  • - Okay very hard to say this is his lastest version. this plugins can became from numberous version to work with ZBOT i don't trust to work ZP4.3 of not ???
Is you installed it to Zombie Plague 4.3 will crash the server i tries and it crash
Sign up to access this!

No comments yet

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

ConnorMcLeod
ConnorMcLeod

Submitter

Rainbowdash98 avatar
Rainbowdash98 Joined 4y ago
Offline
Rainbowdash98
Redistributor
Are you the owner? Request Ownership
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

License

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 0
  • 192
  • 18d
  • 15d
  • 15d

More from Submitter

More AMX/X Scripts Scripts