• Physics gun color problem
    6 replies, posted
Well, i have a problem that i can't figgure out how i force physics gun color on my ranks as Moderator, Administrator etc, i use serverguard. Can someone help me out here? This is my first post here, so its not that good.
Have a look into the code for this [url]https://rtm516.co.uk/product?id=5[/url] PS: i made it, so if you have any problems contact me.
I still can't figgure it out:goodjob:
You could force them to run cl_weaponcolor
Something like this [CODE]ply:ConCommand("cl_weaponcolor", "<color>")[/CODE]
[lua] local ranks = {} ranks["founder"] = Vector(1, 0, 0) ranks["superdonatoradmintyformoney"] = Vector(1, 1, 0) hook.Add("PlayerLoadout", "SetPlayerWeaponColor", function(ply) if ranks[serverguard.player:GetRank(ply)] then ply:SetWeaponColor(ranks[serverguard.player:GetRank(ply)]) end end ) [/lua] You'd want something like this, not sure how Serverguard gets the ranks though, I'm pretty sure it's like that.
I have sendt your code to the development team of serverguard and ofcource given you credit for it and given them your facepunch account. Your code has been posted inn the suggestion area of the forums. Here are the link to the thread i made. [url]https://forums.gmodserverguard.com/threads/force-physics-gun-color.28/[/url]
Sorry, you need to Log In to post a reply to this thread.