Similar topics
Search
Latest topics
No Reload Script
Monolith Forums :: Scripting :: Scripts
Page 1 of 1
No Reload Script
Features
> No reloading Weapons
> Enable and disable system in console. ( Command: sv_noreload )
> 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
Monolith Forums :: Scripting :: Scripts
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Fri Sep 09, 2011 4:58 pm by WhiteWolf
» Last to post wins
Fri Sep 09, 2011 4:57 pm by WhiteWolf
» COMBAT ARMS WOOOOO
Tue Oct 19, 2010 10:59 pm by viperjake31
» Its over (Bye)
Wed Sep 22, 2010 10:05 pm by Supanooba
» Sorry guys...
Wed Sep 22, 2010 10:01 pm by Supanooba
» bad feeling...
Tue Sep 21, 2010 1:16 pm by Supanooba
» This game...
Sun Sep 19, 2010 10:01 am by Supanooba
» Me, D@rk T3mpl4r, Hacking?
Sun Sep 19, 2010 12:36 am by D@rk T3mpl4r
» fractured my arm and leg
Sat Sep 18, 2010 9:08 pm by Supanooba