Problem with /lock
#1

How i can to get in rage of point what vehicle is, if it is...
Reply
#2

pawn Код:
stock CheckPlayerDistanceToVehicle(Float:rad, playerid, vehicleid)
{
    new Float:vx, Float:vy, Float:vz;
    GetVehiclePos(vehicleid, vx, vy, vz);
    if(IsPlayerInRangeOfPoint(playerid, rad, vx, vy, vz)) return 1;
    return 0;
}
Usage: CheckPlayerDistanceToVehicle(radius (float), playerid, vehicle);
Reply
#3

Oh i forgot something,
the id of car i must to know, i do not know how to explain, but i try,
Getvehiclesintherange(playerid, x,y,z)
something ... i don`t know if this exist but... i ask


Sory my bad english


EDIT: I solved my problem, this topic can be closed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)