Raised This Month: $ Target: $400
 0% 

Restart round after change map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WhyThis
Senior Member
Join Date: May 2013
Old 08-11-2013 , 18:02   Restart round after change map
Reply With Quote #1

hello,
so it's a simple plugin:
it rsetart round after map change
if you don't undersund this is what i mean:
When map change: players play one round then it restart
WhyThis is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-11-2013 , 18:04   Re: Restart round after change map
Reply With Quote #2

Quote:
Originally Posted by WhyThis View Post
hello,
so it's a simple plugin:
it rsetart round after map change
Ummm, doesn't a round already start on a new map?

Quote:
Originally Posted by WhyThis View Post
if you don't undersund this is what i mean:
When map change: players play one round then it restart
restart what? Doesn't it already restart the round when a round finishes?
__________________
fysiks is offline
WhyThis
Senior Member
Join Date: May 2013
Old 08-11-2013 , 19:53   Re: Restart round after change map
Reply With Quote #3

this is a simple example:
players are playing in dust2 then admin (or plugin) change map to inferno.
players play 1 round .after this round set cvar to : sv_restart 1
WhyThis is offline
sonel
Member
Join Date: Jul 2012
Old 08-11-2013 , 23:45   Re: Restart round after change map
Reply With Quote #4

Try this:

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR ""

new bool:FirstRound true



public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
    
register_event("SendAudio""end_round""a""2&%!MRAD_terwin""2&%!MRAD_ctwin""2&%!MRAD_rounddraw")
}


public 
end_round()
{
    
    if (
FirstRound)
    {
        
server_cmd("sv_restart 1")
    }
    
    
FirstRound false
    
return PLUGIN_CONTINUE
    

sonel is offline
akash_guptacosmos
Senior Member
Join Date: May 2013
Location: India,Kolkata
Old 08-12-2013 , 02:45   Re: Restart round after change map
Reply With Quote #5

https://forums.alliedmods.net/showthread.php?p=346147

after 10 second of searching
Dont be lazy try to search first

Last edited by akash_guptacosmos; 08-12-2013 at 02:45.
akash_guptacosmos is offline
WhyThis
Senior Member
Join Date: May 2013
Old 08-12-2013 , 06:37   Re: Restart round after change map
Reply With Quote #6

Quote:
Originally Posted by sonel View Post
Try this:

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR ""

new bool:FirstRound true



public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
    
register_event("SendAudio""end_round""a""2&%!MRAD_terwin""2&%!MRAD_ctwin""2&%!MRAD_rounddraw")
}


public 
end_round()
{
    
    if (
FirstRound)
    {
        
server_cmd("sv_restart 1")
    }
    
    
FirstRound false
    
return PLUGIN_CONTINUE
    

Thanks that's what i was looking for it works
WhyThis 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 21:00.


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