Raised This Month: $32 Target: $400
 8% 

Instant sv_restartround


Post New Thread Reply   
 
Thread Tools Display Modes
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 07-11-2014 , 13:58   Re: Instant sv_restartround
Reply With Quote #11

He doesn't want the delay eagle. You code is pretty useless actually, as the restart round command is already included in normal amx package.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 07-11-2014 , 15:07   Re: Instant sv_restartround
Reply With Quote #12

Solved. Add one more set_mp_pdata:
PHP Code:
set_mp_pdata("m_bCompleteReset",true); 
Phant is offline
Send a message via ICQ to Phant
WaLkMaN
Senior Member
Join Date: Oct 2010
Location: Varna, Bulgaria
Old 04-23-2023 , 12:38   Re: Instant sv_restartround
Reply With Quote #13

With ReAPI:

Code:
#include <amxmodx> #include <reapi> public plugin_init() {     register_plugin( "Instant Round Restart", "0.0.1", "Juice" );     register_concmd( "amx_restartround", "cmdRestart", -1, "Restart the round instantly" ); } public cmdRestart( id ) {     client_print( 0, print_center, "The game will restart in 0.1 SECOND" );     RestartRound( .delay = 0.1 ); } RestartRound( const Float:delay ) {     set_member_game( m_flRestartRoundTime, get_gametime() + delay ); // deprecated name m_fTeamCount in ReGameDLL_CS     set_member_game( m_bRoundTerminating, true );     set_member_game( m_bCompleteReset, true ); }
__________________

Last edited by WaLkMaN; 04-23-2023 at 16:27.
WaLkMaN 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 08:01.


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