Thread: knife bug
View Single Post
SpirT
Senior Member
Join Date: Sep 2018
Location: Portugal
Old 06-10-2020 , 15:19   Re: knife bug
Reply With Quote #2

Quote:
Originally Posted by jugule View Post
I use this function to wipe the knives extra. (without this function some players have 5 knives each), but I have this bug, I don't know why.
https://imgur.com/a/V8PLrYe

code:

PHP Code:
public void RemoveExtraKnives(int client)
{
    
int weapon GetPlayerWeaponSlot(client2);
       while (
weapon!= -1)
       {
        
RemovePlayerItem(clientweapon);
        
weapon GetPlayerWeaponSlot(client2);
    }
        
GivePlayerItem(client"weapon_knife");

Hey! If I'm sure, slot 2 is for the pistol. Try using slot 3
__________________
SpirT is offline