View Single Post
UeberDaniel
AlliedModders Donor
Join Date: Dec 2009
Location: Germany
Old 01-15-2020 , 13:49   Re: How get a list of Possible entities of a game
Reply With Quote #8

Quote:
Originally Posted by Ilusion9 View Post
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);

This is working. Thank You!
__________________

UeberDaniel is offline
Send a message via MSN to UeberDaniel