Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock RemoveAllWeapons(int client)
- {
- int weaponslot = 0;
- int ent = -1;
- while((ent = GetPlayerWeaponSlot(client, weaponslot)) == -1)
- {
- weaponslot++;
- }
- while((ent = GetPlayerWeaponSlot(client, weaponslot)) != -1 && weaponslot <= 5)
- {
- CS_DropWeapon(client, ent, false, false);
- AcceptEntityInput(ent, "Kill");
- weaponslot++;
- ent = -1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement