Quote:
Originally Posted by berni
You can use smlib_colors.games.txt.
Just put the it into your gamedata folder and put something like the following into the #default section:
Code:
"red_alternative" "1" // 1 = orange in the color table (See: https://github.com/bcserv/smlib/blob/master/scripting/include/smlib/colors.inc#L78)
This should work.
|
Ah thanks, I'll try it now. Originally I was editing the actual color.inc file and had changed all the greens in the "alternate column", then saving it and recompiling the plugins, but was still getting green anyway.
Quote:
Originally Posted by berni
Don't know, at first, those functions are not from smlib.
And you have to post more code so I can see how the used variables are defined.
But looks like either message is not a string or param1 not an integer cell.
|
Sure, those is particular are from the connect announce plugin. This is the code:
Code:
PrintFormattedMessageToAll( String:rawmsg[301], client )
{
decl String:message[301];
GetFormattedMessage( rawmsg, client, message, sizeof(message) );
PrintToChatAll( "%s", message );
}
Code:
public MenuHandler_Vote(Handle:menu, MenuAction:action, param1, param2)
{
if (action == MenuAction_End)
{
CloseHandle(menu);
}
else if (action == MenuAction_Select)
{
decl String:info[32], String:name[32];
new target;
GetMenuItem(menu, param2, info, sizeof(info), _, name, sizeof(name));
target = StringToInt(info);
if (target == 0)
{
PrintToChat(param1, "[SM] %s", "Player no longer available");
}
else
{
DisplayVoteMuteMenu(param1, target);
}
}
}
Hope I didn't miss anything.
Edit:
Just cam across another plugin, I having a bit of trouble with. It uses this
StatsPrintToChat2. Guess I can't use SMLib for that huh?