Raised This Month: $255 Target: $400
 63% 

Notices

CS:GO GiveNamedItem Econ


Post New Thread Reply   
 
Thread Tools Display Modes
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 05-17-2017 , 11:20   Re: CS:GO GiveNamedItem Econ
Reply With Quote #141

Grab teh latest gamedata
Dr!fter is offline
Sketchy
Senior Member
Join Date: Nov 2010
Old 05-17-2017 , 20:43   Re: CS:GO GiveNamedItem Econ
Reply With Quote #142

No more crashes with the new gamedata. I dunno if it was updated before or after I posted but I didnt see any mention of updated gamedata so I never even thought to look or try, but it works now so thank you!
Sketchy is offline
ejik03
AlliedModders Donor
Join Date: Feb 2009
Location: Moscow, Russia
Old 05-24-2017 , 11:20   Re: CS:GO GiveNamedItem Econ
Reply With Quote #143

My server crashed after 23 may update and this extension is in the backtrace. Dr!fter, can you please check this dump: https://crash.limetech.org/q4me62pruetk

Probably new gamedata needed.

Last edited by ejik03; 05-24-2017 at 11:38.
ejik03 is offline
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 07-23-2017 , 20:52   Re: CS:GO GiveNamedItem Econ
Reply With Quote #144

Something seems wrong with this now. I do have 450 in gamedata for GiveNamedItem but it gives M4A1-S when I choose M4A4. Works when I remove the extension or when I use the plugin that has the same functions.
Ejziponken is offline
SHAREN
Senior Member
Join Date: Dec 2011
Old 08-05-2017 , 07:17   Re: CS:GO GiveNamedItem Econ
Reply With Quote #145

https://crash.limetech.org/wkevgyatqlva
SHAREN is offline
Send a message via Skype™ to SHAREN
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 09-28-2017 , 14:41   Re: CS:GO GiveNamedItem Econ
Reply With Quote #146

This still has the same problem on linux.

M4a1 gives silencer. :/
__________________
Ejziponken is offline
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 11-07-2017 , 19:23   Re: CS:GO GiveNamedItem Econ
Reply With Quote #147

Quote:
Originally Posted by Ejziponken View Post
This still has the same problem on linux.

M4a1 gives silencer. :/
I made this simple fix:

PHP Code:
public Action GNIEcon_OnGiveNamedItem(int clientint iDefIndexint iTeamint iLoadoutSlot, const char[] szItem)
{
    if(
iDefIndex == 16 || iDefIndex == 60)
        return 
Plugin_Handled;

    return 
Plugin_Continue;

With this fix, now works like below:

Player have M4A1 Skined:

give weapon_m4a1 = Skined M4A1
give weapon_m4a1_silencer = Unskined M4A1-S


Player have M4A1-S Skined:

give weapon_m4a1_silencer = Skined M4A1-S
give weapon_m4a1 = Unskined M4A1

Regards.
__________________
My Plugins | VIEW HERE | I accept private requests, send me a PM.
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet

CZSBrasil TEAM

Last edited by rodrigo286; 12-11-2017 at 20:18.
rodrigo286 is offline
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 14:25.


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