I am coding with two problems.
1- I'm trying to remove the
fakemeta of the
zombie_plague but I have a compile error , this is the code:
PHP Code:
// Set the right model
if (get_pcvar_num(cvar_adminmodelshuman) && (get_user_flags(id) & g_access_flag[ACCESS_ADMIN_MODELS]))
{
iRand = random_num(0, ArraySize(model_admin_human) - 1)
ArrayGetString(model_admin_human, iRand, g_playermodel[id], charsmax(g_playermodel[]))
if (g_set_modelindex_offset) fm_cs_set_user_model_index(id, ArrayGetCell(g_modelindex_admin_human, iRand))
}
PHP Code:
// Set the right model
if (get_pcvar_num(cvar_adminmodelshuman) && (get_user_flags(id) & g_access_flag[ACCESS_ADMIN_MODELS]))
{
iRand = random_num(0, ArraySize(model_admin_human) - 1)
ArrayGetString(model_admin_human, iRand, g_playermodel[id], charsmax(g_playermodel[]))
if (g_set_modelindex_offset) cs_set_user_model(id, ArrayGetCell(g_modelindex_admin_human, iRand))
}
2- I tried this , but I am in error at compile time , the code is this:
PHP Code:
#include < amxmodx >
#include < fun >
#include < cstrike >
#include < fakemeta >
#include < hamsandwich >
#if defined CSCZBOT_SUPPORT
#include < cs_ham_bots_api >
#endif
#include < zombieplague >
#define CSCZBOT_SUPPORT //Uncomment this line to add damage support in CS/CZ bots
PHP Code:
public plugin_init()
{
// Hams
#if defined CSCZBOT_SUPPORT
RegisterHamBots(Ham_TakeDamage, "fw_TakeDamage")
#endif
}
How to fix?