View Single Post
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 01-15-2020 , 12:10   Re: How get a list of Possible entities of a game
Reply With Quote #7

try:

PHP Code:
void RemovePlayerWeapons(int client)
{   
    
int length GetEntPropArraySize(clientProp_Send"m_hMyWeapons");
    for (
int i 0lengthi++) 
    {
        
int weapon GetEntPropEnt(clientProp_Send"m_hMyWeapons"i); 
        if (
weapon != -1)
        {
            
RemovePlayerItem(clientweapon);
            
AcceptEntityInput(weapon"Kill");
        }
    }
    
    
SetEntPropEnt(clientProp_Send"m_hActiveWeapon", -1);

__________________

Last edited by Ilusion9; 01-15-2020 at 12:10.
Ilusion9 is offline