Raised This Month: $ Target: $400
 0% 

[HELP] RegisterHam for csbots?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 10-08-2015 , 01:31   Re: [HELP] RegisterHam with csbots?
Reply With Quote #8

Quote:
Originally Posted by CrazY. View Post
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"1true); 
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.
yokomo 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 22:15.


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