Raised This Month: $12 Target: $400
 3% 

SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011


Post New Thread Reply   
 
Thread Tools Display Modes
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 08-07-2011 , 19:07   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #181

Quote:
Originally Posted by TnTSCS View Post
Yep - that was it - I reverted back to normal and I can now see the keyhinttext... strange that the cevo GUI would cause issues to keyhinttext... maybe in their GUi they need to explicitly allow key hints ??
^^ that's what I guessed.
Keyhinttext still is a pretty new feature (in Valve time), this custom hudlayout.res most likely does not have Keyhinttext configured. You can, if you want check the difference with a programm like WinMerge, and fix it yourself
The original hudlayout.res can be extracted with GCFScape.
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
Chanz
Veteran Member
Join Date: Aug 2008
Location: Germany - Stuttgart
Old 08-07-2011 , 19:32   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #182

wow nice guess berni. :-P also missed post #176 :-)
__________________
[ SourceModPlugins.org ][ My Plugins ]

Thank you for donations: [ Paypal ]

Video Tutorial (German): [ Gameserver & SourceMod Plugins mit HLSW verwalten ]
Chanz is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 08-07-2011 , 21:30   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #183

Yes, thanks for pointing that out.

I love that keyhinttext thing - I use it on all of my plugins now
TnTSCS is offline
zeroibis
Veteran Member
Join Date: Jun 2007
Old 08-08-2011 , 18:01   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #184

Strange though b/c that is what I use and I can see hints let me attach what I am using. (which I use only to fix the location of the chat messages on the left side, I do not know what settings your trying)

Here is what I have used for years since valve broke the location of in game chat messages: http://www.gamebanana.com/guis/18737
__________________
zeroibis is offline
Frenzzy
SourceMod Donor
Join Date: Jan 2007
Location: Russia
Old 08-23-2011 , 20:46   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #185

I found a small bug in Client_PrintToConsole() function. Color tags is not removed. Fixed:

Code:
/**
 * Prints a relieable message to the client's console.
 * Allows up to 254 Characters (including \0) to be print (253 for talk).
 * Supports chat color tags (see: colors.inc, only available in Left 4 Dead (2) or higher).
 * Chat colors are stripped automatically if not supported.
 *
 * @param clients		Client Array.
 * @param format		Formatting rules.
 * @param ...			Variable number of format parameters.
 * @noreturn
 */
stock Client_PrintToConsole(client, const String:format[], any:...)
{
	decl String:buffer[512];
	
	SetGlobalTransTarget(client);
	VFormat(buffer, sizeof(buffer), format, 3);

	Client_Print(client, ClientHudPrint_Console, buffer);
}

/**
 * Prints a relieable message to the client's console.
 * Allows up to 254 Characters (including \0) to be print.
 * Supports chat color tags in chat & console (see: colors.inc).
 * Chat colors are stripped automatically if not supported in the destination.
 *
 * @param clients		Client Array.
 * @param destination	Destination place (use onf of the ClientHudPrint_)
 * @param format		Formatting rules.
 * @param ...			Variable number of format parameters.
 * @noreturn
 */
stock Client_Print(client, ClientHudPrint:destination, const String:format[], any:...)
{
	decl String:buffer[512], String:buffer2[254];

	SetGlobalTransTarget(client);
	VFormat(buffer, sizeof(buffer), format, 4);

	new subject = Color_ParseChatText(buffer, buffer2, sizeof(buffer2));

	if (destination == ClientHudPrint_Talk) {
		Client_PrintToChatRaw(client, buffer2, subject, false);
		return;
	}

	if (client == 0 ||
		(destination != ClientHudPrint_Console) ||
		(destination == ClientHudPrint_Console && GuessSDKVersion() < SOURCE_SDK_LEFT4DEAD))
	{
		Color_StripFromChatText(buffer2, buffer, sizeof(buffer));
		strcopy(buffer2, sizeof(buffer2), buffer);

		if (client == 0) {
			PrintToServer(buffer);
			return;
		}
	}

	new Handle:userMessage = INVALID_HANDLE;
	userMessage = StartMessageOne("TextMsg", client, USERMSG_RELIABLE);

	BfWriteByte(userMessage		, _:ClientHudPrint_Console);
	BfWriteString(userMessage	, buffer2);

	EndMessage();
}
Frenzzy is offline
Send a message via ICQ to Frenzzy Send a message via MSN to Frenzzy Send a message via Skype™ to Frenzzy
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 08-23-2011 , 20:47   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #186

ok thanks, will be fixed in the next version

Greetings ~Berni
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
Frenzzy
SourceMod Donor
Join Date: Jan 2007
Location: Russia
Old 08-24-2011 , 06:26   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #187

Okey, nice)

And default PrintToChat() function prints messages to client console too.
I think need to do the same for Client_PrintToChat() function
Frenzzy is offline
Send a message via ICQ to Frenzzy Send a message via MSN to Frenzzy Send a message via Skype™ to Frenzzy
eraserhead
Veteran Member
Join Date: Nov 2009
Old 10-23-2011 , 23:05   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #188

Does anyone know of an advertisements plugin that uses SMLIB?
__________________
eraserhead is offline
Send a message via Skype™ to eraserhead
klausenbusk
AlliedModders Donor
Join Date: Jan 2011
Old 10-24-2011 , 05:39   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #189

Could we get a function, to remove file from download table? (http://forums.alliedmods.net/showthread.php?t=153416)
klausenbusk is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 10-24-2011 , 13:33   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #190

sure, added to the todo-list;
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:44.


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