Monolith Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Similar topics
    Search
     
     

    Display results as :
     


    Rechercher Advanced Search

    Latest topics
    » Hey guys.........
    No Reload Script I_icon_minitimeFri Sep 09, 2011 4:58 pm by WhiteWolf

    » Last to post wins
    No Reload Script I_icon_minitimeFri Sep 09, 2011 4:57 pm by WhiteWolf

    » COMBAT ARMS WOOOOO
    No Reload Script I_icon_minitimeTue Oct 19, 2010 10:59 pm by viperjake31

    » Its over (Bye)
    No Reload Script I_icon_minitimeWed Sep 22, 2010 10:05 pm by Supanooba

    » Sorry guys...
    No Reload Script I_icon_minitimeWed Sep 22, 2010 10:01 pm by Supanooba

    » bad feeling...
    No Reload Script I_icon_minitimeTue Sep 21, 2010 1:16 pm by Supanooba

    » This game...
    No Reload Script I_icon_minitimeSun Sep 19, 2010 10:01 am by Supanooba

    » Me, D@rk T3mpl4r, Hacking?
    No Reload Script I_icon_minitimeSun Sep 19, 2010 12:36 am by D@rk T3mpl4r

    » fractured my arm and leg
    No Reload Script I_icon_minitimeSat Sep 18, 2010 9:08 pm by Supanooba

    Navigation
     Portal
     Index
     Memberlist
     Profile
     FAQ
     Search

    No Reload Script

    Go down

    No Reload Script Empty No Reload Script

    Post by Starkkz Fri Jun 11, 2010 3:11 pm

    Features

    > No reloading Weapons
    > Enable and disable system in console. ( Command: sv_noreload )

    Code:

    no_reload_mode = 1
    addhook("attack","noreload_attack")
    function noreload_attack(id)
       if no_reload_mode > 0 then
          local w = player(id,"weapontype")
          if w > 0 then
             parse("equip "..id.." "..w)
          end
       end
    end

    addhook("parse","noreload_parse")
    function noreload_parse(cmd)
       if string.sub(cmd,1,11) == "sv_noreload" then
          mode = tonumber(string.sub(cmd,13))
          if mode > 0 and no_reload_mode == 0 then
             no_reload_mode = mode
             msg("no reload ENABLED")
          elseif mode == 0 and no_reload_mode == 1 then
             no_reload_mode = mode
             msg("no reload DISABLED")
          end
          return 1
       end
    end

    Starkkz

    Posts : 30
    Rep : 0
    Join date : 2010-06-11

    Back to top Go down

    Back to top

    - Similar topics

     
    Permissions in this forum:
    You cannot reply to topics in this forum