Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. stock RemoveAllWeapons(int client)
  2. {
  3. int weaponslot = 0;
  4. int ent = -1;
  5. while((ent = GetPlayerWeaponSlot(client, weaponslot)) == -1)
  6. {
  7. weaponslot++;
  8. }
  9. while((ent = GetPlayerWeaponSlot(client, weaponslot)) != -1 && weaponslot <= 5)
  10. {
  11. CS_DropWeapon(client, ent, false, false);
  12. AcceptEntityInput(ent, "Kill");
  13. weaponslot++;
  14. ent = -1;
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement