Raised This Month: $ Target: $400
 0% 

[CS:GO] Hide new arms?


Post New Thread Reply   
 
Thread Tools Display Modes
Divin12
Senior Member
Join Date: Nov 2011
Old 01-08-2017 , 09:32   Re: [CS:GO] Hide new arms?
Reply With Quote #101

If you found a way to save gloves and if you want to post it we thank you. In this moment after respawn gloves goes back to default.
__________________
Divin12 is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 01-08-2017 , 09:39   Re: [CS:GO] Hide new arms?
Reply With Quote #102

Quote:
Originally Posted by Divin12 View Post
If you found a way to save gloves and if you want to post it we thank you. In this moment after respawn gloves goes back to default.
LOL, you from Nov 2011 and can't do this by yourself.. omg, wtf. what happens with people.

STOCKS, for WearAble, untested


P.S. You have one way to do this, create wearable automation system =D

Last edited by ZASTRELIS; 01-08-2017 at 16:06.
ZASTRELIS is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 01-08-2017 , 10:34   Re: [CS:GO] Hide new arms?
Reply With Quote #103

Global variables
Chat command Action ShowProps
Spoiler
Code:
if(i_RoundStarted)     FakeClientCommandEx(client, "say %s", "/yourcommand");
P.S. I think you're understand how it works. FakeClientCommandEx because... I don't know. But it works best then FakeClientCommand and direct function call.

Last edited by ZASTRELIS; 01-08-2017 at 12:22.
ZASTRELIS is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 01-08-2017 , 10:50   Re: [CS:GO] Hide new arms?
Reply With Quote #104

This's my final working set. Menu and other you must do by yourself! Do not forget that this command uses stocks ;) Look up!!!

P.S. BUG: players death make dublicate of wearable ent if previous wearable not finished yet.

Last edited by ZASTRELIS; 01-08-2017 at 11:27.
ZASTRELIS is offline
Divin12
Senior Member
Join Date: Nov 2011
Old 01-08-2017 , 12:07   Re: [CS:GO] Hide new arms?
Reply With Quote #105

Killing ent not working so good, sometimes hands appear on map.
__________________
Divin12 is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 01-08-2017 , 12:16   Re: [CS:GO] Hide new arms?
Reply With Quote #106

Quote:
Quote:
Originally Posted by Divin12 View Post
Killing ent not working so good, sometimes hands appear on map.
Quote:
Originally Posted by ZASTRELIS View Post
This's my final working set. Menu and other you must do by yourself! Do not forget that this command uses stocks ;) Look up!!!
P.S. BUG: players death make dublicate of wearable ent if previous wearable not finished yet.

Last edited by ZASTRELIS; 01-08-2017 at 12:20.
ZASTRELIS is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-08-2017 , 12:22   Re: [CS:GO] Hide new arms?
Reply With Quote #107

hadesownage and myself are working together in a !gloves plugin.

I glad that my code release here help a lot to offer a solution to this topic
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
Divin12
Senior Member
Join Date: Nov 2011
Old 01-08-2017 , 12:41   Re: [CS:GO] Hide new arms?
Reply With Quote #108

Found a way for duplicate of wearable: IsPlayerAlive show menu, else no.
Edit: WOW, If I'm looking on a player when he is changing gloves I can see his gloves else I can;t to see other players gloves.(this is not a big problem)
I created the menu and saving sistem.
Thanks to all, but still exist some bugs, sometimes my gloves are down but after new round all is ok.
__________________
Divin12 is offline
Divin12
Senior Member
Join Date: Nov 2011
Old 01-08-2017 , 13:08   Re: [CS:GO] Hide new arms?
Reply With Quote #109

PHP Code:
L 01/08/2017 19:55:17: [SMBlamingcgloves.smx
L 01
/08/2017 19:55:17: [SMCall stack trace:
L 01/08/2017 19:55:17: [SM]   [0Format
L 01
/08/2017 19:55:17: [SM]   [1Line 609C:\Users\Andrei\Desktop\compiler\addons\sourcemod\scripting\cgloves.sp::DID
L 01
/08/2017 19:55:17: [SM]   [3DisplayMenu
L 01
/08/2017 19:55:17: [SM]   [4Line 29C:\Users\Andrei\Desktop\compiler\addons\sourcemod\scripting\cgloves.sp::ShowPropss
L 01
/08/2017 19:55:17: [SM]   [5Line 36C:\Users\Andrei\Desktop\compiler\addons\sourcemod\scripting\cgloves.sp::ShowProps
L 01
/08/2017 19:55:17: [SMException reportedLanguage phrase "bloodhound_snakeskin_brass" not found (arg 6)
L 01/08/2017 19:55:17: [SMBlamingcgloves.smx
L 01
/08/2017 19:55:17: [SMCall stack trace:
L 01/08/2017 19:55:17: [SM]   [0Format
L 01
/08/2017 19:55:17: [SM]   [1Line 615C:\Users\Andrei\Desktop\compiler\addons\sourcemod\scripting\cgloves.sp::DID
L 01
/08/2017 19:55:17: [SM]   [3DisplayMenu
L 01
/08/2017 19:55:17: [SM]   [4Line 29C:\Users\Andrei\Desktop\compiler\addons\sourcemod\scripting\cgloves.sp::ShowPropss
L 01
/08/2017 19:55:17: [SM]   [5Line 36C:\Users\Andrei\Desktop\compiler\addons\sourcemod\scripting\cgloves.sp::ShowProps 
CODE:
PHP Code:
#include <sourcemod>
#include <sdktools>
#include <cstrike>
#include <multicolors>

int gloves[100];

public 
void OnPluginStart() {

    
RegConsoleCmd("sm_gloves"ShowProps); // type !test13 in chat if you have root access.
    
HookEvent("player_spawn"ps);
}

ShowPropss(client)
{
    new 
Handle:menu CreateMenu(DIDMenuAction_Select MenuAction_Cancel MenuAction_End MenuAction_DisplayItem);
    
SetMenuTitle(menu"Gloves");

    
AddMenuItem(menu"bloodhound_black_silver""bloodhound_black_silver");
    
AddMenuItem(menu"bloodhound_snakeskin_brass""bloodhound_snakeskin_brass");
    
AddMenuItem(menu"bloodhound_guerrilla""bloodhound_guerrilla");
    
AddMenuItem(menu"handwrap_leathery""handwrap_leathery");
    
AddMenuItem(menu"slick_military""slick_military");
    
AddMenuItem(menu" handwrap_red_slaughter"" handwrap_red_slaughter");
    
AddMenuItem(menu"motorcycle_mono_boom""motorcycle_mono_boom");
    
AddMenuItem(menu"specialist_kimono_diamonds_red""specialist_kimono_diamonds_red");
    
AddMenuItem(menu"specialist_emerald_web""specialist_emerald_web");

    
DisplayMenu(menuclientMENU_TIME_FOREVER);
}

public 
Action ShowProps(clientargs)
{    
    if(
IsValidated(client)&& IsPlayerAlive(client)) 
    {
        
ShowPropss(client);
    }
    else
    {
        
PrintToChat(client"[\x02WTFCS\x01]You need to be alive to set !gloves");
    }
    
    return 
Plugin_Handled;
}


public 
DID(Handle:menuMenuAction:actionparam1param2)
{
    switch (
action)
    {
        case 
MenuAction_Select:
        {
            
//param1 is client, param2 is item

            
new String:item[64];
            
GetMenuItem(menuparam2itemsizeof(item));

            if (
StrEqual(item"bloodhound_black_silver"))
            {
                if(
IsValidated(param1)) 
                {
                    
gloves[param1] = 1;
                    
                    
int item GetEntPropEnt(param1Prop_Send"m_hActiveWeapon");
                    
                    
SetEntPropEnt(param1Prop_Send"m_hActiveWeapon", -1);
                    
                    new 
ent GivePlayerItem(param1"wearable_item");
                    
                    if (
ent != -1)
                    {
                        
int m_iItemIDHigh GetEntPropentProp_Send"m_iItemIDHigh" );
                        
int m_iItemIDLow GetEntPropentProp_Send"m_iItemIDLow" );
                        
                        
SetEntProp(entProp_Send"m_iItemDefinitionIndex"5027);
                        
SetEntProp(entProp_Send"m_iItemIDLow"8192+param1);
                        
SetEntProp(entProp_Send"m_iItemIDHigh"0);
                        
SetEntProp(entProp_Send"m_iEntityQuality"4);
                        
                        
SetEntPropFloat(entProp_Send"m_flFallbackWear"0.00000001);
                        
                        
SetEntProp(entProp_Send,  "m_iAccountID"GetSteamAccountID(param1));
                        
                        
SetEntProp(entProp_Send,  "m_nFallbackSeed"0);
                        
SetEntProp(entProp_Send,  "m_nFallbackStatTrak"GetSteamAccountID(param1));
                        
SetEntProp(entProp_Send,  "m_nFallbackPaintKit"10006);
                        
                        if (!
IsModelPrecached("models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl")) PrecacheModel("models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl");
                        
                        
SetEntProp(entProp_Send"m_nModelIndex"PrecacheModel("models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl"));
                        
SetEntityModel(ent"models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl");
                        
                        
SetEntPropEnt(param1Prop_Send"m_hMyWearables"ent);
                        
                        
Handle ph1 CreateDataPack();
                        
CreateTimer(2.0AddItemTimer1ph1TIMER_FLAG_NO_MAPCHANGE);
                        
                        
WritePackCell(ph1EntIndexToEntRef(param1));
                        
WritePackCell(ph1EntIndexToEntRef(item));
                        
WritePackCell(ph1EntIndexToEntRef(ent));
                        
WritePackCell(ph1m_iItemIDHigh );
                        
WritePackCell(ph1m_iItemIDLow );
                        
                        
Handle ph2 CreateDataPack();
                        
CreateTimer(0.0AddItemTimer2ph2TIMER_FLAG_NO_MAPCHANGE);
                        
                        
WritePackCell(ph2EntIndexToEntRef(param1));
                        
WritePackCell(ph2EntIndexToEntRef(item));
                        
                        
char weaponclass64 ]; GetEdictClassnameentweaponclasssizeofweaponclass ) );
                        
CPrintToChat(param1"%s"weaponclass);
                    }
        
                    return 
Plugin_Handled;
                }
            }
            else if (
StrEqual(item"bloodhound_snakeskin_brass"))
            {
                
                if(
IsValidated(param1)) 
                {
                    
gloves[param1] = 2;
                    
                    
int item GetEntPropEnt(param1Prop_Send"m_hActiveWeapon");
                    
                    
SetEntPropEnt(param1Prop_Send"m_hActiveWeapon", -1);
                    
                    new 
ent GivePlayerItem(param1"wearable_item");
                    
                    if (
ent != -1)
                    {
                        
int m_iItemIDHigh GetEntPropentProp_Send"m_iItemIDHigh" );
                        
int m_iItemIDLow GetEntPropentProp_Send"m_iItemIDLow" );
                        
                        
SetEntProp(entProp_Send"m_iItemDefinitionIndex"5027);
                        
SetEntProp(entProp_Send"m_iItemIDLow"8192+param1);
                        
SetEntProp(entProp_Send"m_iItemIDHigh"0);
                        
SetEntProp(entProp_Send"m_iEntityQuality"4);
                        
                        
SetEntPropFloat(entProp_Send"m_flFallbackWear"0.00000001);
                        
                        
SetEntProp(entProp_Send,  "m_iAccountID"GetSteamAccountID(param1));
                        
                        
SetEntProp(entProp_Send,  "m_nFallbackSeed"0);
                        
SetEntProp(entProp_Send,  "m_nFallbackStatTrak"GetSteamAccountID(param1));
                        
SetEntProp(entProp_Send,  "m_nFallbackPaintKit"10007);
                        
                        if (!
IsModelPrecached("models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl")) PrecacheModel("models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl");
                        
                        
SetEntProp(entProp_Send"m_nModelIndex"PrecacheModel("models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl"));
                        
SetEntityModel(ent"models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl");
                        
                        
SetEntPropEnt(param1Prop_Send"m_hMyWearables"ent);
                        
                        
Handle ph1 CreateDataPack();
                        
CreateTimer(2.0AddItemTimer1ph1TIMER_FLAG_NO_MAPCHANGE);
                        
                        
WritePackCell(ph1EntIndexToEntRef(param1));
                        
WritePackCell(ph1EntIndexToEntRef(item));
                        
WritePackCell(ph1EntIndexToEntRef(ent));
                        
WritePackCell(ph1m_iItemIDHigh );
                        
WritePackCell(ph1m_iItemIDLow );
                        
                        
Handle ph2 CreateDataPack();
                        
CreateTimer(0.0AddItemTimer2ph2TIMER_FLAG_NO_MAPCHANGE);
                        
                        
WritePackCell(ph2EntIndexToEntRef(param1));
                        
WritePackCell(ph2EntIndexToEntRef(item));
                        
                        
char weaponclass64 ]; GetEdictClassnameentweaponclasssizeofweaponclass ) );
                        
CPrintToChat(param1"%s"weaponclass);
                    }
        
                    return 
Plugin_Handled;
                }
            }
            else if (
StrEqual(item"bloodhound_guerrilla"))
            {
                if(
IsValidated(param1)) 
                {
                    
gloves[param1] = 3;
                    
                    
int item GetEntPropEnt(param1Prop_Send"m_hActiveWeapon");
                    
                    
SetEntPropEnt(param1Prop_Send"m_hActiveWeapon", -1);
                    
                    new 
ent GivePlayerItem(param1"wearable_item");
                    
                    if (
ent != -1)
                    {
                        
int m_iItemIDHigh GetEntPropentProp_Send"m_iItemIDHigh" );
                        
int m_iItemIDLow GetEntPropentProp_Send"m_iItemIDLow" );
                        
                        
SetEntProp(entProp_Send"m_iItemDefinitionIndex"5027);
                        
SetEntProp(entProp_Send"m_iItemIDLow"8192+param1);
                        
SetEntProp(entProp_Send"m_iItemIDHigh"0);
                        
SetEntProp(entProp_Send"m_iEntityQuality"4);
                        
                        
SetEntPropFloat(entProp_Send"m_flFallbackWear"0.00000001);
                        
                        
SetEntProp(entProp_Send,  "m_iAccountID"GetSteamAccountID(param1));
                        
                        
SetEntProp(entProp_Send,  "m_nFallbackSeed"0);
                        
SetEntProp(entProp_Send,  "m_nFallbackStatTrak"GetSteamAccountID(param1));
                        
SetEntProp(entProp_Send,  "m_nFallbackPaintKit"10039);
                        
                        if (!
IsModelPrecached("models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl")) PrecacheModel("models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl");
                        
                        
SetEntProp(entProp_Send"m_nModelIndex"PrecacheModel("models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl"));
                        
SetEntityModel(ent"models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl");
                        
                        
SetEntPropEnt(param1Prop_Send"m_hMyWearables"ent);
                        
                        
Handle ph1 CreateDataPack();
                        
CreateTimer(2.0AddItemTimer1ph1TIMER_FLAG_NO_MAPCHANGE);
                        
                        
WritePackCell(ph1EntIndexToEntRef(param1));
                        
WritePackCell(ph1EntIndexToEntRef(item));
                        
WritePackCell(ph1EntIndexToEntRef(ent));
                        
WritePackCell(ph1m_iItemIDHigh );
                        
WritePackCell(ph1m_iItemIDLow );
                        
                        
Handle ph2 CreateDataPack();
                        
CreateTimer(0.0AddItemTimer2ph2TIMER_FLAG_NO_MAPCHANGE);
                        
                        
WritePackCell(ph2EntIndexToEntRef(param1));
                        
WritePackCell(ph2EntIndexToEntRef(item));
                        
                        
char weaponclass64 ]; GetEdictClassnameentweaponclasssizeofweaponclass ) );
                        
CPrintToChat(param1"%s"weaponclass);
                    }
        
                    return 
Plugin_Handled;
                }
            }
            else if (
StrEqual(item"handwrap_leathery"))
            {
                if(
IsValidated(param1)) 
                {
                    
gloves[param1] = 4;
                    
int item GetEntPropEnt(param1Prop_Send"m_hActiveWeapon");
                    
                    
SetEntPropEnt(param1Prop_Send"m_hActiveWeapon", -1);
                    
                    new 
ent GivePlayerItem(param1"wearable_item");
                    
                    if (
ent != -1)
                    {
                        
int m_iItemIDHigh GetEntPropentProp_Send"m_iItemIDHigh" );
                        
int m_iItemIDLow GetEntPropentProp_Send"m_iItemIDLow" );
                        
                        
SetEntProp(entProp_Send"m_iItemDefinitionIndex"5032);
                        
SetEntProp(entProp_Send"m_iItemIDLow"8192+param1);
                        
SetEntProp(entProp_Send"m_iItemIDHigh"0);
                        
SetEntProp(entProp_Send"m_iEntityQuality"4);
                        
                        
SetEntPropFloat(entProp_Send"m_flFallbackWear"0.00000001);
                        
                        
SetEntProp(entProp_Send,  "m_iAccountID"GetSteamAccountID(param1));
                        
                        
SetEntProp(entProp_Send,  "m_nFallbackSeed"0);
                        
SetEntProp(entProp_Send,  "m_nFallbackStatTrak"GetSteamAccountID(param1));
                        
SetEntProp(entProp_Send,  "m_nFallbackPaintKit"10009);
                        
                        if (!
IsModelPrecached("models/weapons/v_models/arms/glove_handwrap_leathery/v_glove_handwrap_leathery.mdl")) PrecacheModel("models/weapons/v_models/arms/glove_handwrap_leathery/v_glove_handwrap_leathery.mdl");
                        
                        
SetEntProp(entProp_Send"m_nModelIndex"PrecacheModel("models/weapons/v_models/arms/glove_handwrap_leathery/v_glove_handwrap_leathery.mdl"));
                        
SetEntityModel(ent"models/weapons/v_models/arms/glove_handwrap_leathery/v_glove_handwrap_leathery.mdl");
                        
                        
SetEntPropEnt(param1Prop_Send"m_hMyWearables"ent);
                        
                        
Handle ph1 CreateDataPack();
                        
CreateTimer(2.0AddItemTimer1ph1TIMER_FLAG_NO_MAPCHANGE);
                        
                        
WritePackCell(ph1EntIndexToEntRef(param1));
                        
WritePackCell(ph1EntIndexToEntRef(item));
                        
WritePackCell(ph1EntIndexToEntRef(ent));
                        
WritePackCell(ph1m_iItemIDHigh );
                        
WritePackCell(ph1m_iItemIDLow );
                        
                        
Handle ph2 CreateDataPack();
                        
CreateTimer(0.0AddItemTimer2ph2TIMER_FLAG_NO_MAPCHANGE);
                        
                        
WritePackCell(ph2EntIndexToEntRef(param1));
                        
WritePackCell(ph2EntIndexToEntRef(item));
                        
                        
char weaponclass64 ]; GetEdictClassnameentweaponclasssizeofweaponclass ) );
                        
CPrintToChat(param1"%s"weaponclass);
                    }
        
                    return 
Plugin_Handled;
                }
            }
            else if (
StrEqual(item"slick_military"))
            {
                if(
IsValidated(param1)) 
                {
                    
gloves[param1] = 5;
                    
int item GetEntPropEnt(param1Prop_Send"m_hActiveWeapon");
                    
                    
SetEntPropEnt(param1Prop_Send"m_hActiveWeapon", -1);
                    
                    new 
ent GivePlayerItem(param1"wearable_item");
                    
                    if (
ent != -1)
                    {
                        
int m_iItemIDHigh GetEntPropentProp_Send"m_iItemIDHigh" );
                        
int m_iItemIDLow GetEntPropentProp_Send"m_iItemIDLow" );
                        
                        
SetEntProp(entProp_Send"m_iItemDefinitionIndex"5031);
                        
SetEntProp(entProp_Send"m_iItemIDLow"8192+param1);
                        
SetEntProp(entProp_Send"m_iItemIDHigh"0);
                        
SetEntProp(entProp_Send"m_iEntityQuality"4);
                        
                        
SetEntPropFloat(entProp_Send"m_flFallbackWear"0.00000001);
                        
                        
SetEntProp(entProp_Send,  "m_iAccountID"GetSteamAccountID(param1));
                        
                        
SetEntProp(entProp_Send,  "m_nFallbackSeed"0);
                        
SetEntProp(entProp_Send,  "m_nFallbackStatTrak"GetSteamAccountID(param1));
                        
SetEntProp(entProp_Send,  "m_nFallbackPaintKit"10015);
                        
                        if (!
IsModelPrecached("models/weapons/v_models/arms/glove_slick/v_glove_slick.mdl")) PrecacheModel("models/weapons/v_models/arms/glove_slick/v_glove_slick.mdl");
                        
                        
SetEntProp(entProp_Send"m_nModelIndex"PrecacheModel("models/weapons/v_models/arms/glove_slick/v_glove_slick.mdl"));
                        
SetEntityModel(ent"models/weapons/v_models/arms/glove_slick/v_glove_slick.mdl");
                        
                        
SetEntPropEnt(param1Prop_Send"m_hMyWearables"ent);
                        
                        
Handle ph1 CreateDataPack();
                        
CreateTimer(2.0AddItemTimer1ph1TIMER_FLAG_NO_MAPCHANGE);
                        
                        
WritePackCell(ph1EntIndexToEntRef(param1));
                        
WritePackCell(ph1EntIndexToEntRef(item));
                        
WritePackCell(ph1EntIndexToEntRef(ent));
                        
WritePackCell(ph1m_iItemIDHigh );
                        
WritePackCell(ph1m_iItemIDLow );
                        
                        
Handle ph2 CreateDataPack();
                        
CreateTimer(0.0AddItemTimer2ph2TIMER_FLAG_NO_MAPCHANGE);
                        
                        
WritePackCell(ph2EntIndexToEntRef(param1));
                        
WritePackCell(ph2EntIndexToEntRef(item));
                        
                        
char weaponclass64 ]; GetEdictClassnameentweaponclasssizeofweaponclass ) );
                        
CPrintToChat(param1"%s"weaponclass);
                    }
        
                    return 
Plugin_Handled;
                }
            }
            else if (
StrEqual(item" handwrap_red_slaughter"))
            {
                if(
IsValidated(param1)) 
                {
                    
gloves[param1] = 6;
                    
int item GetEntPropEnt(param1Prop_Send"m_hActiveWeapon");
                    
                    
SetEntPropEnt(param1Prop_Send"m_hActiveWeapon", -1);
                    
                    new 
ent GivePlayerItem(param1"wearable_item");
                    
                    if (
ent != -1)
                    {
                        
int m_iItemIDHigh GetEntPropentProp_Send"m_iItemIDHigh" );
                        
int m_iItemIDLow GetEntPropentProp_Send"m_iItemIDLow" );
                        
                        
SetEntProp(entProp_Send"m_iItemDefinitionIndex"5032);
                        
SetEntProp(entProp_Send"m_iItemIDLow"8192+param1);
                        
SetEntProp(entProp_Send"m_iItemIDHigh"0);
                        
SetEntProp(entProp_Send"m_iEntityQuality"4);
                        
                        
SetEntPropFloat(entProp_Send"m_flFallbackWear"0.00000001);
                        
                        
SetEntProp(entProp_Send,  "m_iAccountID"GetSteamAccountID(param1));
                        
                        
SetEntProp(entProp_Send,  "m_nFallbackSeed"0);
                        
SetEntProp(entProp_Send,  "m_nFallbackStatTrak"GetSteamAccountID(param1));
                        
SetEntProp(entProp_Send,  "m_nFallbackPaintKit"10021);
                        
                        if (!
IsModelPrecached("models/weapons/v_models/arms/glove_handwrap_leathery/v_glove_handwrap_leathery.mdl")) PrecacheModel("models/weapons/v_models/arms/glove_handwrap_leathery/v_glove_handwrap_leathery.mdl");
                        
                        
SetEntProp(entProp_Send"m_nModelIndex"PrecacheModel("models/weapons/v_models/arms/glove_handwrap_leathery/v_glove_handwrap_leathery.mdl"));
                        
SetEntityModel(ent"models/weapons/v_models/arms/glove_handwrap_leathery/v_glove_handwrap_leathery.mdl");
                        
                        
SetEntPropEnt(param1Prop_Send"m_hMyWearables"ent);
                        
                        
Handle ph1 CreateDataPack();
                        
CreateTimer(2.0AddItemTimer1ph1TIMER_FLAG_NO_MAPCHANGE);
                        
                        
WritePackCell(ph1EntIndexToEntRef(param1));
                        
WritePackCell(ph1EntIndexToEntRef(item));
                        
WritePackCell(ph1EntIndexToEntRef(ent));
                        
WritePackCell(ph1m_iItemIDHigh );
                        
WritePackCell(ph1m_iItemIDLow );
                        
                        
Handle ph2 CreateDataPack();
                        
CreateTimer(0.0AddItemTimer2ph2TIMER_FLAG_NO_MAPCHANGE);
                        
                        
WritePackCell(ph2EntIndexToEntRef(param1));
                        
WritePackCell(ph2EntIndexToEntRef(item));
                        
                        
char weaponclass64 ]; GetEdictClassnameentweaponclasssizeofweaponclass ) );
                        
CPrintToChat(param1"%s"weaponclass);
                    }
        
                    return 
Plugin_Handled;
                }
            }
            else if (
StrEqual(item"motorcycle_mono_boom"))
            {
                if(
IsValidated(param1)) 
                {
                    
gloves[param1] = 7;
                    
int item GetEntPropEnt(param1Prop_Send"m_hActiveWeapon");
                    
                    
SetEntPropEnt(param1Prop_Send"m_hActiveWeapon", -1);
                    
                    new 
ent GivePlayerItem(param1"wearable_item");
                    
                    if (
ent != -1)
                    {
                        
int m_iItemIDHigh GetEntPropentProp_Send"m_iItemIDHigh" );
                        
int m_iItemIDLow GetEntPropentProp_Send"m_iItemIDLow" );
                        
                        
SetEntProp(entProp_Send"m_iItemDefinitionIndex"5033);
                        
SetEntProp(entProp_Send"m_iItemIDLow"8192+param1);
                        
SetEntProp(entProp_Send"m_iItemIDHigh"0);
                        
SetEntProp(entProp_Send"m_iEntityQuality"4);
                        
                        
SetEntPropFloat(entProp_Send"m_flFallbackWear"0.00000001);
                        
                        
SetEntProp(entProp_Send,  "m_iAccountID"GetSteamAccountID(param1));
                        
                        
SetEntProp(entProp_Send,  "m_nFallbackSeed"0);
                        
SetEntProp(entProp_Send,  "m_nFallbackStatTrak"GetSteamAccountID(param1));
                        
SetEntProp(entProp_Send,  "m_nFallbackPaintKit"10027);
                        
                        if (!
IsModelPrecached("models/weapons/v_models/arms/glove_motorcycle/v_glove_motorcycle.mdl")) PrecacheModel("models/weapons/v_models/arms/glove_motorcycle/v_glove_motorcycle.mdl");
                        
                        
SetEntProp(entProp_Send"m_nModelIndex"PrecacheModel("models/weapons/v_models/arms/glove_motorcycle/v_glove_motorcycle.mdl"));
                        
SetEntityModel(ent"models/weapons/v_models/arms/glove_motorcycle/v_glove_motorcycle.mdl");
                        
                        
SetEntPropEnt(param1Prop_Send"m_hMyWearables"ent);
                        
                        
Handle ph1 CreateDataPack();
                        
CreateTimer(2.0AddItemTimer1ph1TIMER_FLAG_NO_MAPCHANGE);
                        
                        
WritePackCell(ph1EntIndexToEntRef(param1));
                        
WritePackCell(ph1EntIndexToEntRef(item));
                        
WritePackCell(ph1EntIndexToEntRef(ent));
                        
WritePackCell(ph1m_iItemIDHigh );
                        
WritePackCell(ph1m_iItemIDLow );
                        
                        
Handle ph2 CreateDataPack();
                        
CreateTimer(0.0AddItemTimer2ph2TIMER_FLAG_NO_MAPCHANGE);
                        
                        
WritePackCell(ph2EntIndexToEntRef(param1));
                        
WritePackCell(ph2EntIndexToEntRef(item));
                        
                        
char weaponclass64 ]; GetEdictClassnameentweaponclasssizeofweaponclass ) );
                        
CPrintToChat(param1"%s"weaponclass);
                    }
        
                    return 
Plugin_Handled;
                }
            }
            else if (
StrEqual(item"specialist_kimono_diamonds_red"))
            {
                if(
IsValidated(param1)) 
                {
                    
gloves[param1] = 8;
                    
int item GetEntPropEnt(param1Prop_Send"m_hActiveWeapon");
                    
                    
SetEntPropEnt(param1Prop_Send"m_hActiveWeapon", -1);
                    
                    new 
ent GivePlayerItem(param1"wearable_item");
                    
                    if (
ent != -1)
                    {
                        
int m_iItemIDHigh GetEntPropentProp_Send"m_iItemIDHigh" );
                        
int m_iItemIDLow GetEntPropentProp_Send"m_iItemIDLow" );
                        
                        
SetEntProp(entProp_Send"m_iItemDefinitionIndex"5028);
                        
SetEntProp(entProp_Send"m_iItemIDLow"8192+param1);
                        
SetEntProp(entProp_Send"m_iItemIDHigh"0);
                        
SetEntProp(entProp_Send"m_iEntityQuality"4);
                        
                        
SetEntPropFloat(entProp_Send"m_flFallbackWear"0.00000001);
                        
                        
SetEntProp(entProp_Send,  "m_iAccountID"GetSteamAccountID(param1));
                        
                        
SetEntProp(entProp_Send,  "m_nFallbackSeed"0);
                        
SetEntProp(entProp_Send,  "m_nFallbackStatTrak"GetSteamAccountID(param1));
                        
SetEntProp(entProp_Send,  "m_nFallbackPaintKit"10033);
                        
                        if (!
IsModelPrecached("models/weapons/v_models/arms/glove_specialist/v_glove_specialist.mdl")) PrecacheModel("models/weapons/v_models/arms/glove_specialist/v_glove_specialist.mdl");
                        
                        
SetEntProp(entProp_Send"m_nModelIndex"PrecacheModel("models/weapons/v_models/arms/glove_specialist/v_glove_specialist.mdl"));
                        
SetEntityModel(ent"models/weapons/v_models/arms/glove_specialist/v_glove_specialist.mdl");
                        
                        
SetEntPropEnt(param1Prop_Send"m_hMyWearables"ent);
                        
                        
Handle ph1 CreateDataPack();
                        
CreateTimer(2.0AddItemTimer1ph1TIMER_FLAG_NO_MAPCHANGE);
                        
                        
WritePackCell(ph1EntIndexToEntRef(param1));
                        
WritePackCell(ph1EntIndexToEntRef(item));
                        
WritePackCell(ph1EntIndexToEntRef(ent));
                        
WritePackCell(ph1m_iItemIDHigh );
                        
WritePackCell(ph1m_iItemIDLow );
                        
                        
Handle ph2 CreateDataPack();
                        
CreateTimer(0.0AddItemTimer2ph2TIMER_FLAG_NO_MAPCHANGE);
                        
                        
WritePackCell(ph2EntIndexToEntRef(param1));
                        
WritePackCell(ph2EntIndexToEntRef(item));
                        
                        
char weaponclass64 ]; GetEdictClassnameentweaponclasssizeofweaponclass ) );
                        
CPrintToChat(param1"%s"weaponclass);
                    }
        
                    return 
Plugin_Handled;
                }
            }
            else if (
StrEqual(item"specialist_emerald_web"))
            {
                if(
IsValidated(param1)) 
                {
                    
gloves[param1] = 9;
                    
int item GetEntPropEnt(param1Prop_Send"m_hActiveWeapon");
                    
                    
SetEntPropEnt(param1Prop_Send"m_hActiveWeapon", -1);
                    
                    new 
ent GivePlayerItem(param1"wearable_item");
                    
                    if (
ent != -1)
                    {
                        
int m_iItemIDHigh GetEntPropentProp_Send"m_iItemIDHigh" );
                        
int m_iItemIDLow GetEntPropentProp_Send"m_iItemIDLow" );
                        
                        
SetEntProp(entProp_Send"m_iItemDefinitionIndex"5028);
                        
SetEntProp(entProp_Send"m_iItemIDLow"8192+param1);
                        
SetEntProp(entProp_Send"m_iItemIDHigh"0);
                        
SetEntProp(entProp_Send"m_iEntityQuality"4);
                        
                        
SetEntPropFloat(entProp_Send"m_flFallbackWear"0.00000001);
                        
                        
SetEntProp(entProp_Send,  "m_iAccountID"GetSteamAccountID(param1));
                        
                        
SetEntProp(entProp_Send,  "m_nFallbackSeed"0);
                        
SetEntProp(entProp_Send,  "m_nFallbackStatTrak"GetSteamAccountID(param1));
                        
SetEntProp(entProp_Send,  "m_nFallbackPaintKit"10034);
                        
                        if (!
IsModelPrecached("models/weapons/v_models/arms/glove_specialist/v_glove_specialist.mdl")) PrecacheModel("models/weapons/v_models/arms/glove_specialist/v_glove_specialist.mdl");
                        
                        
SetEntProp(entProp_Send"m_nModelIndex"PrecacheModel("models/weapons/v_models/arms/glove_specialist/v_glove_specialist.mdl"));
                        
SetEntityModel(ent"models/weapons/v_models/arms/glove_specialist/v_glove_specialist.mdl");
                        
                        
SetEntPropEnt(param1Prop_Send"m_hMyWearables"ent);
                        
                        
Handle ph1 CreateDataPack();
                        
CreateTimer(2.0AddItemTimer1ph1TIMER_FLAG_NO_MAPCHANGE);
                        
                        
WritePackCell(ph1EntIndexToEntRef(param1));
                        
WritePackCell(ph1EntIndexToEntRef(item));
                        
WritePackCell(ph1EntIndexToEntRef(ent));
                        
WritePackCell(ph1m_iItemIDHigh );
                        
WritePackCell(ph1m_iItemIDLow );
                        
                        
Handle ph2 CreateDataPack();
                        
CreateTimer(0.0AddItemTimer2ph2TIMER_FLAG_NO_MAPCHANGE);
                        
                        
WritePackCell(ph2EntIndexToEntRef(param1));
                        
WritePackCell(ph2EntIndexToEntRef(item));
                        
                        
char weaponclass64 ]; GetEdictClassnameentweaponclasssizeofweaponclass ) );
                        
CPrintToChat(param1"%s"weaponclass);
                    }
        
                    return 
Plugin_Handled;
                }
            }
        }

        case 
MenuAction_Cancel:
        {
            
//param1 is client, param2 is cancel reason (see MenuCancel types)
            
CloseHandle(menu);
        }

        case 
MenuAction_End:
        {
            
//param1 is MenuEnd reason, if canceled param2 is MenuCancel reason
            
CloseHandle(menu);

        }

        case 
MenuAction_DisplayItem:
        {
            
//param1 is client, param2 is item

            
new String:item[64];
            
GetMenuItem(menuparam2itemsizeof(item));

            if (
StrEqual(item"bloodhound_black_silver"))
            {
                new 
String:translation[128];
                
Format(translationsizeof(translation), "%T""bloodhound_black_silver"param1);
                return 
RedrawMenuItem(translation);
            }
            else if (
StrEqual(item"bloodhound_snakeskin_brass"))
            {
                new 
String:translation[128];
                
Format(translationsizeof(translation), "%T""bloodhound_snakeskin_brass"param1);
                return 
RedrawMenuItem(translation);
            }
            else if (
StrEqual(item"bloodhound_guerrilla"))
            {
                new 
String:translation[128];
                
Format(translationsizeof(translation), "%T""bloodhound_guerrilla"param1);
                return 
RedrawMenuItem(translation);
            }
            else if (
StrEqual(item"handwrap_leathery"))
            {
                new 
String:translation[128];
                
Format(translationsizeof(translation), "%T""handwrap_leathery"param1);
                return 
RedrawMenuItem(translation);
            }
            else if (
StrEqual(item"slick_military"))
            {
                new 
String:translation[128];
                
Format(translationsizeof(translation), "%T""slick_military"param1);
                return 
RedrawMenuItem(translation);
            }
            else if (
StrEqual(item" handwrap_red_slaughter"))
            {
                new 
String:translation[128];
                
Format(translationsizeof(translation), "%T"" handwrap_red_slaughter"param1);
                return 
RedrawMenuItem(translation);
            }
            else if (
StrEqual(item"motorcycle_mono_boom"))
            {
                new 
String:translation[128];
                
Format(translationsizeof(translation), "%T""motorcycle_mono_boom"param1);
                return 
RedrawMenuItem(translation);
            }
            else if (
StrEqual(item"specialist_kimono_diamonds_red"))
            {
                new 
String:translation[128];
                
Format(translationsizeof(translation), "%T""specialist_kimono_diamonds_red"param1);
                return 
RedrawMenuItem(translation);
            }
            else if (
StrEqual(item"specialist_emerald_web"))
            {
                new 
String:translation[128];
                
Format(translationsizeof(translation), "%T""specialist_emerald_web"param1);
                return 
RedrawMenuItem(translation);
            }
        }

    }
    return 
0;
}

public 
Action ps(Handle event, const char[] namebool dontBroadcast)
{
    new 
client_id GetEventInt(event"userid");
    new 
client GetClientOfUserId(client_id);
    if(
gloves[client] == 1){
        
gloves[client] = 1;
                    
        
int item GetEntPropEnt(clientProp_Send"m_hActiveWeapon");
                    
        
SetEntPropEnt(clientProp_Send"m_hActiveWeapon", -1);
                    
        new 
ent GivePlayerItem(client"wearable_item");
                    
        if (
ent != -1)
        {
            
int m_iItemIDHigh GetEntPropentProp_Send"m_iItemIDHigh" );
            
int m_iItemIDLow GetEntPropentProp_Send"m_iItemIDLow" );
                        
            
SetEntProp(entProp_Send"m_iItemDefinitionIndex"5027);
            
SetEntProp(entProp_Send"m_iItemIDLow"8192+client);
            
SetEntProp(entProp_Send"m_iItemIDHigh"0);
            
SetEntProp(entProp_Send"m_iEntityQuality"4);
                        
            
SetEntPropFloat(entProp_Send"m_flFallbackWear"0.00000001);
                        
            
SetEntProp(entProp_Send,  "m_iAccountID"GetSteamAccountID(client));
                        
            
SetEntProp(entProp_Send,  "m_nFallbackSeed"0);
            
SetEntProp(entProp_Send,  "m_nFallbackStatTrak"GetSteamAccountID(client));
            
SetEntProp(entProp_Send,  "m_nFallbackPaintKit"10006);
                        
            if (!
IsModelPrecached("models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl")) PrecacheModel("models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl");
                        
            
SetEntProp(entProp_Send"m_nModelIndex"PrecacheModel("models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl"));
            
SetEntityModel(ent"models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl");        
            
SetEntPropEnt(clientProp_Send"m_hMyWearables"ent);
                        
            
Handle ph1 CreateDataPack();
            
CreateTimer(2.0AddItemTimer1ph1TIMER_FLAG_NO_MAPCHANGE);
                        
            
WritePackCell(ph1EntIndexToEntRef(client));
            
WritePackCell(ph1EntIndexToEntRef(item));
            
WritePackCell(ph1EntIndexToEntRef(ent));
            
WritePackCell(ph1m_iItemIDHigh );
            
WritePackCell(ph1m_iItemIDLow );
                        
            
Handle ph2 CreateDataPack();
            
CreateTimer(0.0AddItemTimer2ph2TIMER_FLAG_NO_MAPCHANGE);
                        
            
WritePackCell(ph2EntIndexToEntRef(client));
            
WritePackCell(ph2EntIndexToEntRef(item));
                        
            
char weaponclass64 ]; GetEdictClassnameentweaponclasssizeofweaponclass ) );
        }
    }
    else
    if(
gloves[client] == 2){
        
gloves[client] = 2;
                    
        
int item GetEntPropEnt(clientProp_Send"m_hActiveWeapon");
        
        
SetEntPropEnt(clientProp_Send"m_hActiveWeapon", -1);
        
        new 
ent GivePlayerItem(client"wearable_item");
        
        if (
ent != -1)
        {
            
int m_iItemIDHigh GetEntPropentProp_Send"m_iItemIDHigh" );
            
int m_iItemIDLow GetEntPropentProp_Send"m_iItemIDLow" );

            
SetEntProp(entProp_Send"m_iItemDefinitionIndex"5027);
            
SetEntProp(entProp_Send"m_iItemIDLow"8192+client);
            
SetEntProp(entProp_Send"m_iItemIDHigh"0);
            
SetEntProp(entProp_Send"m_iEntityQuality"4);
            
            
SetEntPropFloat(entProp_Send"m_flFallbackWear"0.00000001);

            
SetEntProp(entProp_Send,  "m_iAccountID"GetSteamAccountID(client));

            
SetEntProp(entProp_Send,  "m_nFallbackSeed"0);
            
SetEntProp(entProp_Send,  "m_nFallbackStatTrak"GetSteamAccountID(client));
            
SetEntProp(entProp_Send,  "m_nFallbackPaintKit"10007);

            if (!
IsModelPrecached("models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl")) PrecacheModel("models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl");

            
SetEntProp(entProp_Send"m_nModelIndex"PrecacheModel("models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl"));
            
SetEntityModel(ent"models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl");
            
            
SetEntPropEnt(clientProp_Send"m_hMyWearables"ent);

            
Handle ph1 CreateDataPack();
            
CreateTimer(2.0AddItemTimer1ph1TIMER_FLAG_NO_MAPCHANGE);

            
WritePackCell(ph1EntIndexToEntRef(client));
            
WritePackCell(ph1EntIndexToEntRef(item));
            
WritePackCell(ph1EntIndexToEntRef(ent));
            
WritePackCell(ph1m_iItemIDHigh );
            
WritePackCell(ph1m_iItemIDLow );

            
Handle ph2 CreateDataPack();
            
CreateTimer(0.0AddItemTimer2ph2TIMER_FLAG_NO_MAPCHANGE);

            
WritePackCell(ph2EntIndexToEntRef(client));
            
WritePackCell(ph2EntIndexToEntRef(item));

            
char weaponclass64 ]; GetEdictClassnameentweaponclasssizeofweaponclass ) );
        }
    
    }
    else
    if(
gloves[client] == 3){
        
gloves[client] = 3;
                    
        
int item GetEntPropEnt(clientProp_Send"m_hActiveWeapon");
                    
        
SetEntPropEnt(clientProp_Send"m_hActiveWeapon", -1);
                    
        new 
ent GivePlayerItem(client"wearable_item");
                    
        if (
ent != -1)
        {
            
int m_iItemIDHigh GetEntPropentProp_Send"m_iItemIDHigh" );
            
int m_iItemIDLow GetEntPropentProp_Send"m_iItemIDLow" );
                        
            
SetEntProp(entProp_Send"m_iItemDefinitionIndex"5027);
            
SetEntProp(entProp_Send"m_iItemIDLow"8192+client);
            
SetEntProp(entProp_Send"m_iItemIDHigh"0);
            
SetEntProp(entProp_Send"m_iEntityQuality"4);
                        
            
SetEntPropFloat(entProp_Send"m_flFallbackWear"0.00000001);
                        
            
SetEntProp(entProp_Send,  "m_iAccountID"GetSteamAccountID(client));
                        
            
SetEntProp(entProp_Send,  "m_nFallbackSeed"0);
            
SetEntProp(entProp_Send,  "m_nFallbackStatTrak"GetSteamAccountID(client));
            
SetEntProp(entProp_Send,  "m_nFallbackPaintKit"10039);
                        
            if (!
IsModelPrecached("models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl")) PrecacheModel("models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl");
                        
            
SetEntProp(entProp_Send"m_nModelIndex"PrecacheModel("models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl"));
            
SetEntityModel(ent"models/weapons/v_models/arms/glove_bloodhound/v_glove_bloodhound.mdl");
                        
            
SetEntPropEnt(clientProp_Send"m_hMyWearables"ent);
                        
            
Handle ph1 CreateDataPack();
            
CreateTimer(2.0AddItemTimer1ph1TIMER_FLAG_NO_MAPCHANGE);
                        
            
WritePackCell(ph1EntIndexToEntRef(client));
            
WritePackCell(ph1EntIndexToEntRef(item));
            
WritePackCell(ph1EntIndexToEntRef(ent));
            
WritePackCell(ph1m_iItemIDHigh );
            
WritePackCell(ph1m_iItemIDLow );
                        
            
Handle ph2 CreateDataPack();
            
CreateTimer(0.0AddItemTimer2ph2TIMER_FLAG_NO_MAPCHANGE);
                        
            
WritePackCell(ph2EntIndexToEntRef(client));
            
WritePackCell(ph2EntIndexToEntRef(item));
                        
            
char weaponclass64 ]; GetEdictClassnameentweaponclasssizeofweaponclass ) );
        }
    
    }
    else
    if(
gloves[client] == 4){
        
gloves[client] = 4;
        
int item GetEntPropEnt(clientProp_Send"m_hActiveWeapon");
                    
        
SetEntPropEnt(clientProp_Send"m_hActiveWeapon", -1);
                    
        new 
ent GivePlayerItem(client"wearable_item");
                    
        if (
ent != -1)
        {
            
int m_iItemIDHigh GetEntPropentProp_Send"m_iItemIDHigh" );
            
int m_iItemIDLow GetEntPropentProp_Send"m_iItemIDLow" );
                        
            
SetEntProp(entProp_Send"m_iItemDefinitionIndex"5029);
            
SetEntProp(entProp_Send"m_iItemIDLow"8192+client);
            
SetEntProp(entProp_Send"m_iItemIDHigh"0);
            
SetEntProp(entProp_Send"m_iEntityQuality"4);
                        
            
SetEntPropFloat(entProp_Send"m_flFallbackWear"0.00000001);
                        
            
SetEntProp(entProp_Send,  "m_iAccountID"GetSteamAccountID(client));
                        
            
SetEntProp(entProp_Send,  "m_nFallbackSeed"0);
            
SetEntProp(entProp_Send,  "m_nFallbackStatTrak"GetSteamAccountID(client));
            
SetEntProp(entProp_Send,  "m_nFallbackPaintKit"10009);
                        
            if (!
IsModelPrecached("models/weapons/v_models/arms/glove_handwrap_leathery/v_glove_handwrap_leathery.mdl")) PrecacheModel("models/weapons/v_models/arms/glove_handwrap_leathery/v_glove_handwrap_leathery.mdl");
                        
            
SetEntProp(entProp_Send"m_nModelIndex"PrecacheModel("models/weapons/v_models/arms/glove_handwrap_leathery/v_glove_handwrap_leathery.mdl"));
            
SetEntityModel(ent"models/weapons/v_models/arms/glove_handwrap_leathery/v_glove_handwrap_leathery.mdl");
                        
            
SetEntPropEnt(clientProp_Send"m_hMyWearables"ent);
                        
            
Handle ph1 CreateDataPack();
            
CreateTimer(2.0AddItemTimer1ph1TIMER_FLAG_NO_MAPCHANGE);
                        
            
WritePackCell(ph1EntIndexToEntRef(client));
            
WritePackCell(ph1EntIndexToEntRef(item));
            
WritePackCell(ph1EntIndexToEntRef(ent));
            
WritePackCell(ph1m_iItemIDHigh );
            
WritePackCell(ph1m_iItemIDLow );
                        
            
Handle ph2 CreateDataPack();
            
CreateTimer(0.0AddItemTimer2ph2TIMER_FLAG_NO_MAPCHANGE);
                        
            
WritePackCell(ph2EntIndexToEntRef(client));
            
WritePackCell(ph2EntIndexToEntRef(item));
                        
            
char weaponclass64 ]; GetEdictClassnameentweaponclasssizeofweaponclass ) );
        }
    
    }
    else
    if(
gloves[client] == 5){
        
gloves[client] = 5;
        
int item GetEntPropEnt(clientProp_Send"m_hActiveWeapon");
                    
        
SetEntPropEnt(clientProp_Send"m_hActiveWeapon", -1);
                    
        new 
ent GivePlayerItem(client"wearable_item");
                    
        if (
ent != -1)
        {
            
int m_iItemIDHigh GetEntPropentProp_Send"m_iItemIDHigh" );
            
int m_iItemIDLow GetEntPropentProp_Send"m_iItemIDLow" );
                        
            
SetEntProp(entProp_Send"m_iItemDefinitionIndex"5031);
            
SetEntProp(entProp_Send"m_iItemIDLow"8192+client);
            
SetEntProp(entProp_Send"m_iItemIDHigh"0);
            
SetEntProp(entProp_Send"m_iEntityQuality"4);
                        
            
SetEntPropFloat(entProp_Send"m_flFallbackWear"0.00000001);
                        
            
SetEntProp(entProp_Send,  "m_iAccountID"GetSteamAccountID(client));
                        
            
SetEntProp(entProp_Send,  "m_nFallbackSeed"0);
            
SetEntProp(entProp_Send,  "m_nFallbackStatTrak"GetSteamAccountID(client));
            
SetEntProp(entProp_Send,  "m_nFallbackPaintKit"10015);
                        
            if (!
IsModelPrecached("models/weapons/v_models/arms/glove_slick/v_glove_slick.mdl")) PrecacheModel("models/weapons/v_models/arms/glove_slick/v_glove_slick.mdl");
                        
            
SetEntProp(entProp_Send"m_nModelIndex"PrecacheModel("models/weapons/v_models/arms/glove_slick/v_glove_slick.mdl"));
            
SetEntityModel(ent"models/weapons/v_models/arms/glove_slick/v_glove_slick.mdl");
                        
            
SetEntPropEnt(clientProp_Send"m_hMyWearables"ent);
                        
            
Handle ph1 CreateDataPack();
            
CreateTimer(2.0AddItemTimer1ph1TIMER_FLAG_NO_MAPCHANGE);
                        
            
WritePackCell(ph1EntIndexToEntRef(client));
            
WritePackCell(ph1EntIndexToEntRef(item));
            
WritePackCell(ph1EntIndexToEntRef(ent));
            
WritePackCell(ph1m_iItemIDHigh );
            
WritePackCell(ph1m_iItemIDLow );
                        
            
Handle ph2 CreateDataPack();
            
CreateTimer(0.0AddItemTimer2ph2TIMER_FLAG_NO_MAPCHANGE);
                        
            
WritePackCell(ph2EntIndexToEntRef(client));
            
WritePackCell(ph2EntIndexToEntRef(item));
                        
            
char weaponclass64 ]; GetEdictClassnameentweaponclasssizeofweaponclass ) );
        }
    }
    else
    if(
gloves[client] == 6){
        
gloves[client] = 6;
        
int item GetEntPropEnt(clientProp_Send"m_hActiveWeapon");
                    
        
SetEntPropEnt(clientProp_Send"m_hActiveWeapon", -1);
                    
        new 
ent GivePlayerItem(client"wearable_item");
                    
        if (
ent != -1)
        {
            
int m_iItemIDHigh GetEntPropentProp_Send"m_iItemIDHigh" );
            
int m_iItemIDLow GetEntPropentProp_Send"m_iItemIDLow" );
                        
            
SetEntProp(entProp_Send"m_iItemDefinitionIndex"5032);
            
SetEntProp(entProp_Send"m_iItemIDLow"8192+client);
            
SetEntProp(entProp_Send"m_iItemIDHigh"0);
            
SetEntProp(entProp_Send"m_iEntityQuality"4);
                        
            
SetEntPropFloat(entProp_Send"m_flFallbackWear"0.00000001);
                        
            
SetEntProp(entProp_Send,  "m_iAccountID"GetSteamAccountID(client));
                        
            
SetEntProp(entProp_Send,  "m_nFallbackSeed"0);
            
SetEntProp(entProp_Send,  "m_nFallbackStatTrak"GetSteamAccountID(client));
            
SetEntProp(entProp_Send,  "m_nFallbackPaintKit"10021);
                        
            if (!
IsModelPrecached("models/weapons/v_models/arms/glove_handwrap_leathery/v_glove_handwrap_leathery.mdl")) PrecacheModel("models/weapons/v_models/arms/glove_handwrap_leathery/v_glove_handwrap_leathery.mdl");
                        
            
SetEntProp(entProp_Send"m_nModelIndex"PrecacheModel("models/weapons/v_models/arms/glove_handwrap_leathery/v_glove_handwrap_leathery.mdl"));
            
SetEntityModel(ent"models/weapons/v_models/arms/glove_handwrap_leathery/v_glove_handwrap_leathery.mdl");
                        
            
SetEntPropEnt(clientProp_Send"m_hMyWearables"ent);
                        
            
Handle ph1 CreateDataPack();
            
CreateTimer(2.0AddItemTimer1ph1TIMER_FLAG_NO_MAPCHANGE);
                
            
WritePackCell(ph1EntIndexToEntRef(client));
            
WritePackCell(ph1EntIndexToEntRef(item));
            
WritePackCell(ph1EntIndexToEntRef(ent));
            
WritePackCell(ph1m_iItemIDHigh );
            
WritePackCell(ph1m_iItemIDLow );
                        
            
Handle ph2 CreateDataPack();
            
CreateTimer(0.0AddItemTimer2ph2TIMER_FLAG_NO_MAPCHANGE);
                        
            
WritePackCell(ph2EntIndexToEntRef(client));
            
WritePackCell(ph2EntIndexToEntRef(item));
                        
            
char weaponclass64 ]; GetEdictClassnameentweaponclasssizeofweaponclass ) );
        }
    }
    else
    if(
gloves[client] == 7){
        
gloves[client] = 7;
        
int item GetEntPropEnt(clientProp_Send"m_hActiveWeapon");
                    
        
SetEntPropEnt(clientProp_Send"m_hActiveWeapon", -1);
                    
        new 
ent GivePlayerItem(client"wearable_item");
                    
        if (
ent != -1)
        {
            
int m_iItemIDHigh GetEntPropentProp_Send"m_iItemIDHigh" );
            
int m_iItemIDLow GetEntPropentProp_Send"m_iItemIDLow" );
                        
            
SetEntProp(entProp_Send"m_iItemDefinitionIndex"5033);
            
SetEntProp(entProp_Send"m_iItemIDLow"8192+client);
            
SetEntProp(entProp_Send"m_iItemIDHigh"0);
            
SetEntProp(entProp_Send"m_iEntityQuality"4);
                        
            
SetEntPropFloat(entProp_Send"m_flFallbackWear"0.00000001);
                        
            
SetEntProp(entProp_Send,  "m_iAccountID"GetSteamAccountID(client));
                        
            
SetEntProp(entProp_Send,  "m_nFallbackSeed"0);
            
SetEntProp(entProp_Send,  "m_nFallbackStatTrak"GetSteamAccountID(client));
            
SetEntProp(entProp_Send,  "m_nFallbackPaintKit"10027);
                        
            if (!
IsModelPrecached("models/weapons/v_models/arms/glove_motorcycle/v_glove_motorcycle.mdl")) PrecacheModel("models/weapons/v_models/arms/glove_motorcycle/v_glove_motorcycle.mdl");
                        
            
SetEntProp(entProp_Send"m_nModelIndex"PrecacheModel("models/weapons/v_models/arms/glove_motorcycle/v_glove_motorcycle.mdl"));
            
SetEntityModel(ent"models/weapons/v_models/arms/glove_motorcycle/v_glove_motorcycle.mdl");
                        
            
SetEntPropEnt(clientProp_Send"m_hMyWearables"ent);
                        
            
Handle ph1 CreateDataPack();
            
CreateTimer(2.0AddItemTimer1ph1TIMER_FLAG_NO_MAPCHANGE);
                        
            
WritePackCell(ph1EntIndexToEntRef(client));
            
WritePackCell(ph1EntIndexToEntRef(item));
            
WritePackCell(ph1EntIndexToEntRef(ent));
            
WritePackCell(ph1m_iItemIDHigh );
            
WritePackCell(ph1m_iItemIDLow );
                        
            
Handle ph2 CreateDataPack();
            
CreateTimer(0.0AddItemTimer2ph2TIMER_FLAG_NO_MAPCHANGE);
                        
            
WritePackCell(ph2EntIndexToEntRef(client));
            
WritePackCell(ph2EntIndexToEntRef(item));
                        
            
char weaponclass64 ]; GetEdictClassnameentweaponclasssizeofweaponclass ) );
        }
    }
    else
    if(
gloves[client] == 8){
        
gloves[client] = 8;
        
int item GetEntPropEnt(clientProp_Send"m_hActiveWeapon");
                    
        
SetEntPropEnt(clientProp_Send"m_hActiveWeapon", -1);
                    
        new 
ent GivePlayerItem(client"wearable_item");
                    
        if (
ent != -1)
        {
            
int m_iItemIDHigh GetEntPropentProp_Send"m_iItemIDHigh" );
            
int m_iItemIDLow GetEntPropentProp_Send"m_iItemIDLow" );
                        
            
SetEntProp(entProp_Send"m_iItemDefinitionIndex"5028);
            
SetEntProp(entProp_Send"m_iItemIDLow"8192+client);
            
SetEntProp(entProp_Send"m_iItemIDHigh"0);
            
SetEntProp(entProp_Send"m_iEntityQuality"4);
                        
            
SetEntPropFloat(entProp_Send"m_flFallbackWear"0.00000001);
                        
            
SetEntProp(entProp_Send,  "m_iAccountID"GetSteamAccountID(client));
                        
            
SetEntProp(entProp_Send,  "m_nFallbackSeed"0);
            
SetEntProp(entProp_Send,  "m_nFallbackStatTrak"GetSteamAccountID(client));
            
SetEntProp(entProp_Send,  "m_nFallbackPaintKit"10033);
                        
            if (!
IsModelPrecached("models/weapons/v_models/arms/glove_specialist/v_glove_specialist.mdl")) PrecacheModel("models/weapons/v_models/arms/glove_specialist/v_glove_specialist.mdl");
                        
            
SetEntProp(entProp_Send"m_nModelIndex"PrecacheModel("models/weapons/v_models/arms/glove_specialist/v_glove_specialist.mdl"));
            
SetEntityModel(ent"models/weapons/v_models/arms/glove_specialist/v_glove_specialist.mdl");
                        
            
SetEntPropEnt(clientProp_Send"m_hMyWearables"ent);
                        
            
Handle ph1 CreateDataPack();
            
CreateTimer(2.0AddItemTimer1ph1TIMER_FLAG_NO_MAPCHANGE);
                        
            
WritePackCell(ph1EntIndexToEntRef(client));
            
WritePackCell(ph1EntIndexToEntRef(item));
            
WritePackCell(ph1EntIndexToEntRef(ent));
            
WritePackCell(ph1m_iItemIDHigh );
            
WritePackCell(ph1m_iItemIDLow );
                        
            
Handle ph2 CreateDataPack();
            
CreateTimer(0.0AddItemTimer2ph2TIMER_FLAG_NO_MAPCHANGE);
                        
            
WritePackCell(ph2EntIndexToEntRef(client));
            
WritePackCell(ph2EntIndexToEntRef(item));
                        
            
char weaponclass64 ]; GetEdictClassnameentweaponclasssizeofweaponclass ) );
        }
    }
    else
    if(
gloves[client] == 9){
        
gloves[client] = 9;
        
int item GetEntPropEnt(clientProp_Send"m_hActiveWeapon");
                    
        
SetEntPropEnt(clientProp_Send"m_hActiveWeapon", -1);
                    
        new 
ent GivePlayerItem(client"wearable_item");
                    
        if (
ent != -1)
        {
            
int m_iItemIDHigh GetEntPropentProp_Send"m_iItemIDHigh" );
            
int m_iItemIDLow GetEntPropentProp_Send"m_iItemIDLow" );
                        
            
SetEntProp(entProp_Send"m_iItemDefinitionIndex"5028);
            
SetEntProp(entProp_Send"m_iItemIDLow"8192+client);
            
SetEntProp(entProp_Send"m_iItemIDHigh"0);
            
SetEntProp(entProp_Send"m_iEntityQuality"4);
                        
            
SetEntPropFloat(entProp_Send"m_flFallbackWear"0.00000001);
                        
            
SetEntProp(entProp_Send,  "m_iAccountID"GetSteamAccountID(client));
                        
            
SetEntProp(entProp_Send,  "m_nFallbackSeed"0);
            
SetEntProp(entProp_Send,  "m_nFallbackStatTrak"GetSteamAccountID(client));
            
SetEntProp(entProp_Send,  "m_nFallbackPaintKit"10034);
                        
            if (!
IsModelPrecached("models/weapons/v_models/arms/glove_specialist/v_glove_specialist.mdl")) PrecacheModel("models/weapons/v_models/arms/glove_specialist/v_glove_specialist.mdl");
                        
            
SetEntProp(entProp_Send"m_nModelIndex"PrecacheModel("models/weapons/v_models/arms/glove_specialist/v_glove_specialist.mdl"));
            
SetEntityModel(ent"models/weapons/v_models/arms/glove_specialist/v_glove_specialist.mdl");
                        
            
SetEntPropEnt(clientProp_Send"m_hMyWearables"ent);
                        
            
Handle ph1 CreateDataPack();
            
CreateTimer(2.0AddItemTimer1ph1TIMER_FLAG_NO_MAPCHANGE);
                        
            
WritePackCell(ph1EntIndexToEntRef(client));
            
WritePackCell(ph1EntIndexToEntRef(item));
            
WritePackCell(ph1EntIndexToEntRef(ent));
            
WritePackCell(ph1m_iItemIDHigh );
            
WritePackCell(ph1m_iItemIDLow );
                        
            
Handle ph2 CreateDataPack();
            
CreateTimer(0.0AddItemTimer2ph2TIMER_FLAG_NO_MAPCHANGE);
                        
            
WritePackCell(ph2EntIndexToEntRef(client));
            
WritePackCell(ph2EntIndexToEntRef(item));
                        
            
char weaponclass64 ]; GetEdictClassnameentweaponclasssizeofweaponclass ) );
        }
    }
        
}

public 
Action AddItemTimer1(Handle timerany ph)
{
    
int client;
    
int item;
    
int ent;
    
int m_iItemIDHigh;
    
int m_iItemIDLow;

    
ResetPack(ph);

    
client EntRefToEntIndex(ReadPackCell(ph));
    
item EntRefToEntIndex(ReadPackCell(ph));
    
ent EntRefToEntIndex(ReadPackCell(ph));
    
m_iItemIDHigh ReadPackCellph );
    
m_iItemIDLow ReadPackCellph );
    
    if (
client != INVALID_ENT_REFERENCE && item != INVALID_ENT_REFERENCE)
    {
        
SetEntPropEnt(clientProp_Send"m_hActiveWeapon"item);
        
SetEntPropitemProp_Send"m_iItemIDHigh"m_iItemIDHigh );
        
SetEntPropitemProp_Send"m_iItemIDLow"m_iItemIDLow );
    }
    
    
//int maxEntities = GetMaxEntities();
    
if(IsValidEdict(ent))
    {
        
char weaponclass64 ];
        
GetEdictClassnameentweaponclasssizeofweaponclass ) );
        
CPrintToChat(client"After: %s"weaponclass);
        
AcceptEntityInput(ent"Kill")
    }
    
    
/*for( int i = MaxClients + 1; i <= maxEntities; i++)
    {
        if( IsValidEdict( i ) )
        {
            GetEdictClassname( i, weaponclass, sizeof( weaponclass ) );
            PrintToServer("%s", weaponclass);
            //if(StrContains(weaponclass, "illusionary", false) || StrContains(weaponclass, "areaportal", false))
                //AcceptEntityInput(i, "Kill");
        }
    }*/
    
    
return Plugin_Stop
}

public 
Action AddItemTimer2(Handle timerany ph)
{
    
int client;
    
int item;

    
ResetPack(ph);

    
client EntRefToEntIndex(ReadPackCell(ph));
    
item EntRefToEntIndex(ReadPackCell(ph));
    
    if (
client != INVALID_ENT_REFERENCE && item != INVALID_ENT_REFERENCE)
    {
        
SetEntPropEnt(clientProp_Send"m_hActiveWeapon"item);
    }
    
    return 
Plugin_Stop
}

public 
void OnClientDisconnect(int iClient)
{
    if(
gloves[iClient] != 0){
        
gloves[iClient] = 0;
    }
}

bool IsValidated(int iClient)
{
    return (
<= iClient <= MaxClients && IsClientInGame(iClient)) ? true false;

__________________
Divin12 is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 01-08-2017 , 13:25   Re: [CS:GO] Hide new arms?
Reply With Quote #110

OFFTOP

Quote:
L 01/08/2017 - 19:55:17: [SM] Call stack trace:
L 01/08/2017 - 19:55:17: [SM] [0] Format
L 01/08/2017 - 19:55:17: [SM] [1] Line 609, C:\Users\Andrei\Desktop\compiler\addons\sourc emod\scripting\cgloves.sp::DID
L 01/08/2017 - 19:55:17: [SM] [3] DisplayMenu
L 01/08/2017 - 19:55:17: [SM] [4] Line 29, C:\Users\Andrei\Desktop\compiler\addons\sourc emod\scripting\cgloves.sp::ShowPropss
L 01/08/2017 - 19:55:17: [SM] [5] Line 36, C:\Users\Andrei\Desktop\compiler\addons\sourc emod\scripting\cgloves.sp::ShowProps
L 01/08/2017 - 19:55:17: [SM] Exception reported: Language phrase "bloodhound_snakeskin_brass" not found (arg 6)

Last edited by ZASTRELIS; 01-08-2017 at 13:30.
ZASTRELIS 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:44.


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