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

Block game Commencing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 08-15-2007 , 12:11   Block game Commencing
Reply With Quote #1

hi i am trying to block game commencing message and prevent it frome restart but this dosent work eny ideas? how to make it work?

PHP Code:
register_event"TextMsg""BLOCK""a""2=#Game_Commencing""2=#Game_will_restart_in" 
PHP Code:
public BLOCK()
{
 return 
PLUGIN_HANDLED

__________________
If one of my plugins become broken, contact me by mail. [email protected]
fxfighter is offline
Send a message via MSN to fxfighter
raa
Senior Member
Join Date: Oct 2005
Old 08-15-2007 , 14:02   Re: Block game Commencing
Reply With Quote #2

I'm pretty sure that by the time that event is ran, the restart has already happened. Are you trying to stop people from doing sv_restart?
__________________
raa is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 08-15-2007 , 14:24   Re: Block game Commencing
Reply With Quote #3

No.
Example.
Quote:
one player is playing on a server,
another one join.
then the Game_Commencing appears and restart the server.
i just want it to be blocked and dont restart the server....
__________________
If one of my plugins become broken, contact me by mail. [email protected]

Last edited by fxfighter; 08-15-2007 at 14:40.
fxfighter is offline
Send a message via MSN to fxfighter
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 08-15-2007 , 15:12   Re: Block game Commencing
Reply With Quote #4

nearly impossible
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 08-15-2007 , 16:00   Re: Block game Commencing
Reply With Quote #5

Quote:
Originally Posted by kp_uparrow View Post
nearly impossible
lulz

here you go:

Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "stupok69" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         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"))         return PLUGIN_HANDLED         return PLUGIN_CONTINUE }
__________________
stupok is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 08-15-2007 , 16:26   Re: Block game Commencing
Reply With Quote #6

It blocked the message but it still restarted is thare enyway to fix it?
or can you disable/remove/block the sv_restart command?
__________________
If one of my plugins become broken, contact me by mail. [email protected]

Last edited by fxfighter; 08-15-2007 at 16:42.
fxfighter is offline
Send a message via MSN to fxfighter
stupok
Veteran Member
Join Date: Feb 2006
Old 08-15-2007 , 16:48   Re: Block game Commencing
Reply With Quote #7

Oh I thought you just wanted to block the text.

Here's how you can block sv_restart: don't use it. Or, use sv_restart 0.
__________________
stupok is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 08-15-2007 , 17:01   Re: Block game Commencing
Reply With Quote #8

Quote:
Here's how you can block sv_restart: don't use it. Or, use sv_restart 0.
i dont get it type sv_restart 0?
nvm going to bed.
__________________
If one of my plugins become broken, contact me by mail. [email protected]
fxfighter is offline
Send a message via MSN to fxfighter
stupok
Veteran Member
Join Date: Feb 2006
Old 08-15-2007 , 17:08   Re: Block game Commencing
Reply With Quote #9

As far as I know you can't block the command "sv_restart". The only thing I can think of is that in your server.cfg or somewhere else you have "sv_restart X" (X is any number). The solution to that problem is changing X to 0. That way, "sv_restart" won't be executed.
__________________
stupok is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 08-16-2007 , 06:27   Re: Block game Commencing
Reply With Quote #10

i took a look in my server cfg and listen cfg but did have sv_restart x
__________________
If one of my plugins become broken, contact me by mail. [email protected]

Last edited by fxfighter; 08-16-2007 at 06:48.
fxfighter is offline
Send a message via MSN to fxfighter
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 20:02.


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