[Help] With On Player Death
#1

How do i make it so when the Player Dies / Gets Killed They Go to The Closes Hospital ?
Reply
#2

can any 1 help ?
Reply
#3

pawn Код:
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;
}
With that compare all the hospital positions and tele the player to the closest one
Reply
#4

Thanks hope it works :P
Reply
#5

how do i set it up like were in the script do i put it
Reply
#6

?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)