Simple Spawn Protection Script 
16 comments * UPDATES *
- All updates and recent notes will now be put inside here.
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.
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.
Use
Re-Edit
Rate
Give Credit
Profit
- All updates and recent notes will now be put inside here.

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.
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.
Use

Re-Edit

Rate

Give Credit

Profit

edited 12×, last 08.02.18 10:51:02 pm

Comments
16 comments



Log in!
You need to log in to be able to write comments!Log in
Simple Spawn Protection Script bugs proof: http://www.youtube.com/watch?v=RvBVRQxn52Y

@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.
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
22.06.11 03:49:47 am
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
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
21.06.11 11:03:26 pm
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
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
Another problem
15.06.11 11:19:21 pm
First off, i wanna thank everyone for such awesome feedback!
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
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
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
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?

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.

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
5/5 For originality!


Edited/Remade
5/5 For originality!



