Is there any way I can set the walk/run speed of a particular job for DarkRP? I've added a woodlandish map to my server and added a "Wild Game" job for that specific map(lawl). I just wanted to know if I could jack up the speed of a job, thanks!
ply:SetWalkSpeed( int )
ply:SetRunSpeed( int )
Does this even belong in this section? Shouldn't it be in LUA > Newbie Questions?
I'm not entirely sure myself though, I don't really code in DarkRP; but I believe that the man above me is correct.
The right place for these questions would be the DarkRP thread, because people who lurk there generally can answer these questions and there will be the smallest chance of flaming. I suppose.
Stop posting dumb comments on where to put that stuff.. who even cares? Heres how to do it. It works for me.
function GM:PlayerLoadout(ply)
if ply:Team() == TEAM_POLICE then
ply:SetHealth(200)
end
end
---------------------------------------
function GM:PlayerLoadout(ply)
if ply:Team() == TEAM_POLICE then
ply:SetSpeed(200)
end
end
--------------------------------------
function GM:PlayerLoadout(ply)
if ply:Team() == TEAM_POLICE then
ply:SetArmor(200)
end
end
Where to put this?
Step1: Make a lua file in moduals called CopHealth
Step2: Paste ONLY 1 of the codes above into it, do not paste more than one in 1 file.
Step3: If this does not work, make sure your gamemode is named DarkRP, and if it strips your weapons, then i don't know why. Try putting the file into:
DarkRP/gamemodes if that does not work. Good Luck and i hope i helped. If not, ill explain it more because it does work. Email me at [email]storm_steam@hotmail.com[/email]
[B]Edit:[/B]If those don't work above, try this and repeat steps 1-3.
[code]if not TEAM_POLICE then return end
function GM:PlayerLoadout(ply)
if ply:Team() == TEAM_POLICE then
ply:SetSpeed(200)
end
end[/code]
The moderators care, hurr.
Sorry, you need to Log In to post a reply to this thread.