• Anti-Propsurf Script (DarkRP)
    4 replies, posted
Hello Guys I need Help with my Anti-Propsurf Script for DarkRP it doensnt works local antipropsurf = CreateConVar("antipropsurf_enable", "1", {FCVAR_REPLICATED, FCVAR_ARCHIVE}) hook.Add("PhysgunPickup", "Anti_Propsurf", function(ply, ent) if !ent.JustPickedUp and antipropsurf:GetFloat() == 1 then ent.JustPickedUp = true ent.AntiPropSurf={ phys=ent:GetCollisionGroup(), color=Color(ent:GetColor()), } ent:SetCollisionGroup(COLLISION_GROUP_WEAPON) ent:SetColor(255, 50, 50, 200) end return true end) hook.Add("PhysgunDrop", "Anti_Propsurf_Drop", function(ply, ent) if ent.JustPickedUp then ent:SetColor(ent.AntiPropSurf.color.r, ent.AntiPropSurf.color.g, ent.AntiPropSurf.color.b, ent.AntiPropSurf.color.a) ent:SetCollisionGroup(ent.AntiPropSurf.collision) ent.JustPickedUp = nil end end I type rcon antipropsurf_enabled 1 in console but its not works And then I add it to Server.cfg but it doesnt Work too I Hope someone can Help me [editline]06:02PM[/editline] Push Up !!!!
Use falco's prop protect. It nocollides props being picked up if you want it to.
But I hate It Can someone make a new ?
why hate it?
[lua]local antipropsurf = CreateConVar("antipropsurf_enable", "1", {FCVAR_REPLICATED, FCVAR_ARCHIVE}) hook.Add("PhysgunPickup", "Anti_Propsurf", function(ply, ent) if not GetConVar("antipropsurf_enable"):GetBool() then return end ent:SetOwner(ply) end) hook.Add("PhysgunDrop", "Anti_Propsurf_Drop", function(ply, ent) ent:SetOwner() end)[/lua] I didn't want to add the whole color thing, cause it's very annoying.
Sorry, you need to Log In to post a reply to this thread.