• Getting a code set
    0 replies, posted
In DarkRP I would like to put a Armor function as the last thing in classes, this is what I got for sv_gamemode_functions.lua i'm not sure if it goes somewhere else: [HTML] if not RPExtraTeams[Team] then return end for k,v in pairs(RPExtraTeams[Team].Armor) do ply:SetArmor(v) end [/HTML] I put it under the health spawn, for example at the Gamemode Function's line 586 Start and 598 End when using this: [HTML] ply:GetTable().StartHealth = ply:Health() if not RPExtraTeams[Team] then return end for k,v in pairs(RPExtraTeams[Team].Armor) do ply:SetArmor(v) end gamemode.Call("PlayerSetModel", ply) gamemode.Call("PlayerLoadout", ply) DB.Log(ply:SteamName().." ("..ply:SteamID()..") spawned") local _, pos = self:PlayerSelectSpawn(ply) ply:SetPos(pos) end [/HTML] I also need some fixes for a NPC that he can Retrieve and Paint Vehicles from TDM: please contact me on [email]mariosinn@ugr-gmod.com[/email] if you want to get in touch with me.
Sorry, you need to Log In to post a reply to this thread.