Quote:
Originally Posted by RaZ_HU
Hi!
Can I place the required entities on maps without editing them (spawn them by AMXX)?
I have some map ideas, but I have no knowledge in mapping (also I can't find source for those maps)
|
You can use the Custom Entities API, which is already included in the Halloween Mod:
https://forums.alliedmods.net/showthread.php?p=2467312
List of the mod entities:
https://github.com/Hedgefog/cs-hallo...ities/index.md
Example:
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <api_custom_entities>
public plugin_init()
{
register_plugin("PLUGIN", "VERSION", "AUTHOR");
SpawnGhost(Float:{ 0.0, 0.0, 0.0});
}
public SpawnGhost(const Float:vOrigin[3])
{
new temp = true;
new ent = CE_Create("hwn_npc_ghost", vOrigin, temp);
dllfunc(DLLFunc_Spawn, ent);
}
To remove entity use
You can also use the "ce_spawn entity_name" admin console command to spawn a specific entity on the origin you are located.
__________________