Quote:
Originally Posted by Ejziponken
This still has the same problem on linux.
M4a1 gives silencer. :/
|
I made this simple fix:
PHP Code:
public Action GNIEcon_OnGiveNamedItem(int client, int iDefIndex, int iTeam, int 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