Help needed, (touch water = death) -
cray1100 - 28.06.2013
Well, i scripted a Crash Derby arena... And its in a huge room, and there is water on each side, i wanna make it so that if the player in a car knocks the other car off they die when they hit the water... Is this even possible
XD PLEASE HELP OR GIVE ME A SUGGESTION...
(An overview of the arena...)
This is what it looks like, i already made a script with two teams, and puts player in vehicles...
Re: Help needed, (touch water = death) -
Rokzlive - 28.06.2013
Make a function that if their z coordinate is below 0 it kills them. 0 = Water line
Re: Help needed, (touch water = death) -
cray1100 - 28.06.2013
Quote:
Originally Posted by Rokzlive
Make a function that if their z coordinate is below 0 it kills them. 0 = Water line
|
How would you do that...?
And would it kill them outside of the derby?
Re: Help needed, (touch water = death) -
DobbysGamertag - 28.06.2013
Theres a stock function around here called "IsPlayerInWater"
Use it in a 1 second timer or something
pawn Код:
new Wet[MAX_PLAYERS];
//stick it wherever you neeed it.
Wet[playerid] = SetTimerEx("gotwet",1000,true,"i",playerid);
//then to kill it if a player is found with the anim.
SetPlayerHealth(playerid,0); //you said kill them?
KillTimer(Wet[playerid]);
Re: Help needed, (touch water = death) -
cray1100 - 28.06.2013
Im really new with scripting, can i get an explanation please...
... Would you need to see my script?
Re: Help needed, (touch water = death) -
cray1100 - 28.06.2013
;''(
Re: Help needed, (touch water = death) -
San1 - 28.06.2013
Cray Send me Pwn and ill fix it bro
Re: Help needed, (touch water = death) -
Black Wolf - 28.06.2013
https://sampforum.blast.hk/showthread.php?tid=400049
Use this and next time use search before posting.
Re: Help needed, (touch water = death) -
cray1100 - 28.06.2013
@BlackWolf, I did search, but i dont understand how that would help, i dont know how to use that include (Already have it, but just clueless.. XD)
@San1, Thx bro, just messaged you...
Re: Help needed, (touch water = death) -
Black Wolf - 28.06.2013
Just use this
pawn Код:
if(IsPlayerInWater(playerid))
//true part
else
//false part