17.07.2009, 15:27
edit
to
Код:
stock GetXYInFrontOfPlayer(playerid,&Float:x,&Float:y,Float:dis) { new float:pos[3]; new float:A; GetPlayerPos(playerid,pos[0],pos[1],pos[2]); GetPlayerFacingAngle(playerid,A); GetXYInFrontOfPoint(pos[0],pos[1],x,y,A,dis); }
Код:
stock GetXYInFrontOfPlayer(playerid,&Float:x,&Float:y,Float:dis) { new float:pos[3]; new float:A; GetPlayerPos(playerid,pos[0],pos[1],pos[2]); if(GetPlayerVehicleID(playerid)) GetVehicleAngelZ(GetPlayerVehicleID(playerid),A); else GetPlayerFacingAngle(playerid,A); GetXYInFrontOfPoint(pos[0],pos[1],x,y,A,dis); }