SA-MP Forums Archive
How can i check if (click to see the rest) - 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: How can i check if (click to see the rest) (/showthread.php?tid=215053)



How can i check if (click to see the rest) - MJ! - 22.01.2011

the player it is in front of car, or in back of car ? ( if player is not in vehicle ! )


Re: How can i check if (click to see the rest) - MJ! - 22.01.2011

nobody knows ?


Re: How can i check if (click to see the rest) - blackwave - 22.01.2011

hm..
pawn Код:
// TOP
new cars[MAX_VEHICLES];
cars[0] = CreateVehicle(model,x,y,z,colo1,color2,delay);
new Float:x,Float:y,Float:z;
pawn Код:
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;
}



Re: How can i check if (click to see the rest) - MJ! - 22.01.2011

Thanks for trying man, but be serious

Somebody else ?


Re: How can i check if (click to see the rest) - bartje01 - 22.01.2011

EDIT:
Sorry. I didn't see that you need it while he's out of the vehicle


Re: How can i check if (click to see the rest) - MJ! - 23.01.2011

1 day left

Anybody else ?