Good try, but instead of using old amxx natives you can take a look at current amxmodx 1.8.3 developer
https://github.com/alliedmodders/amxmodx
I've review current progress on developer build it seems amxmodx has changes too much. You can try it.
For example cstrike module has been updated, you don't need to use any task (delay) to set player model/team. Also you have an option whether to send teaminfo or not. Also cs_set_user_model can use modelindex.. See cstrike.inc for details.
You can also remove all fakemeta stocks and replace it with cstrike/engine natives.. Engine module also been updated..
Ok to hook ham forward for csbot you just need to use default RegisterHam native:
PHP Code:
RegisterHam(Ham:function, const EntityClass[], const Callback[], Post=0, bool:specialbot = false)
Just set bool:specialbot to true.
For example:
PHP Code:
RegisterHam(Ham_Spawn, "player", "OnPlayerSpawnPost", 1, true)
__________________