Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gunloop()
- {
- self endon("disconnect");
- self endon("player_killed");
- While(1) {
- current = self getcurrentweapon();
- if(current != "") {
- weapon1 = self getweaponslotweapon("primary");
- weapon2 = self getweaponslotweapon("primaryb");
- if(current == weapon1)
- currentslot = "primary";
- else
- currentslot = "primaryb";
- if(currentslot == "primary")
- {
- self detach("xmodel/" + weapon1, "");
- self notify("stopgunloopb");
- } else if(currentslot == "primaryb") {
- self detach("xmodel/" + weapon2, "");
- self notify("stopgunloopa");
- }
- }
- wait 0.05;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment