Files

> > CS2D > Lua Scripts > Entity-07-Disarming Zones
Files overviewCS2D overviewLua Scripts overview

English Entity-07-Disarming Zones >

17 comments2 kb, 445 Downloads

old Entity-07-Disarming Zones

Talented Doge
User Off Offline

This is intended to complement with the Entity series by user Pseudon.

> What is a Disarming Zone?
A disarming zone is a specific area that disarms the players entering, and later giving him back all his stuffs when he leaves the zone.

> How to use it?
You have to specify an area in your map that is designated to be disarming zones. It is easy, just find the coordinate of the tiles and MINUS 1 to the value before you put that down to the script.

For example I want 0 to 11 to be the zones, put down 1 and 10.

1
DisArm = {{1, 10, 1, 10}}
specifies the zones, you notice there are 2 brackets? Yes. You can input multiple zones, just add another bracket when you want to do that. The first 2 values specify the minimum x and the maximum x, followed by the minimum y and the maximum y.

> Can I please see how it actually works?
Sure, here you are.
     

A map for testing is included for you to test it.

Use it freely as you wish, no permission needed.

Other files you might want to use:
file cs2d You Deserve a Better Round
file cs2d Enhanced P228 Admin Script
file cs2d Better Unlimited Building
edited 5×, last 03.10.19 09:22:10 am
Approved by GeoB99

Download Download

2 kb, 445 Downloads

Comments

17 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old hi!

XMyRby
User Off Offline

i can use it in my server?
I like it!

old

PeaPsycho
GAME BANNED Off Offline

10/10 Good Script

old

pepinakiller
User Off Offline

very very nice.
I like it!

old

Talented Doge
User Off Offline

Oh damn it. I didn't look closely in the cheat sheet
My apology.

Edit: Done, added that thingy.
edited 1×, last 05.07.17 02:58:56 pm

old

Mora
User Off Offline

@user Talented Doge: i think it's possible, just use player(id,"weapon") or type?
and save this into table(array, w/e) and set this weapon after equip via cs2d cmd setweapon.
I like it!

old

Talented Doge
User Off Offline

@user Dousea: It should be easy to change the ammo counts, but it isn't easy to see how many are left and I am too lazy to invest more time in finding ammo counts. I would highly appreciate if you would put your time in an easier way to find ammo counts.

@user Waldin: : It isn't possible now I think, because currently there is no server side command to do that.

@user GeoB99: It is a disarming zone, rather than a safezone. It is intended to disarm players purely. Of course you can use it along with other safezone scripts.
edited 1×, last 05.07.17 03:04:16 pm

old

Dousea
User Off Offline

Great. I'm wondering if this one returns my equipments with the ammos I had or just refills it?
I like it!

old

Waldin
User Off Offline

gud. change weap again to the one I had when i leave there plz
I like it!

old

_3yrus
User Off Offline

8\10 like it
I like it!

old

SANTER
User Off Offline

very usefull dude, +10
I like it!

old

Masea
Super User Off Offline

@user GeoB99: I already got what you meant. But the thing is,
return 1
on cs2d lua hook hit doesn't just do the knife thingy. It also basically makes the script unnecessary. Otherwise, we wouldn't have needed to strip all those weapons if we had simply gone for
return 1
.
I like it!
edited 1×, last 04.07.17 06:27:29 pm

old

GeoB99
Moderator Off Offline

@user Masea: Yeah, but some people are too dumb and most likely they'd go in a fight with knife which is quite problematic. This is of course only my opinion, you can prove it otherwise if you want Get my point?
I like it!

old

Masea
Super User Off Offline

user GeoB99 has written
However you can still hurt other players due to the fact that it's technically impossible to strip the knife without having at least one item in hand. You could use cs2d lua hook hit and return 1 whenever a player approaches the disarming zone.
Do not forget this is a disarming zone, not a safe zone. So your suggestion is a bit deviating.
I like it!

old

GeoB99
Moderator Off Offline

Neat idea, nothing much to say. However you can still hurt other players due to the fact that it's technically impossible to strip the knife without having at least one item in hand. You could use cs2d lua hook hit and return 1 whenever a player approaches the disarming zone.

By the way, I have removed the unrelated screenshot because it doesn't showcase your script at all. It's viable to post few screenshots of your script because the image hoster might get down someday or other people unable to see the GIF.
I like it!

old

Ajmin
User Off Offline

Hope someone will not be killed because of this.
I like it!
To the start Previous 1 Next To the start