SA-MP Forums Archive
Die In 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Die In Water (/showthread.php?tid=74518)



Die In Water - SnAcH - 23.04.2009

Does Anyone Know how to make it so that if a team called "zombies" enter the water they die?


Re: Die In Water - MenaceX^ - 23.04.2009

Sa-mp doesn't have a specific function, but you can do it by using IsPlayerInArea.


Re: Die In Water - OmeRinG - 23.04.2009

impossible......
though you can try to get the sea's Z cordinate (which I think is exact 0) and if someone has a number very close to this cordinates then SetPlayerHealth(playerid,0);.


Re: Die In Water - SnAcH - 23.04.2009

i sore it on a zombie gm on the hosted mini-games server


Re: Die In Water - MenaceX^ - 23.04.2009

Quote:
Originally Posted by SnAcH
i sore it on a zombie gm on the hosted mini-games server
None asked where you do it.
Use Seif's IsPlayerInArea maker.
Then check if a players enters the area, if he does, kill him.


Re: Die In Water - Rimeau - 23.04.2009

Quote:
Originally Posted by OmeRinG
impossible......
though you can try to get the sea's Z cordinate (which I think is exact 0) and if someone has a number very close to this cordinates then SetPlayerHealth(playerid,0);.
What about the mine and underground garages...?


Re: Die In Water - Think - 23.04.2009

Quote:
Originally Posted by Rimeau
Quote:
Originally Posted by OmeRinG
impossible......
though you can try to get the sea's Z cordinate (which I think is exact 0) and if someone has a number very close to this cordinates then SetPlayerHealth(playerid,0);.
What about the mine and underground garages...?
Quote:
Originally Posted by MenaceX^
Sa-mp doesn't have a specific function, but you can do it by using IsPlayerInArea.
read it again, just use IsPlayerInArea. Its the safest way, the easiest is if the Z coord is below zero.


Re: Die In Water - RobertGraham - 23.04.2009

Just don't forget that if you making a Map in the Quarry, its below 0.


Re: Die In Water - rabit7 - 24.04.2009

Quote:
Originally Posted by MenaceX^
Quote:
Originally Posted by SnAcH
i sore it on a zombie gm on the hosted mini-games server
None asked where you do it.
Use Seif's IsPlayerInArea maker.
Then check if a players enters the area, if he does, kill him.
yes it easy ; ) How make full oxygen ? ;e


Re: Die In Water - tom_jonez - 24.04.2009

Quote:
Originally Posted by rabit7
Quote:
Originally Posted by MenaceX^
Quote:
Originally Posted by SnAcH
i sore it on a zombie gm on the hosted mini-games server
None asked where you do it.
Use Seif's IsPlayerInArea maker.
Then check if a players enters the area, if he does, kill him.
yes it easy ; ) How make full oxygen ? ;e
if(Z < 1 && !IsPlayerInArea(DEFINE QUARRY AREA)) SetPlayerHealth(playerid,0.0);

now just code the things u gotta do into that