View Single Post
jugule
AlliedModders Donor
Join Date: Apr 2020
Old 06-18-2020 , 10:53   Re: weapon_shield bug
Reply With Quote #6

Quote:
Originally Posted by Kellan123 View Post
#backwards =>

PHP Code:
stock RemovePlayerShield(client)
{
    new 
iWeapon GetPlayerWeaponSlot(client11);
    
    if(
iWeapon != -1)
    {
        if(
IsValidEdict(iWeapon) && IsValidEntity(iWeapon))
        {
            new 
String:sClassname[128];
            
GetEntityClassname(iWeaponsClassnamesizeof(sClassname));
            
            if(
StrEqual("weapon_shield"sClassname))
            {
                
RemovePlayerItem(clientiWeapon);
                
AcceptEntityInput(iWeapon"kill");
            }
        }
    }

Thanks!! <3
jugule is offline