Raised This Month: $ Target: $400
 0% 

Weapon Configuration [CS:GO]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Azerja12
Senior Member
Join Date: Feb 2013
Location: EU
Old 05-12-2015 , 11:54   Weapon Configuration [CS:GO]
Reply With Quote #1

I was mainly thinking about haveing a plugin that allows you to change the prices of the CS:GO weapons but there are lots of things that can be changed.

To change the price of weapons i tried to edit /scripts/weapon_"weaponname".txt
This resulted in my files not matching the servers and not beeing able to play on the server.

Beeing able to change the price and all the other settings listen in these files owuld have been cool.
__________________
Azerja12 is offline
Lannister
Veteran Member
Join Date: Apr 2015
Old 05-12-2015 , 11:59   Re: Weapon Configuration [CS:GO]
Reply With Quote #2

You can change the price via editing the scripts in CS:GO, but, even if the gun cost $1, you'll see it in the menu with the real price, so you won't be abble to buy it normaly by pressing B and selecting gun, you'll need to buy it with scripts or console command.

Would be cool if we have a plugin to edit also the buy menu as we like.
Lannister is offline
Azerja12
Senior Member
Join Date: Feb 2013
Location: EU
Old 05-14-2015 , 07:01   Re: Weapon Configuration [CS:GO]
Reply With Quote #3

Is this possible tho? (Make it appear like the price in-game)

Also, is there any plugin like this? "Can't find anything"
__________________

Last edited by Azerja12; 05-14-2015 at 07:02.
Azerja12 is offline
Chokitu
Senior Member
Join Date: Oct 2013
Old 05-15-2015 , 05:25   Re: Weapon Configuration [CS:GO]
Reply With Quote #4

Azeraj12, you can check the money the player has and make a little weapons menu with the weapon name
So when the guy press
1- M4A4 1500, He will loose 1500$ and will get a m4a4
Chokitu is offline
Send a message via Skype™ to Chokitu
Chokitu
Senior Member
Join Date: Oct 2013
Old 05-15-2015 , 05:27   Re: Weapon Configuration [CS:GO]
Reply With Quote #5

For example like this in the rtd
Code:
new money = GetEntData(client, FindSendPropOffs("CCSPlayer", "m_iAccount"));
	
	if (!DiceTeam || GetClientTeam(client) == DiceTeam)
	{
		if (ClientDiced[client] < DiceCount)
		{
			if (IsPlayerAlive(client))
			{
				if (DiceMoney > 0)
				{
					if ((money - DiceMoney) >= 0)
					{
						SetEntData(client, FindSendPropOffs("CCSPlayer", "m_iAccount"), money - DiceMoney);

						ClientDiced[client]++;
						DiceNow(client);
					}
					else CPrintToChat(client, "%s%t", Prefix, "money", DiceMoney);
				}
				else
				{
					ClientDiced[client]++;
					DiceNow(client);
				}
			}
			else CPrintToChat(client, "%s%t", Prefix, "dead");
		}
		else CPrintToChat(client, "%s%t", Prefix, "already", DiceCount);
	}
	else CPrintToChat(client, "%s%t", Prefix, "wrong");
Chokitu is offline
Send a message via Skype™ to Chokitu
Azerja12
Senior Member
Join Date: Feb 2013
Location: EU
Old 06-04-2015 , 08:06   Re: Weapon Configuration [CS:GO]
Reply With Quote #6

Quote:
Originally Posted by Chokitu View Post
For example like this in the rtd
Code:
new money = GetEntData(client, FindSendPropOffs("CCSPlayer", "m_iAccount"));
	
	if (!DiceTeam || GetClientTeam(client) == DiceTeam)
	{
		if (ClientDiced[client] < DiceCount)
		{
			if (IsPlayerAlive(client))
			{
				if (DiceMoney > 0)
				{
					if ((money - DiceMoney) >= 0)
					{
						SetEntData(client, FindSendPropOffs("CCSPlayer", "m_iAccount"), money - DiceMoney);

						ClientDiced[client]++;
						DiceNow(client);
					}
					else CPrintToChat(client, "%s%t", Prefix, "money", DiceMoney);
				}
				else
				{
					ClientDiced[client]++;
					DiceNow(client);
				}
			}
			else CPrintToChat(client, "%s%t", Prefix, "dead");
		}
		else CPrintToChat(client, "%s%t", Prefix, "already", DiceCount);
	}
	else CPrintToChat(client, "%s%t", Prefix, "wrong");
I am no coder. Is there anything out there like this that allows a noob like me to change the prices on sertain weapons?
__________________
Azerja12 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 14:20.


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