Raised This Month: $ Target: $400
 0% 

How do I spawn a bot after I create it??


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Urahara
Member
Join Date: Apr 2006
Old 04-26-2006 , 18:45  
Reply With Quote #3

Ohayo Geesu-san!

that particular FM function returns the ID of the bot Geesu-san! if you will simply make it connect using the dllfunc for clientconnect im sure you will get a fully functional bot, nyaah?

if not please try putinserver as you see bots are clients too and must not be simply forcibly spawned like that no no they get sad if they are not properly spawned

something along these lines works for ESF and SVEN Geesu-san!

Code:
public spawn_bot(id)
{
	new ent = engfunc(EngFunc_CreateFakeClient,"Urahara")
	if(!ent) return 0;

	set_user_info(ent,"model","BLEACHurahara")

	dllfunc(DLLFunc_ClientPutInServer,ent)

	finish_spawn(ent)

	return ent;
}

where finish_spawn is equivilent to a generic list of DispatchKeys though a ClientConnect should work better!
__________________

Urahara's Shop is open! For all your needs:
http://urahara.amxmodx.org/forums/
Projects:
Ururu AntiCheat
MetaScript Library
Jinta Hax
Urahara is offline
 



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 05:03.


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