AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [INC] Colors (1.0.5) (https://forums.alliedmods.net/showthread.php?t=96831)

bl4nk 12-26-2009 16:45

Re: [INC] Colors (1.0.2)
 
You're probably putting stuff in the wrong place.

Master53 12-28-2009 12:38

Re: [INC] Colors (1.0.2)
 
IM not. PrintToChat does not have the same effect as OverflowMessage. But i want the coloured chat to be in OverflowMessage.

exvel 12-28-2009 13:03

Re: [INC] Colors (1.0.2)
 
What is OverflowMessage? This is not a documented SM function.

Master53 12-28-2009 13:55

Re: [INC] Colors (1.0.2)
 
yes it is. this is the full ... for it

//////////////////////////////////////////////////////////////////////////////////
stock DrawMenu(Client, String:Buffers[7][64], MenuHandler:MenuHandle, Variables[7] = {0, 0, 0, 0, 0, 0, 0}, String:Title[32])
{

//Declare:
decl Handle:Panel;

//Initialize:
Panel = CreatePanel();

//Print:
OverflowMessage(Client, "\x03[RP]\x04 - Press <ESC> to access the menu");

//Display:
for(new X = 0; X < 7; X++) if(strlen(Buffers[X]) > 0)
{

//Add:
DrawPanelItem(Panel, Buffers[X]);

//Var:
SelectedBuffer[X][Client] = Variables[X];
}
//Title
SetPanelTitle(Panel, Title);

//Draw:
SendPanelToClient(Panel, Client, MenuHandle, 30);

//Close:
CloseHandle(Panel);
}
//////////////////////////////////////////////////////////////////////////////////

exvel 12-28-2009 15:13

Re: [INC] Colors (1.0.2)
 
Where it is from? Third party's code? I still have no idea what is OverflowMessage.

Master53 12-28-2009 15:14

Re: [INC] Colors (1.0.2)
 
its for the roleplay mod

http://forums.alliedmods.net/showthread.php?t=78380

exvel 12-29-2009 09:49

Re: [INC] Colors (1.0.2)
 
well, here is an actual code of OverflowMessage:
PHP Code:

stock OverflowMessage(Client, const String:Contents[255])
{

    
//Anti-Spam:
    
if(GameTime[Client] <= (GetGameTime() - 10))
    {

        
//Print:
        
PrintToChat(ClientContents);

        
//Save:
        
GameTime[Client] = GetGameTime();
    }


it is in the scripting/include/rp_stocks.inc
This is the place where you should change PrintToChat to CPrintToChat.

Master53 12-31-2009 09:44

Re: [INC] Colors (1.0.2)
 
okay thanks

theY4Kman 01-16-2010 12:43

Re: [INC] Colors (1.0.2)
 
I have added this library to Yak's FAQs :)

exvel 01-16-2010 12:53

Re: [INC] Colors (1.0.2)
 
Quote:

Originally Posted by theY4Kman (Post 1057150)
I have added this library to Yak's FAQs :)

Thank you. :)


All times are GMT -4. The time now is 22:58.

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