Raised This Month: $ Target: $400
 0% 

Bot support question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 11-16-2011 , 08:45   Bot support question
Reply With Quote #1

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

Sorry for noob question, i have to be sure
__________________
Snaker beatter is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-16-2011 , 20:53   Re: Bot support question
Reply With Quote #2

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.
__________________
fysiks is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 11-16-2011 , 21:16   Re: Bot support question
Reply With Quote #3

But i use a plugin that only effects on me not on bots
__________________
Snaker beatter is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-16-2011 , 22:10   Re: Bot support question
Reply With Quote #4

Quote:
Originally Posted by Snaker beatter View Post
But i use a plugin that only effects on me not on bots
So what's your point?
__________________
fysiks is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 11-16-2011 , 22:33   Re: Bot support question
Reply With Quote #5

If i'm write or its in the plugin
__________________
Snaker beatter is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 11-16-2011 , 22:44   Re: Bot support question
Reply With Quote #6

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.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 11-16-2011 , 23:33   Re: Bot support question
Reply With Quote #7

thanks yokomo
__________________
Snaker beatter is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-16-2011 , 23:56   Re: Bot support question
Reply With Quote #8

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)
    }

Attached Files
File Type: sma Get Plugin or Get Source (ham_register_cz_bots.sma - 586 views - 1.8 KB)
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 11-16-2011 at 23:57.
ConnorMcLeod is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 11-17-2011 , 00:09   Re: Bot support question
Reply With Quote #9

I tried cs_ham_bots_api.inc and work also your example works too.

THanks guys
__________________
Snaker beatter is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-17-2011 , 00:17   Re: Bot support question
Reply With Quote #10

Mine should be more efficient.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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