Help needed, (touch water = death)
#1

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

Make a function that if their z coordinate is below 0 it kills them. 0 = Water line
Reply
#3

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

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]);
Reply
#5

Im really new with scripting, can i get an explanation please... ... Would you need to see my script?
Reply
#6

;''(
Reply
#7

Cray Send me Pwn and ill fix it bro
Reply
#8

https://sampforum.blast.hk/showthread.php?tid=400049
Use this and next time use search before posting.
Reply
#9

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

Just use this
pawn Код:
if(IsPlayerInWater(playerid))
     //true part
else
    //false part
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)