|
AlliedModders Donor
Join Date: Dec 2009
Location: Germany
|
01-15-2020
, 13:49
Re: How get a list of Possible entities of a game
|
#8
|
Quote:
Originally Posted by Ilusion9
try:
PHP Code:
void RemovePlayerWeapons(int client)
{
int length = GetEntPropArraySize(client, Prop_Send, "m_hMyWeapons");
for (int i = 0; i < length; i++)
{
int weapon = GetEntPropEnt(client, Prop_Send, "m_hMyWeapons", i);
if (weapon != -1)
{
RemovePlayerItem(client, weapon);
AcceptEntityInput(weapon, "Kill");
}
}
SetEntPropEnt(client, Prop_Send, "m_hActiveWeapon", -1);
}
|
This is working. Thank You!
__________________
|
|
|
|