Code:
public plugin_precache() {
register_forward(FM_KeyValue, "fwKeyValue")
}
public fwKeyValue() {
static bool:x
if(!x) {
x = true
engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "func_bomb_target"))
}
}
or
Code:
public plugin_precache() {
engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "func_bomb_target"))
}
works fine.