AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   formatex to client_print_color (https://forums.alliedmods.net/showthread.php?t=225263)

raducuursu 09-02-2013 14:15

formatex to client_print_color
 
Code:

public plugin_end()
{
        map_restoreOriginalTimeLimit();
}

public vote_setupEnd()
{
        g_originalTimelimit = get_cvar_float("mp_timelimit");

        new nextMap[32];
        if (get_pcvar_num(cvar_endOfMapVote))
        {
                formatex(nextMap, sizeof(nextMap)-1, "[not yet voted on]");
        }
        else

and


Code:

if (idxWinner == g_choiceCnt)
                {
                        if (get_pcvar_num(cvar_endOfMapVote))
                        {
                                new nextMap[32];
                                formatex(nextMap, sizeof(nextMap)-1, "[not yet voted on]");
                                map_setNext(nextMap);
                        }

[not yet Voted on] must in green
use # include <chatcolor>
client_print_color (, Grey)

simanovich 09-02-2013 14:34

Re: formatex to client_print_color
 
client_print_color supports format, so why use formatex?


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

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