View Single Post
Sw33T3R
AlliedModders Donor
Join Date: Mar 2014
Old 06-24-2017 , 09:05   Re: [CSGO] Weapon & Knives (Skins, Name Tags, StatTrak, Wear/Float management)
Reply With Quote #23

kgns
Can you fix it?
BTW where can i change minimal float value?
0.00000001 is better than 0.0

Plugins
Spoiler



Code:
public int FloatMenuHandler(Menu menu, MenuAction action, int client, int selection)
{
	switch(action)
	{
		case MenuAction_Select:
		{
			if(IsClientInGame(client))
			{
				char buffer[30];
				menu.GetItem(selection, buffer, sizeof(buffer));
				if(StrEqual(buffer, "increase"))
				{
					g_fFloatValue[client][g_iIndex[client]] = g_fFloatValue[client][g_iIndex[client]] - g_fFloatIncrementSize;
					if(g_fFloatValue[client][g_iIndex[client]] < 0.0)
					{
						g_fFloatValue[client][g_iIndex[client]] = 0.0; <--- This is minimal float value?
					}

Last edited by Sw33T3R; 06-24-2017 at 09:07.
Sw33T3R is offline