AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Bot support question (https://forums.alliedmods.net/showthread.php?t=172145)

Snaker beatter 11-16-2011 08:45

Bot support question
 
if a code does not support bot it means it works on real players, correct?

Sorry for noob question, i have to be sure

fysiks 11-16-2011 20:53

Re: Bot support question
 
If it doesn't support bots and also doesn't support real players then it wouldn't do anything and therefore wouldn't exist. Test it out.

Snaker beatter 11-16-2011 21:16

Re: Bot support question
 
But i use a plugin that only effects on me not on bots :(

fysiks 11-16-2011 22:10

Re: Bot support question
 
Quote:

Originally Posted by Snaker beatter (Post 1597828)
But i use a plugin that only effects on me not on bots :(

So what's your point?

Snaker beatter 11-16-2011 22:33

Re: Bot support question
 
If i'm write or its in the plugin

yokomo 11-16-2011 22:44

Re: Bot support question
 
You are using zbot right? no need to lie because we know it from the start. Use native from Mercylezz's czbotapi to registerham for zbot then problem solve.

Snaker beatter 11-16-2011 23:33

Re: Bot support question
 
thanks yokomo

ConnorMcLeod 11-16-2011 23:56

Re: Bot support question
 
1 Attachment(s)
Install the attached plugin.
Then in your plugin put this function :

PHP Code:

public cz_bot_ham_registerableid )
{



Example :
PHP Code:

public plugin_init()
{
    
// register as usual for normal players
    
RegisterHam(Ham_Spawn"player""Player_Spawn"1)
}

public 
cz_bot_ham_registerablebot_index )
{
    
// register for bots here
    
RegisterHamFromEntity(Ham_Spawnbot_index"Player_Spawn"1)
}

public 
Player_Spawnid )
{
    if( 
is_user_alive(id) )
    {
        
set_user_health(id150)
    }



Snaker beatter 11-17-2011 00:09

Re: Bot support question
 
I tried cs_ham_bots_api.inc and work also your example works too.

THanks guys

ConnorMcLeod 11-17-2011 00:17

Re: Bot support question
 
Mine should be more efficient.


All times are GMT -4. The time now is 08:27.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.