AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   block show menu (https://forums.alliedmods.net/showthread.php?t=99875)

Debesėlis 08-10-2009 08:52

block show menu
 
With this code player can enable menu when 2 round hasn't started... I need that blocked the menu until the round begins...

PHP Code:

    if ( get_user_flags(id) & ACCESS && RoundCount )
    {
        if ( 
get_cvar_num("amx_script") == )
        {
            
client_print(idprint_chat"%L"LANG_PLAYER"WAIT");
            return 
PLUGIN_HANDLED;
        }
    } 

P.S. I use
PHP Code:

    register_logevent("event_round_end"2"0=World triggered""1=Round_End"); 

Maybe need use?
PHP Code:

register_logevent"event_round_start"2"1=Round_Start" ); 



All times are GMT -4. The time now is 18:17.

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