Quote:
Originally Posted by ConnorMcLeod
This should be more accurate :
PHP Code:
#include <amxmodx>
#include <fakemeta>
#define VERSION "0.0.1"
#define PLUGIN "Normal Spawn On New Round"
new const CSDM_SPAWN_PRESET_PLUGIN_NAME[] = "csdm_spawn_preset.amxx"
new m_usResetDecals
public plugin_init()
{
register_plugin(PLUGIN, VERSION, "ConnorMcLeod")
m_usResetDecals = engfunc(EngFunc_PrecacheEvent, 1, "events/decal_reset.sc")
register_event("HLTV", "Event_HLTV_New_Round", "a", "1=0", "2=0")
register_forward(FM_PlaybackEvent, "OnPlaybackEvent_P", 1)
}
public Event_HLTV_New_Round()
{
pause("ac",CSDM_SPAWN_PRESET_PLUGIN_NAME)
}
public OnPlaybackEvent_P(flags, pInvoker, eventindex)
{
if( eventindex == m_usResetDecals )
{
unpause("ac",CSDM_SPAWN_PRESET_PLUGIN_NAME)
}
}
|
thank you but
i don't know why it doesn't work with me ( i tested with my listenserver),
when the round ends and when using mp_restartround 1 ,player don't respawn at default location