Hey.. how to make spawn protection?
How to put effect at spawn? when player spawn to effect start..
Thanks.! :p
Printable View
Hey.. how to make spawn protection?
How to put effect at spawn? when player spawn to effect start..
Thanks.! :p
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.
Look in spawnplayer(). And edit the callbackdamage. Return damage to 0 if he is spawnprotected
On spawn:
Somewhere in same file:PHP Code:
self thread spawnProtection();
In callback damage, after {PHP Code:
spawnProtection()
{
self endon("killed_player");
self endon("disconnect");
self.spawnprotected = true;
wait 5;
self.spawnprotected = false;
}
PHP Code:
if(isdefined(self.spawnprotected) && self.spawnprotected)
return;
Ty,and for spawn effect...
Place effect if someone spawn...