Question #1 - I'd like to set a speed of a certain class, how would I do that?
Question #2 - Am I able to restrict a certain class from spawning with physgun / gravgun / toolgun? If so how.
Question #3 - Adding more then one spawn location on Dark RP? Can you and if so how.
Question #4 - I have a script,
function PropGroups( pl, mdl )
-- Yay variables --
local AdminLimit = 25 -- Prop limit for admins
local RespectedLimit = 20 -- Prop limit for respected
local UserLimit = 15 -- Prop limit for regular users
if pl:IsSuperAdmin() then
return true -- Unlimited prop spawning.
elseif pl:IsAdmin() then
return pl:GetCount( "props" ) < AdminLimit
elseif pl:IsUserGroup( "respected" ) -- Make sure this is correct.
return pl:GetCount( "props" ) < RespectedLimit
else
return pl:GetCount( "props" ) < UserLimit
end
end
hook.Add( "PlayerSpawnProp", "UserGroupPropLimits", PropGroups )
That basically puts speficif limits for each group. Yet, Once I put it in my init.lua. DarkRP Completley crashs' saying cannot find cl_init.lua Help ?
Question #5 - Suicide is diabled on DarkRP 2.3.7, How may I enable it?
#1 I believe [url]http://wiki.garrysmod.com/?title=Gamemode.Move[/url] and a SetVelocity could do it
#2 A [url]http://wiki.garrysmod.com/?title=Gamemode.PlayerLoadout[/url] could do it
#3 [url]http://wiki.garrysmod.com/?title=Gamemode.PlayerSelectSpawn[/url] could do that
#4 Put in lua tags and all your problems will be solved
#5 You ask in the darkrp thread how it is disabled, and remove that
1.[lua]function GM:PlayerSpawn( ply )
self.BaseClass:PlayerSpawn( ply )
if ply:Team()==1 then
ply:SetGravity( 1 )
ply:SetMaxHealth( 100, true )
ply:SetWalkSpeed( 200 )
ply:SetRunSpeed( 300 )
end
end[/lua]
2.[lua]function GM:PlayerLoadout( ply )
if ply:Team() == 1 then
ply:Give( "weapon_physcannon" )
ply:Give( "weapon_physgun" )
ply:Give( "gmod_tool" )
elseif ply:Team() == 2 then
ply:Give( "weapon_physcannon" )
ply:Give( "weapon_physgun" )
ply:Give( "weapon_stunstick" )
ply:Give( "gmod_tool" )
ply:Give( "weapon_pistol" )
ply:Give( "weapon_smg1" )
ply:GiveAmmo( 36, "pistol" )
ply:GiveAmmo( 90, "smg1" )
end
end[/lua]
3.No idea
4.No idea
5.No idea too
Sorry, you need to Log In to post a reply to this thread.