What's wrong here? Model string is NULL.
(I would like to replace the model of monster_satchel next)
Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <hamsandwich>
#include <engine>
#define PLUGIN "Satchels"
#define VERSION "1.0"
#define AUTHOR "Phant"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "monster_satchel", "fw_SatchelSpawnPre", 0)
}
public fw_SatchelSpawnPre(ent)
{
if(pev_valid(ent))
{
new s_Model[32]
pev(ent, pev_model, s_Model, 31)
client_print(0, print_chat, "SATHCEL MODEL: %s", s_Model)
}
}