Raised This Month: $18 Target: $400
 4% 

[CSGO] Weapon & Knives (Skins, Name Tags, StatTrak, Wear/Float) [!ws !knife !nametag]


Post New Thread Reply   
 
Thread Tools Display Modes
Notifications
AlliedModders Donor
Join Date: Oct 2015
Old 08-01-2020 , 17:41   Re: [CSGO] Weapon & Knives (Skins, Name Tags, StatTrak, Wear/Float) [!ws !knife !name
Reply With Quote #1321

Quote:
Originally Posted by Kubus02 View Post
have a request to edit this plugin to unbind these buttons ,. ?
Open the SP in Notepad or something and remove lines 77 and 79,
RegConsoleCmd("buyammo1", CommandWeaponSkins);
RegConsoleCmd("buyammo2", CommandKnife);

Last edited by Notifications; 08-01-2020 at 17:41.
Notifications is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 08-02-2020 , 02:14   Re: [CSGO] Weapon & Knives (Skins, Name Tags, StatTrak, Wear/Float) [!ws !knife !name
Reply With Quote #1322

Quote:
Originally Posted by kgns View Post
i even encountered players having other random players admin rights, so i assumed somehow SteamIDs of connected players gets mixed up, thus the random players weapon skins and rank. it doesnt seem like a performance issue, because MySQL is built to handle millions of more data, and if it can query a random player's skins and give them to you, why should there be a performance problem querying your own data. no queries work in a timely fashion but i believe SteamIDs of players gets mixed up, as the queries for weapon skins, rankme data and admin details all query with SteamIDs
Clients are getting random skins is because your not resetting player arrays

You should put
Code:
 
				for(int i = 0; i < sizeof(g_WeaponClasses); i++)
				{
					g_iSkins[clientIndex][i] = 0;
					g_iStatTrak[clientIndex][i] = 0;
					g_iStatTrakCount[clientIndex][i] = 0;
					g_NameTag[clientIndex][i] = "";
					g_fFloatValue[clientIndex][i] = 0.0;
					g_iWeaponSeed[clientIndex][i] = -1;
				}
				g_iKnife[clientIndex] = 0;
In player connect or disconnect forwards
__________________
8guawong is offline
kgns
Senior Member
Join Date: May 2017
Location: Istanbul, Turkey
Old 08-02-2020 , 07:03   Re: [CSGO] Weapon & Knives (Skins, Name Tags, StatTrak, Wear/Float) [!ws !knife !name
Reply With Quote #1323

Quote:
Originally Posted by 8guawong View Post
Clients are getting random skins is because your not resetting player arrays

You should put
Code:
 
				for(int i = 0; i < sizeof(g_WeaponClasses); i++)
				{
					g_iSkins[clientIndex][i] = 0;
					g_iStatTrak[clientIndex][i] = 0;
					g_iStatTrakCount[clientIndex][i] = 0;
					g_NameTag[clientIndex][i] = "";
					g_fFloatValue[clientIndex][i] = 0.0;
					g_iWeaponSeed[clientIndex][i] = -1;
				}
				g_iKnife[clientIndex] = 0;
In player connect or disconnect forwards
that is so correct! then we have to find out the reason why queries get delayed for all plugins (and then work all at the same time after the delay) and how the admin system gets mixed up sometimes so people with no admin rights come to be admins
__________________

OyunHost Sunucu Hizmetleri: https://www.oyunhost.net
kgns is offline
Kubus02
New Member
Join Date: Mar 2020
Old 08-03-2020 , 10:08   Re: [CSGO] Weapon & Knives (Skins, Name Tags, StatTrak, Wear/Float) [!ws !knife !name
Reply With Quote #1324

Quote:
Originally Posted by Notifications View Post
Open the SP in Notepad or something and remove lines 77 and 79,
RegConsoleCmd("buyammo1", CommandWeaponSkins);
RegConsoleCmd("buyammo2", CommandKnife);
I removed it and it continues to work
Kubus02 is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 08-03-2020 , 11:38   Re: [CSGO] Weapon & Knives (Skins, Name Tags, StatTrak, Wear/Float) [!ws !knife !name
Reply With Quote #1325

Quote:
Originally Posted by Kubus02 View Post
I removed it and it continues to work
Removed and compiled again? If you don't compile changes it doesn't work.
__________________
paulo_crash is online now
Kubus02
New Member
Join Date: Mar 2020
Old Yesterday , 09:04   Re: [CSGO] Weapon & Knives (Skins, Name Tags, StatTrak, Wear/Float) [!ws !knife !name
Reply With Quote #1326

Quote:
Originally Posted by paulo_crash View Post
Removed and compiled again? If you don't compile changes it doesn't work.
I dont know how to compile this xD Can you help me?
Kubus02 is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old Yesterday , 13:00   Re: [CSGO] Weapon & Knives (Skins, Name Tags, StatTrak, Wear/Float) [!ws !knife !name
Reply With Quote #1327

Quote:
Originally Posted by Kubus02 View Post
I dont know how to compile this xD Can you help me?
Let's do it differently... Locate the admin_overrides.cfg file located in the csgo/addons/sourcemod/configs folder, configure like this:
PHP Code:
Overrides
{
    
/**
     * By default, commands are registered with three pieces of information:
     * 1)Command Name         (for example, "csdm_enable")
     * 2)Command Group Name    (for example, "CSDM")
     * 3)Command Level        (for example, "changemap")
     *
     * You can override the default flags assigned to individual commands or command groups in this way.
     * To override a group, use the "@" character before the name.  Example:
     * Examples:
     *        "@CSDM"            "b"                // Override the CSDM group to 'b' flag
     *         "csdm_enable"    "bgi"            // Override the csdm_enable command to 'bgi' flags
     *
     * Note that for overrides, order is important.  In the above example, csdm_enable overwrites
     * any setting that csdm_enable previously had.
     *
     * You can make a command completely public by using an empty flag string.
     */     
     //Plugin WS & Knife
    
"buyammo1"    "z"
    "buyammo2"    "z"

See if it already solves your problem, in case only those who have access to the "z" flag / privileges can use this command, let's say.

In any case, anything sends your plugin source file that I compile for you.
__________________
paulo_crash is online now
RaiN3772
New Member
Join Date: Jan 2016
Old Today , 12:19   Re: [CSGO] Weapon & Knives (Skins, Name Tags, StatTrak, Wear/Float) [!ws !knife !name
Reply With Quote #1328

Hello there!

thank you for releasing this plugin, i have one question, is it possible to separate skins from ct to t? like in csgo inventory, you can choose for example if u have 2 knives one, u can choose one for ct and the other is for t.

thanks
__________________
RaiN3772 is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old Today , 13:00   Re: [CSGO] Weapon & Knives (Skins, Name Tags, StatTrak, Wear/Float) [!ws !knife !name
Reply With Quote #1329

Quote:
Originally Posted by RaiN3772 View Post
Hello there!

thank you for releasing this plugin, i have one question, is it possible to separate skins from ct to t? like in csgo inventory, you can choose for example if u have 2 knives one, u can choose one for ct and the other is for t.

thanks
There is no option to choose a knife for each team yet. Same thing for skins, that is, skin that if you choose one side goes in all.
__________________
paulo_crash is online now
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old Today , 16:11   Re: [CSGO] Weapon & Knives (Skins, Name Tags, StatTrak, Wear/Float) [!ws !knife !name
Reply With Quote #1330

Quote:
Originally Posted by kgns View Post
that is so correct! then we have to find out the reason why queries get delayed for all plugins (and then work all at the same time after the delay) and how the admin system gets mixed up sometimes so people with no admin rights come to be admins
Could you tell me if using MySQL database you noticed server performance drop? Lag, crashing, loss of connection?

On my servers I use the MySQL configured plugin, I noticed performance problems, as I mentioned above, server lagging for a few seconds, it gets to hang in moments, seconds and then back.

I thought it was the server itself, even the host, but I took another server on the same host, with the same settings, but I left the plugin configured in SQLite, server running smoothly, without crashing and without lags.
__________________
paulo_crash is online now
Reply


Thread Tools
Display Modes

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 21:14.


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