View Single Post
JoaoRodrigoGamer
Junior Member
Join Date: Jul 2019
Location: Portugal
Old 08-23-2019 , 06:15   Re: [CSGO] Fetch client's weapons, grenades, etc...
Reply With Quote #26

Quote:
Originally Posted by Ilusion9 View Post
Use this to check if a client has certain weapons

PHP Code:

    int size 
GetEntPropArraySize(clientProp_Send"m_hMyWeapons");
    
    for (
int i0m_hMyWeapons_sizei++) 
    { 
        
int item GetEntPropEnt(clientProp_Send"m_hMyWeapons"i); 

        if (
item != -1
        { 
            
char classname[64];
            
GetEntityClassname(itemclassnamesizeof(classname));
        } 
    } 
Can you please explain how that code works and how can it be applied to, for example, find if the player has a health shot?
JoaoRodrigoGamer is offline