View Single Post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-16-2011 , 06:05   Re: CZ Bots Class name
Reply With Quote #2

Works fine with orpheu but not with ham.

If you are interested, i'm using a multiforward to register bots so you don't have to exec multiple tasks through all plugins that need them.

Plugin then looks like this :

PHP Code:
#include <amxmodx>
#include <hamsandwich>

public plugin_init()
{
    
register_plugin("bla","bla","bla")
}

public 
cz_bot_ham_registerableid )
{
    
RegisterHamFromEntityHam_Spawnid"BotSpawn")
}

public 
BotSpawnid )
{
    
// your code here

Attached Files
File Type: sma Get Plugin or Get Source (ham_register_cz_bots.sma - 876 views - 1.8 KB)
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 07-19-2011 at 01:18.
ConnorMcLeod is offline