[DarkRP] How to disable players spawn with physgun
2 replies, posted
Is it possible to disable players spawn with physgun in the server and setup that only certain players will spawn with physgun by their steam id?
Yes, that is definetly possible.
Yeah, you can make it so players cannot spawn with a physgun.
Simply go to your DarkRP settings in darkrpmodification GarrysMod\garrysmod\addons\darkrpmodification-master\lua\darkrp_config\settings.lua
http://prntscr.com/ng3fo4 - Find here and remove weapon_physgun from the list.
As for setting up a spawn with physgun with steamID, you're gonna have to take a look at here GM/PlayerLoadout
For a basic way to do it (I'm running low on sleep right now so if I missed anything do bring it up):
function SteamIDLoadout(ply)
if(ply:SteamID() == "id") then
ply:Give("weapon_physgun")
end
end
hook.Add("PlayerLoadout","ply_id_loadout",SteamIDLoadout)
Sorry, you need to Log In to post a reply to this thread.