Raised This Month: $32 Target: $400
 8% 

[CS:GO] Basebuilder v2.2.9


Post New Thread Reply   
 
Thread Tools Display Modes
kazya3
Member
Join Date: Aug 2019
Location: CN
Old 07-23-2021 , 10:36   Re: [CS:GO] Basebuilder v2.2.9
Reply With Quote #161

L 07/23/2021 - 221:07: [SM] Unable to load extension "dbi.sqlite.ext": 动态链接库(DLL)初始化例程失败。


L 07/23/2021 - 221:07: [SM] Unable to load extension "clientprefs.ext": Could not load DB Driver "sqlite"
L 07/23/2021 - 221:07: [SM] Unable to load plugin "clientprefs.smx": Required extension "Client Preferences" file("clientprefs.ext") not running

i want test my new map for bb mode and i dont have a server, so i install sm mm and the plugin in my csgo folder path, but it crashed my game when i join the singleplayer game

Last edited by kazya3; 07-23-2021 at 10:37.
kazya3 is offline
Bastian
New Member
Join Date: Sep 2021
Old 09-06-2021 , 16:04   Re: [CS:GO] Basebuilder v2.2.9
Reply With Quote #162

Hi, i have a bug with the ct shop, when i buy something being a ct, the plugin gives me an item or boost from the zombies shop, i read that i can fix it editing scripting/basebuilder/bb_shop.sp, but i don't know how to.

Everything else with the plugin is perfect, the ct shop is my only problem (;.
Bastian is offline
azalty
AlliedModders Donor
Join Date: Feb 2020
Location: France
Old 09-06-2021 , 17:37   Re: [CS:GO] Basebuilder v2.2.9
Reply With Quote #163

Quote:
Originally Posted by kazya3 View Post
L 07/23/2021 - 221:07: [SM] Unable to load extension "dbi.sqlite.ext": 动态链接库(DLL)初始化例程失败。


L 07/23/2021 - 221:07: [SM] Unable to load extension "clientprefs.ext": Could not load DB Driver "sqlite"
L 07/23/2021 - 221:07: [SM] Unable to load plugin "clientprefs.smx": Required extension "Client Preferences" file("clientprefs.ext") not running

i want test my new map for bb mode and i dont have a server, so i install sm mm and the plugin in my csgo folder path, but it crashed my game when i join the singleplayer game
That's not how you create a local server and use sourcemod. Install a local server using steamcmd, and install sourcemod & metamod:source inside this local server, not inside your game copy
__________________
GitHub | Discord: @azalty | Steam

Last edited by azalty; 09-06-2021 at 17:37.
azalty is offline
Lacoste1312
Junior Member
Join Date: Nov 2021
Old 11-12-2021 , 16:30   Re: [CS:GO] Basebuilder v2.2.9
Reply With Quote #164

Sorry im new what i need to put in server.cfg ?? When i enter server it stucks at downloading models what to do?
Lacoste1312 is offline
Lacoste1312
Junior Member
Join Date: Nov 2021
Old 11-14-2021 , 15:20   Re: [CS:GO] Basebuilder v2.2.9
Reply With Quote #165

Hi, i have a bug with the ct shop, when i buy something being a ct, the plugin gives me an item or boost from the zombies shop, i read that i can fix it editing scripting/basebuilder/bb_shop.sp, but i don't know how to.
Lacoste1312 is offline
csfweed
Junior Member
Join Date: Jan 2019
Location: Romania.
Old 01-15-2022 , 08:35   Re: [CS:GO] Basebuilder v2.2.9
Reply With Quote #166

Quote:
Originally Posted by Lacoste1312 View Post
Hi, i have a bug with the ct shop, when i buy something being a ct, the plugin gives me an item or boost from the zombies shop, i read that i can fix it editing scripting/basebuilder/bb_shop.sp, but i don't know how to.
Fixed bb_shop.sp there:
Code:
public void Shop_PlayerSpawn(int client)
{
	g_buyOnceRound[client] = true;
	g_buyOnceRoundGravity[client] = true;
}

public Action CMD_Shop(int client, int args)
{
	//Zombie shop
	if(GetClientTeam(client) == ZOMBIES)
	{

		Menu shopmenu = new Menu(MenuHandler_Shop2);
		SetMenuTitle(shopmenu, "BaseBuilder Mode\n>> BB.SERVERNAME.RO \n \n    Buy utilities to kill all the people!  \n \n>> Zombies Shop!\n ");
		
	 	kvZmShop.Rewind();
		if (!kvZmShop.GotoFirstSubKey())
			return Plugin_Handled;
	 
		char ItemID[10], name[150], price[20];
		do
		{
			kvZmShop.GetSectionName(ItemID, sizeof(ItemID));
			kvZmShop.GetString("name", name, sizeof(name));
			kvZmShop.GetString("price", price, sizeof(price));
			Format(name, sizeof(price), "%s (%s$)", name, price);
			shopmenu.AddItem(ItemID, name);
		} while (kvZmShop.GotoNextKey());
	 
		shopmenu.Display(client, 0);
	}
	
	else if(GetClientTeam(client) == BUILDERS && !IsBuildTime())
	{
		Menu shopmenu = new Menu(MenuHandler_Shop);
		SetMenuTitle(shopmenu, "BaseBuilder Mode\n>> BB.SERVERNAME.RO \n \n    Buy utilities to protect yourself from zombies!  \n \n>> Builders Shop!\n ");
	 	
	 	kvCtShop.Rewind();
		if (!kvCtShop.GotoFirstSubKey())
			return Plugin_Handled;
	 
		char ItemID[10], name[150], price[20];
		do
		{
			kvCtShop.GetSectionName(ItemID, sizeof(ItemID));
			kvCtShop.GetString("name", name, sizeof(name));
			kvCtShop.GetString("price", price, sizeof(price));
			Format(name, sizeof(price), "%s (%s$)", name, price);
			shopmenu.AddItem(ItemID, name);
		} while (kvCtShop.GotoNextKey());
	 
		shopmenu.Display(client, 0);
	}

	return Plugin_Continue;
}

public int MenuHandler_Shop(Menu menu, MenuAction action, int client, int item) 
{
	switch(action)
	{
		case MenuAction_Select:
		{
			char info[32];
			GetMenuItem(menu, item, info, sizeof(info));
			
			char configfile[PLATFORM_MAX_PATH];
			if(GetClientTeam(client) == BUILDERS)
				configfile = g_sBasebuilderConfig4;
			
			kvCtShop.Rewind();
			if (!kvCtShop.JumpToKey(info)) 
				return;
				
			char price[10];
			kvCtShop.GetString("price", price, sizeof(price));
			int iPrice = StringToInt(price);
			int clientMoney = Client_GetMoney(client);
			
			if(clientMoney < iPrice)
				CPrintToChat(client, "%s%T", Prefix, "Shop not enough money", client);
			else {
				//Take off money
				int newClientMoney = clientMoney - iPrice;
				Client_SetMoney(client, newClientMoney);
				
				//Print message in chat
				char name[50];
				kvCtShop.GetString("name", name, sizeof(name));
				CPrintToChat(client, "%s%T", Prefix, "Shop bought item", client, name);
				
				//Main functions
				char sItem[50], value[50];
				kvCtShop.GetString("item", sItem, sizeof(sItem));
				kvCtShop.GetString("value", value, sizeof(value));
				
				if(StrEqual(sItem, "speed"))
				{
					float fvalue = StringToFloat(value);
					float fspeed = GetEntPropFloat(client, Prop_Data, "m_flLaggedMovementValue");
					SetEntPropFloat(client, Prop_Data, "m_flLaggedMovementValue", fspeed * fvalue);
				}
				
				else if(StrEqual(sItem, "gravity"))
				{
					if(g_buyOnceRoundGravity[client])
					{
						
						float fvalue = StringToFloat(value);
						float fgravity = GetEntityGravity(client);
						SetEntityGravity(client, fgravity * fvalue);
						g_buyOnceRoundGravity[client] = false;
							
					} else if(!g_buyOnceRoundGravity[client])
					{
						int refreshMoney = Client_GetMoney(client);
						Client_SetMoney(client, refreshMoney + iPrice);
						CPrintToChat(client, "%s%T", Prefix, "Money returned", client);		
					}
				}
				
				else if(StrEqual(sItem, "health"))
				{
					if(g_buyOnceRound[client])
					{
						int ivalue = StringToInt(value);
						int ihealth = GetClientHealth(client);
						SetEntityHealth(client, ihealth + ivalue);
						
						if(GetClientTeam(client) == BUILDERS)
							g_buyOnceRound[client] = false;
							
					} else if(!g_buyOnceRound[client])
					{
						int refreshMoney = Client_GetMoney(client);
						Client_SetMoney(client, refreshMoney + iPrice);
						CPrintToChat(client, "%s%T", Prefix, "Money returned", client);		
					}
				}
				
				else if(StrEqual(sItem, "sknife"))
					GiveSuperKnife(client);
				
				else if(StrEqual(sItem, "weapon_hegrenade"))
					GivePlayerItem(client, "weapon_hegrenade");
				
				else if(StrEqual(sItem, "weapon_decoy"))
					GivePlayerItem(client, "weapon_decoy");
				
				else if(StrEqual(sItem, "goldenak47"))
					GiveGoldenAk(client);
				
			}

			
		}
	}
}

public int MenuHandler_Shop2(Menu menu, MenuAction action, int client, int item) 
{
	switch(action)
	{
		case MenuAction_Select:
		{
			char info[32];
			GetMenuItem(menu, item, info, sizeof(info));
			
			char configfile[PLATFORM_MAX_PATH];
			if(GetClientTeam(client) == ZOMBIES)
				configfile = g_sBasebuilderConfig3;
			
			kvZmShop.Rewind();
			if (!kvZmShop.JumpToKey(info)) 
				return;
				
			char price[10];
			kvZmShop.GetString("price", price, sizeof(price));
			int iPrice = StringToInt(price);
			int clientMoney = Client_GetMoney(client);
			
			if(clientMoney < iPrice)
				CPrintToChat(client, "%s%T", Prefix, "Shop not enough money", client);
			else {
				//Take off money
				int newClientMoney = clientMoney - iPrice;
				Client_SetMoney(client, newClientMoney);
				
				//Print message in chat
				char name[50];
				kvZmShop.GetString("name", name, sizeof(name));
				CPrintToChat(client, "%s%T", Prefix, "Shop bought item", client, name);
				
				//Main functions
				char sItem[50], value[50];
				kvZmShop.GetString("item", sItem, sizeof(sItem));
				kvZmShop.GetString("value", value, sizeof(value));
				
				if(StrEqual(sItem, "speed"))
				{
					float fvalue = StringToFloat(value);
					float fspeed = GetEntPropFloat(client, Prop_Data, "m_flLaggedMovementValue");
					SetEntPropFloat(client, Prop_Data, "m_flLaggedMovementValue", fspeed * fvalue);
				}
				
				else if(StrEqual(sItem, "gravity"))
				{
					if(g_buyOnceRoundGravity[client])
					{
						
						float fvalue = StringToFloat(value);
						float fgravity = GetEntityGravity(client);
						SetEntityGravity(client, fgravity * fvalue);
						g_buyOnceRoundGravity[client] = false;
							
					} else if(!g_buyOnceRoundGravity[client])
					{
						int refreshMoney = Client_GetMoney(client);
						Client_SetMoney(client, refreshMoney + iPrice);
						CPrintToChat(client, "%s%T", Prefix, "Money returned", client);		
					}
				}
				
				else if(StrEqual(sItem, "health"))
				{
					if(g_buyOnceRound[client])
					{
						int ivalue = StringToInt(value);
						int ihealth = GetClientHealth(client);
						SetEntityHealth(client, ihealth + ivalue);
						
						if(GetClientTeam(client) == BUILDERS)
							g_buyOnceRound[client] = false;
							
					} else if(!g_buyOnceRound[client])
					{
						int refreshMoney = Client_GetMoney(client);
						Client_SetMoney(client, refreshMoney + iPrice);
						CPrintToChat(client, "%s%T", Prefix, "Money returned", client);		
					}
				}
				
				else if(StrEqual(sItem, "sknife"))
					GiveSuperKnife(client);
				
				else if(StrEqual(sItem, "weapon_hegrenade"))
					GivePlayerItem(client, "weapon_hegrenade");
				
				else if(StrEqual(sItem, "weapon_decoy"))
					GivePlayerItem(client, "weapon_decoy");
				
				else if(StrEqual(sItem, "goldenak47"))
					GiveGoldenAk(client);
				
			}

			
		}
	}
}
csfweed is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 01-09-2023 , 08:23   Re: [CS:GO] Basebuilder v2.2.9
Reply With Quote #167

Add a cvar that lets you teleport backwards, to prevent those awful builds that if you fail the base, you get stuck.

The teleport should work like this:

Get your last position on the ground every 0.1 seconds.
The moment you touch any block, the last position is saved, and the last cached position is your permanent teleport position until you die.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 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 05:48.


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