IsPlayerNearVehicle(playerid, vehicleid, Float:distance)
#2

try this..
pawn Код:
stock IsPlayerNearVehicle(playerid, vehicleid, Float:distance)
{
    new m = GetVehicleModel(vehicleid);
    if(m == 0) return 0;
    new Float:x, Float:y, Float:z;
    GetVehiclePos(vehicleid, x, y, z);
    if(!IsPlayerInRangeOfPoint(playerid, distance, x, y, z)) return 0;
    return 1;
}
not tested it yet though
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)