AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hide say command? (https://forums.alliedmods.net/showthread.php?t=86532)

biscuit628 02-27-2009 04:34

Hide say command?
 
For example..timeleft.amxx
when i type "thetime"
it will show you "the time is now xxx\xxx\xxx"
---------------------------------------
Player:thetime <<How to hide this msg?
The time is now xxx\xxx\xxx
---------------------------------------

Mlk27 02-27-2009 04:53

Re: Hide say command?
 
use return PLUGIN_HANDLED

Wentix 02-27-2009 04:54

Re: Hide say command?
 
Replace "return PLUGIN_CONTINUE" to "return PLUGIN_HANDLED" in command "sayTimeLeft"

Code:

public sayTimeLeft(id)
{
        if (get_cvar_float("mp_timelimit"))
        {
                new a = get_timeleft()
               
                if (get_cvar_num("amx_time_voice"))
                {
                        new svoice[128]
                        setTimeVoice(svoice, 127, 0, a)
                        client_cmd(id, "%s", svoice)
                }
                client_print(0, print_chat, "%L:  %d:%02d", LANG_PLAYER, "TIME_LEFT", (a / 60), (a % 60))
        }
        else
                client_print(0, print_chat, "%L", LANG_PLAYER, "NO_T_LIMIT")
       
        return PLUGIN_HANDLED
}



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

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