Author Topic: A few questions  (Read 1159 times)

Is it possible to ban weapons on a server? If so, how? Is it possible to ban certain bricks? Is it possible to make text appear when someone steps on a block? Asking all these for my neighborhood rp server.

You could just disable the weapons, but if you need them enabled, you could look for a restriction script that allows you to restrict weapon usage. Same goes for bricks

You can make text appear in centerprint or bottomprint with onPlayerTouch, or also in chat message (but that will spam them as long as they touch the brick)

I've previously released a mod for restricting item usage on the fly.

https://forum.blockland.us/index.php?topic=249626.0


Can't say I've ever seen something similar for bricks.

neighborhood rp?? where??

neighborhood rp?? where??
I've been working on it and another FPS. Don't know when I'll have it done.

I've also made an addon that allows you to restrict users from using certain events, if you need that:
https://blocklandglass.com/addons/addon.php?id=395

You can make text appear in centerprint or bottomprint with onPlayerTouch, or also in chat message (but that will spam them as long as they touch the brick)
Actually, you can prevent spamming with some clever eventing:
Code: [Select]
[0, delay:0] onPlayerTouch -> self -> cancelEvents
[1, delay:0] onPlayerTouch -> self -> setEventEnabled [2, false]
[2, delay:0] onPlayerTouch -> client -> chatMessage [something]
[3, delay:100] onPlayerTouch -> self -> setEventEnabled [2, true]
That way, if someone keeps sitting on a brick it'll constantly call onPlayerTouch and cancel the scheduled event #3 that re-enables the centerprint.
If it doesn't work and still keeps spamming it, try increasing the delay for #3.