• People spawning props while arrested?
    2 replies, posted
The function [CODE]function GM:PlayerSpawnProp(ply, model) -- If prop spawning is enabled or the user has admin or prop privileges local allowed = ((GAMEMODE.Config.propspawning or (FAdmin and FAdmin.Access.PlayerHasPrivilege(ply, "rp_prop")) or ply:IsAdmin()) and true) or false if ply:isArrested() then return false end model = string.gsub(tostring(model), "\\", "/") model = string.gsub(tostring(model), "//", "/") if RPExtraTeams[ply:Team()] and RPExtraTeams[ply:Team()].PlayerSpawnProp then RPExtraTeams[ply:Team()].PlayerSpawnProp(ply, model) end if not allowed then return false end return self.BaseClass:PlayerSpawnProp(ply, model) end[/CODE] Apparently doesnt stop people from spawning props while arrested, any help?
can you print ply:isArrested() ? should work unless that doesn't return what you think it does.
Well is theres some cfg that im missing or something?
Sorry, you need to Log In to post a reply to this thread.