Raised This Month: $51 Target: $400
 12% 

Simple Restart Round After MapChange


Post New Thread Reply   
 
Thread Tools Display Modes
Author
graczu
Senior Member
Join Date: Mar 2006
Plugin ID:
87
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Simple Plugin that restart round on the new map after 60s
    Old 07-13-2007 , 09:49   Simple Restart Round After MapChange
    Reply With Quote #1

    Plugin will restart round after 60s on the new map.

    He will say countdowns on 30s, 20s, 10s, 1s: * [PLAY] GL & HF :-) *
    Attached Files
    File Type: sp Get Plugin or Get Source (game_restart_en.sp - 6572 views - 1.6 KB)
    __________________

    Last edited by graczu; 07-13-2007 at 09:55.
    graczu is offline
    zebbyrocks
    Junior Member
    Join Date: Jul 2007
    Old 07-13-2007 , 10:53   Re: [Plugin] Simple Restart Round After MapChange
    Reply With Quote #2

    Very useful mod. Can this be updated to be like mani with unlimited HE grenades and knives for this 60 seconds?
    zebbyrocks is offline
    graczu
    Senior Member
    Join Date: Mar 2006
    Old 07-13-2007 , 11:10   Re: [Plugin] Simple Restart Round After MapChange
    Reply With Quote #3

    When i will disolve problem with my SourceMod server crash, i will think to update it :]
    __________________
    graczu is offline
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 07-14-2007 , 01:59   Re: [Plugin] Simple Restart Round After MapChange
    Reply With Quote #4

    A lot of that seems somewhat unnecessary, can't your trigger
    mp_restartgame 60 OnMapLoad?
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers
    FlyingMongoose is offline
    graczu
    Senior Member
    Join Date: Mar 2006
    Old 07-14-2007 , 11:36   Re: [Plugin] Simple Restart Round After MapChange
    Reply With Quote #5

    Quote:
    Originally Posted by FlyingMongoose View Post
    A lot of that seems somewhat unnecessary, can't your trigger
    mp_restartgame 60 OnMapLoad?
    If i do this, there will be no comments like:

    [SM] Round restart in: 30s
    __________________
    graczu is offline
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 07-14-2007 , 16:09   Re: [Plugin] Simple Restart Round After MapChange
    Reply With Quote #6

    You can do that via a TIMER_REPEAT
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers
    FlyingMongoose is offline
    API
    Veteran Member
    Join Date: May 2006
    Old 08-27-2007 , 02:29   Re: [Plugin] Simple Restart Round After MapChange
    Reply With Quote #7

    Approved, sorry for the late approval.
    FlyingMongoose: I think that relying on valve to count 60 seconds is a bit much for it's brain to handle.
    __________________
    API is offline
    Send a message via AIM to API
    Kaschenko
    SourceMod Donor
    Join Date: Apr 2006
    Location: Country: Russia; City: M
    Old 09-11-2007 , 18:28   Re: Simple Restart Round After MapChange
    Reply With Quote #8

    correct please
    Attached Files
    File Type: log errors_20070912.log (956 Bytes, 684 views)
    __________________
    Kaschenko is offline
    Send a message via ICQ to Kaschenko Send a message via MSN to Kaschenko Send a message via Skype™ to Kaschenko
    J!b
    Junior Member
    Join Date: Jul 2007
    Old 01-05-2008 , 11:36   Re: Simple Restart Round After MapChange
    Reply With Quote #9

    Hello!

    A possibility to translate, please.
    The ability to configure it.
    And more options ;)

    Thanks ;)
    J!b is offline
    DataMatrix
    Senior Member
    Join Date: Aug 2005
    Location: UK, Liverpool
    Old 09-26-2008 , 05:07   Re: Simple Restart Round After MapChange
    Reply With Quote #10

    Changed to be more optimised (I think). Tested and working on my Zombie Master server.

    Sorry for very old bump.

    Code:
    #include <sourcemod>
    
    #define VERSION "1.1"
    
    new Handle:g_Timer_N = INVALID_HANDLE;
    new Handle:g_Timer_1 = INVALID_HANDLE;
    new Handle:g_Timer_2 = INVALID_HANDLE;
    new Handle:g_Timer_3 = INVALID_HANDLE;
    new Handle:g_Timer_4 = INVALID_HANDLE;
    new Handle:g_Timer_S = INVALID_HANDLE;
    
    public Plugin:myinfo =
    {
    	name = "Simple Restart Round After 60s on MapChange",
    	author = "graczu",
    	description = "After 60s on Mapchange, plugin will restart round!",
    	version = VERSION,
    	url = "http://www.sourcemod.net/"
    };
    
    public OnPluginStart()
    {
    	CreateConVar("mapchangerestartround_version", VERSION, "Restart Round after Mapchange Version", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
    }
    
    public OnMapStart()
    {
    	g_Timer_N = CreateTimer(15.0, SayNotify)
    	g_Timer_1 = CreateTimer(30.0, SayRestart1)
    	g_Timer_2 = CreateTimer(40.0, SayRestart2);
    	g_Timer_3 = CreateTimer(50.0, SayRestart3);
    	g_Timer_4 = CreateTimer(60.0, RoundRestart);
    	g_Timer_S = CreateTimer(61.0, SayRestart4);
    }
    
    public Action:SayNotify(Handle:timer)
    {
    	PrintToChatAll("[SM] Round restart in: 45s");
    	KillTimer(g_Timer_N);		
    }
    
    public Action:SayRestart1(Handle:timer)
    {
    	PrintToChatAll("[SM] Round restart in: 30s");
    	KillTimer(g_Timer_1);		
    }
    
    public Action:SayRestart2(Handle:timer)
    {
    	PrintToChatAll("[SM] Round restart in: 20s");
    	KillTimer(g_Timer_2);		
    }
    
    public Action:SayRestart3(Handle:timer)
    {
    	PrintToChatAll("[SM] Round restart in: 10s");
    	KillTimer(g_Timer_3);		
    }
    
    public Action:RoundRestart(Handle:timer)
    {
    	ServerCommand("roundrestart");
    	ServerCommand("mp_restartgame 1");
    	KillTimer(g_Timer_4);
    }
    
    public Action:SayRestart4(Handle:timer)
    {
    	PrintToChatAll("[SM] Round restarted.");
    	KillTimer(g_Timer_S);
    }

    Last edited by DataMatrix; 09-26-2008 at 05:12.
    DataMatrix is offline
    Send a message via MSN to DataMatrix
    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 07:18.


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