Problem with /lock - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem with /lock (
/showthread.php?tid=226455)
Problem with /lock -
UltraKiller - 15.02.2011
How i can to get in rage of point what vehicle is, if it is...
Re: Problem with /lock -
Ash. - 15.02.2011
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);
Re: Problem with /lock -
UltraKiller - 15.02.2011
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