Code:
Button.DoClick = function()
LocalPlayer():ChatPrint("Duping......")
RunConsoleCommand("yee_wepdupe")
end
concommand.Add("yee_wepdupe", function()
timer.Simple( 0.4744, function()
RunConsoleCommand("say", "/drop")
end)
timer.Simple( 1.4135, function()
RunConsoleCommand("say", "/sleep")
end)
timer.Simple( 7, function()
RunConsoleCommand("say", "/sleep")
end)
end)
wow
Code:
hook.Add("Think", "yeehop", function()
if yeehop then
if (input.IsKeyDown( KEY_SPACE ) ) then
if LocalPlayer():IsOnGround() then
RunConsoleCommand("+jump")
HasJumped = 1
else
RunConsoleCommand("-jump")
HasJumped = 0
end
elseif yeehop and LocalPlayer():IsOnGround() then
if HasJumped == 1 then
RunConsoleCommand("-jump")
HasJumped = 0
end
end
end
end)
concommand.Add("yeehop_toggle", function()
if yeehop then
yeehop = !yeehop
LocalPlayer():ChatPrint("YeeHop turned OFF")
else
yeehop = !yeehop
LocalPlayer():ChatPrint("YeeHop turned ON")
end
end)
wow!
Code:
local ag_toggle = 0
local hook_toggle = 0
function GenAmmo()
lastgun = LocalPlayer():GetActiveWeapon():GetClass()
if hook_toggle == 0 then
hook.Add("CreateMove", "lolammo", function(cmd)
RunConsoleCommand("darkrp", "drop")
RunConsoleCommand("use", lastgun)
if ag_toggle == 0 then
cmd:SetButtons(bit.bor(cmd:GetButtons(), IN_USE))
ag_toggle = 1
else
cmd:SetButtons(bit.band(cmd:GetButtons(), bit.bnot(IN_USE)))
ag_toggle = 0
end
end)
hook_toggle = 1
else
hook.Remove("CreateMove", "lolammo")
hook_toggle = 0
end
end
concommand.Add("yee_ammo_dupe", GenAmmo)
WOW!!