|
Author
|
Message
|
|
Senior Member
|

06-20-2018
, 10:19
The Best Way to Remove
|
#1
|
I want to remove some entities but I don't know the best way to remove.
Spoiler
PHP Code:
//Remove some entities
new const g_remove_entities[][] =
{
"func_bomb_target",
"info_bomb_target",
"hostage_entity",
"monster_scientist",
"func_hostage_rescue",
"info_hostage_rescue",
"info_vip_start",
"func_vip_safetyzone",
"func_escapezone",
"func_buyzone"
}
// Remove Player Respawn Weapon
public plugin_cfg()
{
engfunc(EngFunc_RemoveEntity, engfunc(EngFunc_FindEntityByString, -1, "classname", "player_weaponstrip"));
engfunc(EngFunc_RemoveEntity, engfunc(EngFunc_FindEntityByString, -1, "classname", "game_player_equip"));
}
|
|
|
|