10.11.2009, 10:53
How do i make it so when the Player Dies / Gets Killed They Go to The Closes Hospital ?
stock Float:GetDistanceToVehicle(playerid,vehicleid) //By Darkrealm (Edited by Sacky and Gabriel "Larcius" Cordes)
{
if (IsPlayerConnected(playerid) && IsVehicleConnected(vehicleid))
{
new Float:x1,Float:y1,Float:z1;
GetVehiclePos(vehicleid,x1,y1,z1);
return GetDistanceToPoint(playerid,x1,y1,z1);
}
return INF_FLOAT;
}