Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- checkammo = [
- if (|| (= $connected 1) (= (curmodeattr bot) 1)) [ // Check if in a bot match or playing online before spamming...
- if (= (currentprimary) 6) [ // Check if player is using AR...
- if (>= (magcontent (currentprimary) 5) [ // Check if they have 5 rounds or less in it...
- echo (c 3)RELOAD NOOB // Show the warning until they reload it...
- ] [ // Else...
- if (= (magcontent (currentprimary) 0) [ // If player's current primary weapon is out of ammo...
- echo (c 3)RELOAD NOOB // Show the warning until they reload it...
- ] []]] []] []
- sleep 1 [checkammo] // Loop the checks every millisecond to be as accurate as possible. Increase this value if you notice lag on older machines with this script...
- ]
- if (strstr $mapstartalways checkammo) [] [ // Automate the checks for every new map load...
- add2alias mapstartalways [sleep 5 [checkammo]]
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement