PDA

View Full Version : Spawn protection + spawn effect



Rocky
28th March 2014, 09:54
Hey.. how to make spawn protection?

How to put effect at spawn? when player spawn to effect start..

Thanks.! :p

IzNoGoD
28th March 2014, 11:37
Seriously.

You have been in this community for over 9 months now, and you are STILL asking this kind of questions?

Try to use your brain instead of constantly relying on ours.

Ni3ls
28th March 2014, 13:46
Look in spawnplayer(). And edit the callbackdamage. Return damage to 0 if he is spawnprotected

RobsoN
28th March 2014, 17:21
On spawn:


self thread spawnProtection();

Somewhere in same file:


spawnProtection()
{
self endon("killed_player");
self endon("disconnect");
self.spawnprotected = true;
wait 5;
self.spawnprotected = false;
}

In callback damage, after {


if(isdefined(self.spawnprotected) && self.spawnprotected)
return;

Rocky
28th March 2014, 18:47
Ty,and for spawn effect...

Ni3ls
29th March 2014, 13:05
Place effect if someone spawn...