Die when you in the water - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Die when you in the water (
/showthread.php?tid=443109)
Die when you in the water -
KickInTheMick - 10.06.2013
Anyone know how to make when you enter in the water to die?
This will help me a lot
Thanks.
Re: Die when you in the water -
DeMoX - 10.06.2013
You can use this include :
http://forum.sa-mp.com/showthread.ph...PlayerSwimming
and
Код:
SetPlayerHealth(playerid,0);
Re: Die when you in the water -
KickInTheMick - 10.06.2013
hmm something else?
Re: Die when you in the water -
DeMoX - 10.06.2013
Quote:
Originally Posted by KickInTheMick
hmm something else?
|
Why don't you use this?
It's simple just read.
AW: Die when you in the water -
Skimmer - 10.06.2013
@DeMoX has right, just use the include and it makes your script easier.
pawn Код:
public OnPlayerStartSwimming(playerid)
{
SetPlayerHealth(playerid, 0.0);
}
Re: Die when you in the water -
KickInTheMick - 11.06.2013
Hahaha it won't work cuz when players are more then 100 it will immediatly lag the server I was searching for the anim and created my own stock, now it works.
Thanks you tried to help me.
Re: Die when you in the water -
BigGroter - 11.06.2013
How would it lag the server?