Quote:
Originally Posted by joaquimandrade
Ok fellow i spent this last hours doing something for you that I hope it works as you wish.
First download the new Rage Beta 2 (it's a must) that I took advantage to upload after fixing bugs and stuff that we checked. Then download the file "module_hambot_bin.zip" it should have everything needed there. If it works tell arkshine to make you a signature.
After installing this:
Before anything check if you have errors with the command "rage errors"
Then in plugins do like:
PHP Code:
RegisterHam(Ham_Spawn,"czbot","OnSpawn")
____________________
About the update:
French guy that is close friend of connor: now I know the reason to "rage handlers" crash (is because of string handling) but i didn't fix it because I need to fully update rage to have a new class to manage strings because working with char* is a pain and can fuck up in specific conditions and stuff like that.
Warning for Connor and anyone that is coding a sub module:
I update the class FunctionForModule so download the new src file you can find in rage src or in the src of the module on this post.
|
This no longer hooks czbots for me when using
Code:
RegisterHam(Ham_Spawn, "czbot", "fwdPlayerSpawn", 1);
It does hook humans with that code though... player classname..
I deleted my test code or i would post.
I did update the sig files... (new cz ds is what i tested on)
PHP Code:
public fwdPlayerSpawn(id)
{
client_print(0, print_chat, "%s spawned", is_user_bot(id) ? "bot":"human");
}
I got human spawn spammed 3 times.. (me vs 4 bots) I added in get_user_name so i can see better who is spawning it showed my name all 3 messages.