Hey.. how to make spawn protection?
How to put effect at spawn? when player spawn to effect start..
Thanks.!
Hey.. how to make spawn protection?
How to put effect at spawn? when player spawn to effect start..
Thanks.!
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.
"Does not work" is an error report for a bug between keyboard and chair.
All hail Artie Effem
milepunta (29th June 2014)
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;
"Don't worry if your code doesn't work correctly - if everything worked, you would not work" ~Mosher's right
kung foo man (28th March 2014),ORDI (29th March 2014),Rocky (28th March 2014)
Ty,and for spawn effect...
Place effect if someone spawn...