Posts: 66
Threads: 18
Joined: Apr 2013
Reputation:
0
I want something which detects players car falls from the map or falls in water ,
Posts: 51
Threads: 8
Joined: Jan 2013
Reputation:
0
when vehicle falls into water its automatically called OnVehicleDeath
Posts: 66
Threads: 18
Joined: Apr 2013
Reputation:
0
and if anyone falls from the derby map ?
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Create a timer to check their position. If their Z height is below a certain point then you can deduct that they've fallen off the map. Say, if your map is at Z height 100 then you can deduct that they fell off if their Z height is 90 or lower.
Posts: 178
Threads: 37
Joined: May 2011
Reputation:
0
You can check player Z coordinate.
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
if(!IsPlayerInRangeOfPoint(playerid, 20.0, x coord, y coord, z coord)) // derby map coord, Z is important!
{
// what to do if player is not in derby map
}
Posts: 66
Threads: 18
Joined: Apr 2013
Reputation:
0
and derby map is not a straight line , it map is up and down , one side another down , its not a road :/ so