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

Block game Commencing


Post New Thread Reply   
 
Thread Tools Display Modes
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 08-16-2007 , 11:29   Re: Block game Commencing
Reply With Quote #11

Hows about when you receive a "game will restart" message, issue sv_restart 0 to the server console?
EDIT: something like this, maybe?
Code:
public plugin_init() {     register_message(get_user_msgid("TextMsg"), "message_TextMsg") } public message_TextMsg(msg_id, msg_dest, msg_entity) {     static buffer[32]     get_msg_arg_string(2, buffer, 31)     if(equal(buffer, "#Game_Commencing") || equal(buffer, "#Game_will_restart_in"))     {         server_cmd("sv_restart 0")         server_exec() // doubt you need this ... can't hurt though.         return PLUGIN_HANDLED     }         return PLUGIN_CONTINUE }



Or if you want a truly mind-numbingly inefficient method you could set_task a looping task to spam sv_restart 0 into the server console ...

This is of course, assuming that the game *does* restart itself by using sv_restart ...

Last edited by purple_pixie; 08-16-2007 at 11:39.
purple_pixie is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 08-16-2007 , 11:42   Re: Block game Commencing
Reply With Quote #12

already fixed the bug with a fake client but thx enyway.
__________________
If one of my plugins become broken, contact me by mail. [email protected]
fxfighter is offline
Send a message via MSN to fxfighter
LFccc
New Member
Join Date: Dec 2023
Old 02-28-2024 , 20:44   Re: Block game Commencing
Reply With Quote #13

Quote:
Originally Posted by fxfighter View Post
already fixed the bug with a fake client but thx enyway.
I want to how to fix this problem. Thanks, fxfighter
LFccc is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 02-29-2024 , 07:05   Re: Block game Commencing
Reply With Quote #14

Maybe mp_round_infinite can help you. Try flag mp_round_infinite "b"
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 03-05-2024 , 13:38   Re: Block game Commencing
Reply With Quote #15

Quote:
Originally Posted by LFccc View Post
I want to how to fix this problem. Thanks, fxfighter
Did u try?
Quote:
Originally Posted by purple_pixie View Post
Hows about when you receive a "game will restart" message, issue sv_restart 0 to the server console?
EDIT: something like this, maybe?
Code:
public plugin_init() {     register_message(get_user_msgid("TextMsg"), "message_TextMsg") } public message_TextMsg(msg_id, msg_dest, msg_entity) {     static buffer[32]     get_msg_arg_string(2, buffer, 31)     if(equal(buffer, "#Game_Commencing") || equal(buffer, "#Game_will_restart_in"))     {         server_cmd("sv_restart 0")         server_exec() // doubt you need this ... can't hurt though.         return PLUGIN_HANDLED     }         return PLUGIN_CONTINUE }



Or if you want a truly mind-numbingly inefficient method you could set_task a looping task to spam sv_restart 0 into the server console ...

This is of course, assuming that the game *does* restart itself by using sv_restart ...
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
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 13:32.


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