 |
|
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
|

10-08-2015
, 01:31
Re: [HELP] RegisterHam with csbots?
|
#8
|
Quote:
Originally Posted by CrazY.
Hi , I tried to register a ham to the csbots but i am getting a compile error , the code is this:
PHP Code:
RegisterHam(Ham_Spawn, "player", "fw_HamPlayerSpawnPost", 1, true);
|
You need a whole new amxmodx 1.8.3 developer build package, this feature only exist on new hamsandwich module. Official amxmodx 1.8.2 doesn't have this function.
From hamsandwich.inc (amxmodx 1.8.3 dev):
Quote:
/**
* Hooks the virtual table for the specified entity class.
* An example would be: RegisterHam(Ham_TakeDamage, "player", "player_hurt");
* Look at the Ham enum for parameter lists.
*
* @param function The function to hook.
* @param EntityClass The entity classname to hook.
* @param callback The forward to call.
* @param post Whether or not to forward this in post.
* @param specialbot Whether or not to enable support for bot without "player" classname.
* @return Returns a handle to the forward. Use EnableHamForward/DisableHamForward to toggle the forward on or off.
*/
native HamHook:RegisterHam(Ham:function, const EntityClass[], const Callback[], Post=0, bool:specialbot = false);
|
__________________
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
Last edited by yokomo; 10-08-2015 at 01:32.
|
|
|
|