How can I counter that ? Some people used that on my Hide&Seek server
Basically, you jump on a prop and spam space-E-space-E when looking at it
You can disallow picking up items with GM:AllowPlayerPickup, and you can for example only allow it when the player is standing on something other than the prop they're trying to pick up. (and disallow it if they're in the air
See: Entity/IsOnGround, Entity/GetGroundEntity (run these on the player)
Or you can add a delay between picking up entities in the mentioned AllowPlayerPickup hook.
I tried making this client code :
local canPickup = true;
hook.Add("AllowPlayerPickup","canPickupDelay",function (ply,ent)
if canPickup == true then
canPickup == false
timer.Create("pickupDelay",0.5,1,function() canPickup = true end)
ply:ChatPrint("Don't spam props")
end
end)
But it doesn't work, how can I do it ?
You use the same variable for all players, so if one player picks something up, no one on the server can do it for the next 0.7 seconds.
oh you are right, I changed it
what's wrong with the way I said?
How can I fix this problem ?
As I said: only allow pickup when the player is standing on something other than the prop they're trying to pick up. (and disallow it if they're in the air)
This should be working normaly gabwiel_antipropsurf
Thanks !
Sorry, you need to Log In to post a reply to this thread.