[Help] With On Player Death
#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


Messages In This Thread
[Help] With On Player Death - by kintama - 10.11.2009, 10:53
Re: [Help] With On Player Death - by kintama - 10.11.2009, 12:03
Re: [Help] With On Player Death - by dice7 - 10.11.2009, 13:07
Re: [Help] With On Player Death - by kintama - 10.11.2009, 14:03
Re: [Help] With On Player Death - by kintama - 10.11.2009, 14:08
Re: [Help] With On Player Death - by kintama - 10.11.2009, 19:49

Forum Jump:


Users browsing this thread: 1 Guest(s)