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 a = 0; a < 50; a++){
new weapon = GetPlayerWeaponSlot(i, a);
if (IsValidEntity(weapon))
{
decl String:weapon_name[32];
GetEntityClassname(weapon, weapon_name, 32);
new String:stri[32];
IntToString(a,stri,32);
PrintToServer(stri);
PrintToServer(weapon_name);
}
}