Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WepCheck() //checks if the weapon is any of the listed below
- {
- self endon("death");
- self endon("disconnect");
- currentWeapon = self getCurrentWeapon();
- if(isSubStr(currentWeapon, "spas12")) //checks if the CURRENT weapon is Spas
- {
- self thread Bullet();
- }
- }
- WepSwitchCheck() //this will check your weapon if you switch weapon. After 5 mili-secs
- {
- self endon("death");
- self endon("disconnect");
- while(1) {
- self notifyOnPlayerCommand("switchwep", "weapnext"); //If weapon switch is pressed
- self waittill("switchwep"); //Waits for the Wep Switch to be pressed
- wait 0.5; //Wait 5 mili-Sec, so it don't run to fast so it checks the old wep.
- self thread WepCheck(); //threads the wep check when the Switch key is pressed
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment