Raised This Month: $ Target: $400
 0% 

Pause a plugin before roundstart and unpause after few second


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nss
Junior Member
Join Date: Feb 2011
Old 04-23-2012 , 08:09   Re: Pause a plugin before roundstart and unpause after few second
Reply With Quote #1

Quote:
Originally Posted by ConnorMcLeod View Post
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(PLUGINVERSION"ConnorMcLeod")
    
m_usResetDecals engfunc(EngFunc_PrecacheEvent1"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(flagspInvokereventindex)
{
    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
nss is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-23-2012 , 19:47   Re: Pause a plugin before roundstart and unpause after few second
Reply With Quote #2

Previous one was only for new round spawns sorry, also it would be better to directly edit csdm plugin, try it (should work from round end to new round spawns :
Attached Files
File Type: sma Get Plugin or Get Source (csdm_spawn_preset.sma - 246 views - 5.1 KB)
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 04-24-2012 at 02:26.
ConnorMcLeod is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode