Files

> > CS2D > Lua Scripts > Simple Spawn Protection Script
Files overviewCS2D overviewLua Scripts overview

English Simple Spawn Protection Script >

16 comments2 kb, 645 Downloads

old Simple Spawn Protection Script

Xej
User Off Offline

* UPDATES *
- All updates and recent notes will now be put inside here.
Spoiler >


A Spawn Protection script that stops people from killing you as soon as you spawn. You will be protected for 10 seconds and you cannot attack during this time, then you will be vulnerable once again and everything will be normal:

NOTE: You can change the time length by changing the 10 to a different number.

Spoiler >


I didn't find anyone that posted a script like this - and if i'm wrong please do so to show me, for i can remove this if needed.

Spoiler >


Use √
Re-Edit √
Rate √
Give Credit √
Profit ×
edited 12×, last 08.02.18 10:51:02 pm
Approved by GeoB99

Download Download

2 kb, 645 Downloads

Comments

16 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

killerboy1
User Off Offline

what spawn do?

is good.?

old

archmage
User Off Offline

It works, but it could have been done much more simply.
I like it!

old Helpzz

Lotteria
User Off Offline

SomeBody Help Me ,Help Me Plz.Lua script..Thanks first

old

Lotteria
User Off Offline

sorry sorry i am stupied,plz help me I just only need lua script
When I kill NPC I got some money

old

Ninja_Assassin
User Off Offline

@Lotteria

1. Why did you rate it 1/5?

2. Yes you do need help, check the mental clinic

3. Don't request other scripts in someone's file

4.
Troll has written
Your fake and gay
I like it!

old Lua Scipt

Lotteria
User Off Offline

Hey Hi Everybody!!
I need help , so plz some one have me!!
Some One Can Gave Me Lua Script When I kill NPC I got some money.. Help Me PLZ
edited 1×, last 22.06.11 05:50:31 am

old @ LittleChild

Xej
User Off Offline

Quote
Nice job, AmflicKt but addhook("hit","ej_spawn_p_hit") -- Can't Attack with Spawn Protector On. It's not working I already testing it with my own server I asking someone who wants to be volunteer and some player say I want to be a volunteer So i teleport the volunteer to spawn point and I go die and Shoot the volunteer he get died


That's very strange, it works well with me, i don't know what's wrong, i'll get into it soon.


EDIT: Should be fixed now, i released an update.

Quote
When someone get spawn protection and he get shooted by another player his health is decrease So If someone using laser gun and shoot the protected player, the protected player will dead right? So did this lua script can be said spawn protection? Please repair it I'm will learning how to make the health cannot decrease even get a laser gun shoot


I also noticed the Laser problem, that you can still kill players if you have a laser. I'll fix everything once i get the time too. Thanks for the heads up

EDIT: Also fixed this, lazers cannot kill anyone, try it out.
edited 2×, last 22.06.11 03:45:06 am

old

dizziness
User Off Offline

Nice job, AmflicKt but addhook("hit","ej_spawn_p_hit") -- Can't Attack with Spawn Protector On. It's not working I already testing it with my own server I asking someone who wants to be volunteer and some player say I want to be a volunteer So i teleport the volunteer to spawn point and I go die and Shoot the volunteer he get died

Another problem
Spoiler >

old Few Notes here:

Xej
User Off Offline

First off, i wanna thank everyone for such awesome feedback!

Quote
Textual Content:

Sorry a few problems

•1) It only sets your health to 100 every second, that means if someone were to kill you before 1 second--say awp,scout,m3,xm1014--the spawn protection would be useless.

•2) The player that is spawn protected can hurt others--which makes it pretty unfair if that is used to his advantage.

Edited/Remade


1) it's not every second, it's every 100 milliseconds, plus like Banaan said you sort of already have protection for maybe 1 second, but my script increases it's duration to 10.

2) I fixed this, thanks to you! =D

@Banaan

I added that feature, look in the desc.

@Propnic

It's my own RP script (EJRP), and i'm not planning on releasing but maybe hosting sometime soon

old

Glix
User Off Offline

what script you use in screenshots?
I like it!

old

Infinite Rain
Reviewer Off Offline

I got something like that
And btw u can make it with console

old

Banaan
User Off Offline

CS2D always protects spawned players for a short amount of time. In that time, they can kill, but not be killed. This is quite a disadvantage for the other team. When will someone create a script that protects players from spawning opponents?

old

buraxia3
User Off Offline

Textual Context is saying true lua must be punish players who is the attack protected spawns and protected spawns must be lose protecting if they attacking someone while protecting but still good lua.
I like it!

old

Apache uwu
User Off Offline

Sorry a few problems

•1) It only sets your health to 100 every second, that means if someone were to kill you before 1 second--say awp,scout,m3,xm1014--the spawn protection would be useless.

•2) The player that is spawn protected can hurt others--which makes it pretty unfair if that is used to his advantage.

Edited/Remade

More >


5/5 For originality!
I like it!

old AWESOME

Noswear222
User Off Offline

First script 5/5
Good script 5/5
Afk, protectioon script 4/5===5/5
I like it!
To the start Previous 1 Next To the start