View Single Post
Author Message
eim64
New Member
Join Date: Feb 2016
Old 02-14-2016 , 10:25   throw/remove weapons [help]
Reply With Quote #1

im currently making a gun plugin that gives the player some weapons on start, it gives the weapons but spawns new weapons next round. in round_end i have made for lopps that cycles thru all the players inventories, but i dont know how to make the player throw or just delete the weapons.
this is my code:
PHP Code:
for(new 050a++){
                new 
weapon GetPlayerWeaponSlot(ia);
                if (
IsValidEntity(weapon))
                {
                    
decl String:weapon_name[32];
                    
GetEntityClassname(weaponweapon_name32);
                    new 
String:stri[32];
                    
IntToString(a,stri,32);
                    
PrintToServer(stri);
                    
PrintToServer(weapon_name);
                }
        
                
            } 
eim64 is offline