Page 15 of 15 FirstFirst ... 5131415
Results 211 to 219 of 219
  1. #211
    Trollaux's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    2,074
    Reputation
    137
    Thanks
    792
    Quote Originally Posted by poopsnake159 View Post
    Still don't know what to do with this can anyone make it?
    Code:
    hook.Add("Think","DarkRPWeaponStealer", function()
    		for k, v in pairs( ents.FindByClass( "spawned_weap*" ) ) do
    			local ply = LocalPlayer()
    			local target = v
    			local targetpos,targetang = target:OBBCenter()
    			ply:SetEyeAngles((targetpos - ply:GetShootPos()):Angle())
    		end
    end )
    Remember to press the Thanks button.
    Last edited by Trollaux; 01-25-2014 at 10:25 PM.
    d e a d b o y s
    Quote Originally Posted by Dave84311 View Post
    What do you call a troll with shitty jokes?
    Trollaux
    Quote Originally Posted by Kyeran View Post
    Foot job with lots of oil.
    Quote Originally Posted by Kyeran View Post
    If she's 12, I'm 12.

  2. The Following 2 Users Say Thank You to Trollaux For This Useful Post:

    DdHashu02 (06-30-2015),poopsnake159 (01-26-2014)

  3. #212
    Doremi Harukaze's Avatar
    Join Date
    Jan 2014
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    6
    Quote Originally Posted by Trollaux View Post


    Code:
    hook.Add("Think","DarkRPWeaponStealer", function()
    		for k, v in pairs( ents.FindByClass( "spawned_weap*" ) ) do
    			local ply = LocalPlayer()
    			local target = v
    			local targetpos,targetang = target:OBBCenter()
    			ply:SetEyeAngles((targetpos - ply:GetShootPos()):Angle())
    		end
    end )
    Remember to press the Thanks button.
    Holy Fuck, kill me.
    Use CreateMove instread of Think, it's WAYS faster.

    Quote Originally Posted by Trollaux View Post


    Actually I coded that myself, I don't see why I would credit him.
    And I just realized I had that in there lmfao.
    There's the same code in gDaap but anyway.
    Just a tip, use surface.DrawLine
    Last edited by Xenocide; 01-26-2014 at 05:57 AM. Reason: Double post.

  4. The Following User Says Thank You to Doremi Harukaze For This Useful Post:

    Kellyseveride (01-26-2014)

  5. #213
    Trollaux's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    2,074
    Reputation
    137
    Thanks
    792
    Quote Originally Posted by Doremi Harukaze View Post
    Holy Fuck, kill me.
    Use CreateMove instread of Think, it's WAYS faster.



    There's the same code in gDaap but anyway.
    Just a tip, use surface.DrawLine
    I never knew that, thanks.

    I honestly have no idea what gDaap is
    I have been trying out surface.DrawLine but I cant figure out how to make it work. The lines just get glitched everywhere.
    d e a d b o y s
    Quote Originally Posted by Dave84311 View Post
    What do you call a troll with shitty jokes?
    Trollaux
    Quote Originally Posted by Kyeran View Post
    Foot job with lots of oil.
    Quote Originally Posted by Kyeran View Post
    If she's 12, I'm 12.

  6. #214
    poopsnake159's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Trollaux View Post


    Code:
    hook.Add("Think","DarkRPWeaponStealer", function()
    		for k, v in pairs( ents.FindByClass( "spawned_weap*" ) ) do
    			local ply = LocalPlayer()
    			local target = v
    			local targetpos,targetang = target:OBBCenter()
    			ply:SetEyeAngles((targetpos - ply:GetShootPos()):Angle())
    		end
    end )
    Remember to press the Thanks button.
    Have you tried this script? all it's doing for me is making me look in a random direction where there is no gun.

  7. #215
    Gray's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    Sweden
    Posts
    13,557
    Reputation
    2516
    Thanks
    10,618
    From now on, there will be no more offtopic posting in this thread.
    It has become way too messy. If you instead have any questions or need help with anything in this thread
    Refer to this thread. Script Thread Help & Discussion

    If I see anything that isn't a script beyond this point, it will be removed.

  8. #216
    InformationFlow's Avatar
    Join Date
    Feb 2014
    Gender
    male
    Posts
    15
    Reputation
    10
    Thanks
    1
    Code:
    	ANTI BLIND
    		if LocalPlayer():GetNWBool("EV_Blinded") then
    			LocalPlayer():SetNWBool("EV_Blinded", false)
    		end

  9. #217
    sharkybrain's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by makee View Post
    Script Name:Basic Aimbot
    Description:Basic aimbotscript
    Credits:Shen(NOTICE i havent done any of this code)
    Code:
    function aimbot()
    	local ply = LocalPlayer() 
    	local trace = util.GetPlayerTrace( ply )
    	local traceRes = util.TraceLine( trace )
    	if traceRes.HitNonWorld then
    		local target = traceRes.Entity
    		if target:IsPlayer() then
    			local targethead = target:LookupBone("ValveBiped.Bip01_Head1")
    			local targetheadpos,targetheadang = target:GetBonePosition(targethead)
    			ply:SetEyeAngles((targetheadpos - ply:GetShootPos()):Angle())
    		end
    	end
    end
    hook.Add("Think","aimbot",aimbot)
    There ya go your first comment on this thread
    ูhow to bind a key for it ?

  10. #218
    D3M0L1T10N's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    1,364
    Reputation
    19
    Thanks
    656
    Quote Originally Posted by sharkybrain View Post
    ูhow to bind a key for it ?
    add a input.IsKeyDown check

  11. #219
    Alainx277's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Posts
    60
    Reputation
    10
    Thanks
    10
    My Mood
    Happy

    Smile Free Script

    Script Name: TTT Traitor Wallhack
    Description: Finds a Traitor when he buys a weapon in the Traitor shop, displays his name in red and shows his health.
    Code:
    CreateClientConVar( "wallhackttt_enabled", 0, true, false )
    traitors = {"Default"}
    hook.Add( "HUDPaint", "Wallhackttt", function()
        local twep = {"spiderman's_swep", "weapon_ttt_trait_defilibrator", "weapon_ttt_xbow", "weapon_ttt_dhook", "weapon_awp", "weapon_ttt_ak47", "weapon_jihadbomb", "weapon_ttt_knife", "weapon_ttt_c4", "weapon_ttt_decoy", "weapon_ttt_flaregun", "weapon_ttt_phammer", "weapon_ttt_push", "weapon_ttt_radio", "weapon_ttt_sipistol", "weapon_ttt_teleport", "weapon_ttt_awp", "weapon_mad_awp", "weapon_real_cs_g3sg1", "weapon_ttt_cvg_g3sg1", "weapon_ttt_g3sg1", "weapon_ttt_healthstation5", "weapon_ttt_sentry", "weapon_ttt_poison_dart", "weapon_ttt_trait_defibrillator"}
    	if ConVarExists( "wallhackttt_enabled" ) and GetConVar("wallhackttt_enabled"):GetInt() == 1 then
     
    		for k,v in pairs ( player.GetAll() ) do
     
    		local Position = ( v:GetPos() + Vector( 0,0,80 ) ):ToScreen()
            local Position2 = ( v:GetPos() + Vector( 0,0,70 ) ):ToScreen()
    		local Name = ""
     
    		if v == LocalPlayer() then Name = "" else Name = v:Name() end
            color = Color( 255, 255, 255, 255 )
            
            
            
            if GAMEMODE****und_state == ROUND_ACTIVE then
                if has_value(traitors, v:Name()) then color = Color(255, 0, 0, 255) end    
                if not v:IsSpec() then
                    draw.DrawText( Name, "Trebuchet18", Position.x, Position.y, color, 1 )
                    hex = gradient(0, 100, v:Health())
                    healthcolor = Color(hex2rgb(hex))
                    draw.DrawText( v:Health(), "Trebuchet18", Position2.x, Position2.y, healthcolor, 1 )   
                end
    	    end
            
            for _,v in pairs( ents.GetAll() ) do
                if v and IsValid(v) and (table.HasValue(twep, v:GetClass()) and !v.HatESPTracked) then
                    local pl = v.Owner
                    if pl and IsValid(pl) and pl:IsTerror() then
                        local Position = ( pl:GetPos() + Vector( 0,0,80 ) ):ToScreen()
    		            local Name = ""
    		            if pl == LocalPlayer() then Name = "" else Name = pl:Name() end
                        
                        if pl:IsDetective() then
                            color = Color(0, 0, 255, 255)
                        else
                            traitor = pl:Name()
                            color = Color(255, 0, 0, 255)
                            if not (table.HasValue(traitors,traitor)) then
                                chat.AddText( pl, Color(255,125,0), " is a ",Color(255,0,0), "TRAITOR",Color(255,125,0), " with a ",Color(255,0,0),v:GetClass().."!")
                                table.insert(traitors,#traitors+1, traitor)
                                for k, v in pairs( traitors ) do
                                    print(k, v)
                                end
                            end
                        end
                        draw.DrawText( Name, "Trebuchet18", Position.x, Position.y, color, 1 )
                    end
                end
            end
    	end
    end
    end)
    
    function hex2rgb(hex)
        hex = hex:gsub("#","")
        return tonumber("0x"..hex:sub(1,2)), tonumber("0x"..hex:sub(3,4)), tonumber("0x"..hex:sub(5,6))
    end
    
    function gradient(min, max, val)
      if (val > max) then val = max end
      if (val < min) then val = min end
    
      local v = val - min
      local d = (max - min) * 0.5
      local red, green
    
      if (v <= d) then
        green = math.floor((255 * v) / d + 0.5)
        red = 255
      else
        green = 255
        red = math.floor(255 - (255 * (v-d)) / (max - min - d) + 0.5)
      end
    
      return string.format("#%02x%02x00", red, green)
    end

Page 15 of 15 FirstFirst ... 5131415

Similar Threads

  1. Replies: 2
    Last Post: 01-06-2016, 12:38 AM
  2. Garry's Mod scripting - HUDPaint not called?
    By Novo in forum Garry's Mod Discussions & Help
    Replies: 7
    Last Post: 05-24-2013, 05:34 AM
  3. [Help Request] C++ Script Help - Garry's Mod - Forcing r_drawothermodels 2
    By Kai13shadow in forum C++/C Programming
    Replies: 3
    Last Post: 12-08-2012, 01:16 PM
  4. Garry's Mod 11 DarkRP RCON Exploit
    By Agent766 in forum Exploits
    Replies: 3
    Last Post: 10-10-2008, 01:11 AM
  5. Garry's Mod Meatspin
    By nukeist_ in forum General
    Replies: 8
    Last Post: 10-25-2007, 07:15 AM