AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Restart message (https://forums.alliedmods.net/showthread.php?t=159415)

doondook 06-16-2011 19:15

Restart message
 
How to remove the center restart message "The game will restart in x seconds!"? I use server_cmd("sv_restart x"). In soccerjam mod it doesn't show, but I still dunno why :).

Exolent[jNr] 06-17-2011 10:34

Re: Restart message
 
Code:
public plugin_init( ) {     register_message( get_user_msgid( "TextMsg" ), "MessageTextMsg" ); } public MessageTextMsg( iMsgID, iDest, iReceiver ) {     new const Game_w[ ] = "#Game_w";         new szMessage[ sizeof( Game_w ) + 1 ];     get_msg_arg_string( 2, szMessage, charsmax( szMessage ) );         return equal( szMessage, Game_w, charsmax( Game_w ) ) ? PLUGIN_HANDLED : PLUGIN_CONTINUE; }

doondook 06-17-2011 21:50

Re: Restart message
 
thanks!


All times are GMT -4. The time now is 23:30.

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