AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Colored adminchat problems (https://forums.alliedmods.net/showthread.php?t=58404)

DTE 07-25-2007 10:36

Colored adminchat problems
 
Since we're not getting any response on nsmod.org I'm also posting it here hoping that someone can figure out what's wrong with it

http://www.nsmod.org/forums/index.php?showtopic=10155

TE also posted a list of plugins running on the server as a reply on that thread

Tkx in advance

_Master_ 07-25-2007 11:44

Re: Colored adminchat problems
 
Code:

get_players(players, inum)
    new message[192]
    formatex(message, 191, "%c%s%s: %s", 2, "(ADMINS) ", name, input_message)
 
    for (i = 1; i <= g_maxplayers; ++i)
    {
        if (access(players[i], ADMIN_CHAT) && is_user_connected(i))
        {

now change
g_maxplayers to inum
i=1 to i=0
++i to i++
remove is_user_connected(i)

should work


All times are GMT -4. The time now is 21:33.

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