16.01.2010, 22:07
is there an playertovehicle
like theres an player to point?
like theres an player to point?
Originally Posted by [HiC
TheKiller ]
Just edit PlayerToPoint to playertovehicle? |
VehicleToPoint(Float:radius, VehcileID, Float:X, Float:Y, Float:Z)
{
new Float:oldpos[3], Float:temppos[3];
GetVehiclePos(VehcileID, oldpos[0], oldpos[1], oldpos[2]);
temppos[0] = (oldpos[0] -X);
temppos[1] = (oldpos[1] -Y);
temppos[2] = (oldpos[2] -Z);
if(((temppos[0] < radius) && (temppos[0] > -radius)) && ((temppos[1] < radius) && (temppos[1] > -radius)) && ((temppos[2] < radius) && (temppos[2] > -radius)))
{
return true;
}
return false;
}
Originally Posted by [HiC
TheKiller ]
pawn Код:
|