That's very similar to what I'm doing:
Code:
[...]
public fw_keyvalue(entid, kvdid)
{
new keyname[16]
get_kvd(kvdid, KV_KeyName, keyname, 15)
if(!g_BombAdded) {
g_BombAdded = true
for(new i = 0; i < 2; i++)
g_MapBomb[i] = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "func_bomb_target"))
}
[...]
}
check the full
script
Bomb sites are created and bomb planting/defusuing is ok, but cts still can't buy the defuser...
I've also tried to replace "hostage_entity" for "info_bomb_target" but the problem will still remain.