Dateien

> > CS2D > Lua Scripts > Entity-07-Disarming Zones
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch Entity-07-Disarming Zones >

17 Kommentare2 kb, 403 Downloads

alt 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
5× editiert, zuletzt 03.10.19 09:22:10
Zugelassen von GeoB99

Download Download

2 kb, 403 Downloads

Kommentare

17 Kommentare
Zum Anfang Vorherige 1 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt hi!

XMyRby
User Off Offline

i can use it in my server?
Ich mag es!

alt

PeaPsycho
GAME BANNED Off Offline

10/10 Good Script

alt

pepinakiller
User Off Offline

very very nice.
Ich mag es!

alt

Talented Doge
User Off Offline

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

Edit: Done, added that thingy.
1× editiert, zuletzt 05.07.17 14:58:56

alt

Mora
User Spielt CS2D

@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.
Ich mag es!

alt

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.
1× editiert, zuletzt 05.07.17 15:04:16

alt

Dousea
User Off Offline

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

alt

Waldin
User Off Offline

gud. change weap again to the one I had when i leave there plz
Ich mag es!

alt

_3yrus
User Off Offline

8\10 like it
Ich mag es!

alt

SANTER
User Off Offline

very usefull dude, +10
Ich mag es!

alt

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
.
Ich mag es!
1× editiert, zuletzt 04.07.17 18:27:29

alt

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?
Ich mag es!

alt

Masea
Super User Off Offline

user GeoB99 hat geschrieben
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.
Ich mag es!

alt

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.
Ich mag es!

alt

Ajmin
User Off Offline

Hope someone will not be killed because of this.
Ich mag es!
Zum Anfang Vorherige 1 Nächste Zum Anfang