22.01.2011, 17:57
the player it is in front of car, or in back of car ? ( if player is not in vehicle ! )
// TOP
new cars[MAX_VEHICLES];
cars[0] = CreateVehicle(model,x,y,z,colo1,color2,delay);
new Float:x,Float:y,Float:z;
public OnPlayerUpdate(playerid)
{
new Float:px,Float:py,Float:pz;
GetPlayerPos(playerid,px,py,pz);
GetVehiclePos(cars[0],x,y,z);
do
{
printf("The id: %d is back a vehicle",playerid);
}
while(x == px && y == py) // I dont know the distance between, sorry :X
return 1;
}