AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   PROBLEM GAME COMENCING (https://forums.alliedmods.net/showthread.php?t=129435)

Bello 06-12-2010 19:54

PROBLEM GAME COMENCING
 
Hi friends am new to the forum and would like to know how do i block the restart of the game comencing, I have this code:

PHP Code:

public plugin_init()
    {
       
register_message(get_user_msgid("TextMsg"), "message_TextMsg")
    }

public 
message_TextMsg(msg_idmsg_destmsg_entity)
    {
        static 
buffer[32]
    
        
get_msg_arg_string(2buffer31)
    
        if(
equal(buffer"#Game_Commencing") || equal(buffer"#Game_will_restart_in"))
            return 
PLUGIN_HANDLED
    
        
return PLUGIN_CONTINUE
    


Sorry for my bad english!

Bello2 06-21-2010 16:52

Re: PROBLEM GAME COMENCING
 
some help?

ot_207 06-21-2010 16:56

Re: PROBLEM GAME COMENCING
 
http://wiki.alliedmods.net/Half-Life...ts#HudTextArgs

Bello2 06-21-2010 17:07

Re: PROBLEM GAME COMENCING
 
I do not understand that link...

My code works very well, what i want to know is as blocking the restart that runs the game comencing

fysiks 06-21-2010 18:22

Re: PROBLEM GAME COMENCING
 
I'm confused on your motive. Are you trying to prevent the game from even starting? Or are you just trying to stop messages/sound from displaying/being heard?

Note: I don't play CS so I'm not really sure what "game commencing" does.

Kreation 06-21-2010 18:29

Re: PROBLEM GAME COMENCING
 
For Example: If there is one player in the server and another joins on the opposite team, the Game Commencing message will come up and about a second later they restart and it's the beginning of the round.

Bello2 06-21-2010 18:40

Re: PROBLEM GAME COMENCING
 
Quote:

Originally Posted by Kreation (Post 1215810)
For Example: If there is one player in the server and another joins on the opposite team, the Game Commencing message will come up and about a second later they restart and it's the beginning of the round.

Exact that is what i want blocked, I achieved blocked msg that appears in the middle of the screen but not the restart that runs the game comencing :(

Alucard^ 06-21-2010 18:56

Re: PROBLEM GAME COMENCING
 
Use Infinity Rounds by Arkshine.

Bello2 06-21-2010 19:11

Re: PROBLEM GAME COMENCING
 
Quote:

Originally Posted by Alucard^ (Post 1215826)
Use Infinity Rounds by Arkshine.

alucard Exactly i'm using that plugin, and it is that i is causing the error you explain to see if your me aid:

When I open my server, the plugin infinite round of arkshine this activated, After during the game I run infiniteround_toggle 0, To run this command that served to pause plugin, It is when you run the game comencing and is what i'm trying to eliminate...

P.S: When I run the command provided there are 10 players on the server

fysiks 06-21-2010 19:57

Re: PROBLEM GAME COMENCING
 
OMG, learn to speak english or stop posting in an english forum.


All times are GMT -4. The time now is 14:53.

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