Raised This Month: $ Target: $400
 0% 

hook cz bots spawn pre


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 03-20-2011 , 09:13   hook cz bots spawn pre
Reply With Quote #1

so...as the tile says
how can i hook the czbots spawn pre?
i need to set their human class then
client_putinserver is too soon
and spawn post is too late
please help
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 03-20-2011 , 09:19   Re: hook cz bots spawn pre
Reply With Quote #2

Quote:
Originally Posted by georgik57 View Post
so...as the tile says
how can i hook the czbots spawn pre?
i need to set their human class then
client_putinserver is too soon
and spawn post is too late
please help
Why don't use
PHP Code:
public client_connected(indexSomeBoolen[index] = true 
__________________
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
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 03-20-2011 , 09:20   Re: hook cz bots spawn pre
Reply With Quote #3

as i said
putinserver is too soon and connect is earlier than that
so...
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 03-20-2011 , 09:37   Re: hook cz bots spawn pre
Reply With Quote #4

Quote:
Originally Posted by georgik57 View Post
as i said
putinserver is too soon and connect is earlier than that
so...
You want to set random human classes for BOT?

In my zp gender plugin i use client_putinserver(index) to set random gender for BOT, and they will spawn with random gender. There is no problem with it. You need to modify your core plugin to set human classes on spawn event.

I use this method for my zp gender plugin.
__________________
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
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 03-20-2011 , 14:28   Re: hook cz bots spawn pre
Reply With Quote #5

if i set a random human class for the bots on putinserver it doesn't solve the problem and also some other strange bugs occur like i(as human) can kill other human bots, they can kill eachother even if they are both in the same team, etc
so i'm all out of ideas
and i really need to do this to support CZ
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Old 03-24-2011, 14:03
georgik57
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-24-2011 , 14:29   Re: hook cz bots spawn pre
Reply With Quote #6

Why putinserver doesn't work ? i mean show code or explain better what you do.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 03-24-2011 , 14:43   Re: hook cz bots spawn pre
Reply With Quote #7

if i use putinserver strange bugs start happening like bots can kill each other while on the same team, etc
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-24-2011 , 15:05   Re: hook cz bots spawn pre
Reply With Quote #8

You don't explain anything you do in the code, don't expect any help then.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 03-24-2011 , 15:21   Re: hook cz bots spawn pre
Reply With Quote #9

i've fixed it
logic error -.-
thank you both
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-24-2011 , 17:29   Re: hook cz bots spawn pre
Reply With Quote #10

Quote:
Originally Posted by georgik57 View Post
bump
anyone please?
Don't bump until 2 weeks have passed since last post.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 14:41.


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