• Double Jump
    9 replies, posted
Hey there I'm on darkrp 2.5 and I found a double jump for my server I'm not very good at this so Im asking for help how do I change this so the gravity changes to 0.12 i have it all set to where i want it but Im not sure how to make it like this and also how do I make it for only a certain team [lua] if CLIENT then CreateClientConVar( "double_enabled", 1, true, true ) end CreateConVar( "double_height", "4", FCVAR_SERVER_CAN_EXECUTE, "Multipier for how high players should double jump" ) CreateConVar( "double_times", "1", FCVAR_SERVER_CAN_EXECUTE, "How many times the player is allowed to jump in midair" ) hook.Add( "KeyPress", "DoubleJump_WhiteNoise", function( ply, key ) if ply:KeyPressed( IN_JUMP ) and not ply:OnGround() and ply:GetNWInt( "djump" )>0 and ply:GetInfoNum( "double_enabled", 1 )==1 then local height = GetConVarNumber( "double_height" ) ply:SetVelocity( Vector(0,0,130*height) ) ply:SetNWInt( "djump", ply:GetNWInt( "djump" )-1 ) // local effect = EffectData() // effect:SetOrigin( ply:GetPos() ) // util.Effect( "ThumperDust", effect, true, true ) end end) hook.Add( "OnPlayerHitGround", "ResetDoubleJump_WhiteNoise", function( ply ) local times = GetConVarNumber( "double_times" ) ply:SetNWInt( "djump", times ) end) [/lua]
What?
Actually the cvar double_times it's more than 1 right?
what do you mean?
do you even have idea about what the code does?
yes i have it in my game
-snip- didn't read
not what i was looking for but ok
[url]http://steamcommunity.com/sharedfiles/filedetails/?id=213084652[/url]
really thats what this is im asking for help so i can have it for only 1 or 2 teams not everyone in the server [editline]4th April 2014[/editline] really thats what this is. Im asking for help so i can have it for only 1 or 2 teams not everyone in the server
Sorry, you need to Log In to post a reply to this thread.