Die In Water
#1

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

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

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);.
Reply
#4

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

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.
Reply
#6

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...?
Reply
#7

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.
Reply
#8

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

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
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)