Hey, i need some help. Ive made some jobs for donators, and i want the jobs to run faster and jump abit higher.
Can someone help me with that? Cause i really want some jobs to run faster.
[QUOTE=Zackyo;39156715]Hey, i need some help. Ive made some jobs for donators, and i want the jobs to run faster and jump abit higher.
Can someone help me with that? Cause i really want some jobs to run faster.[/QUOTE]
Maybe you should stop trying to make money and focus on the RP part
[QUOTE=Uberpro;39156938]Maybe you should stop trying to make money and focus on the RP part[/QUOTE]
Ignore him.
I dunno how it's done ,but try something like this
[code]
if ply:IsTeam(TEAM_YOURJOB) then
ply:SetWalkSpeed(lololol)
end [/code]
Correct me if you want
[QUOTE=mib999;39157171]Ignore him.
I dunno how it's done ,but try something like this
[code]
if ply:IsTeam(TEAM_YOURJOB) then
ply:SetWalkSpeed(lololol)
end [/code]
Correct me if you want[/QUOTE]
Wow, i think this is right, but where should i put this?
init.lua, maybe?
Put it in init.lua lol. Also change lololol to a number
init.lua
[lua]if ply:IsTeam(TEAM_SWAT) then
ply:SetWalkSpeed(125)
ply:SetRunSpeed(150)
end[/lua]
why does everyone say 'donator'
[URL="http://definitions.uslegal.com/d/donations/?puslf=gl+defi+Donations+Law&gclid=CIOfzcHpn6oCFSIRNAodYiod5A"]it's donor[/URL]
IsTeam isn't a valid function.
[CODE]local meta = FindMetaTable("Player")
function meta:IsDonorJob()
local Team = self:Team()
return Team == TEAM_SHITJOB or Team == TEAM_FUCKFACE // Add Whatever Jobs
end
hook.Add("PlayerSpawn", "DRP_DonorRewards", function(Player)
if Player:IsDonorJob() then
Player:SetRunSpeed(Number) // Replace Number
Player:SetJumpPower(Number) // Replace Number
end
end)[/CODE]
So it will be like this?
local meta = FindMetaTable("Player")
function meta:IsDonorJob()
local Team = self:Team()
return Team == TEAM_DONOR
end
if Player:IsDonorJob() then
Player:SetRunSpeed(300) // Replace Number
Player:SetJumpPower(300) // Replace Number
end
end)
why not just use ply:Team() without all those command checks?
[QUOTE=tyguy;39167277]why not just use ply:Team() without all those command checks?[/QUOTE]
Can you send me the code then? for TEAM_DONOR ?
Sorry, you need to Log In to post a reply to this thread.