Could I detect...
#5

use this code as a stock

pawn Код:
stock GetVehiclePos(playerid, vehicleid)
{
 if(IsPlayerInAnyVehicle(playerid))
{
new Float:x,Float:y,Float:z,Float:a,Float:X,Float:y;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
X = x + (8 * floatsin(a,degrees));
Y = y + (8 * floatcos(a,degrees));
CreateObject(00000,X,Y,z,0,0,0);
}
return 1;
}
Reply


Messages In This Thread
Could I detect... - by Youice - 27.04.2013, 09:53
Re: Could I detect... - by verlaj - 27.04.2013, 09:57
Re: Could I detect... - by Youice - 27.04.2013, 10:07
Re: Could I detect... - by DanLore - 27.04.2013, 10:15
Re: Could I detect... - by verlaj - 27.04.2013, 10:16
Re: Could I detect... - by Youice - 27.04.2013, 10:17
Re: Could I detect... - by MP2 - 27.04.2013, 11:14
Re: Could I detect... - by Baboon - 27.04.2013, 11:34
Re: Could I detect... - by MP2 - 27.04.2013, 12:00

Forum Jump:


Users browsing this thread: 2 Guest(s)