Код:
DestroyVehicle(id);
new Float:Ai;
GetPlayerFacingAngle(playerid, Ai);
GetPlayerFacingAngle(playerid, Ai);
CarsInfo[id][cSpawnA] = Ai;
new string2[125];
format(string2,sizeof(string2),"%f",Ai);
SendClientMessage(playerid,-1,string2);
OwnedCarID[id] = CreateVehicle(CarsInfo[id][cModel], CarsInfo[id][cSpawnX], CarsInfo[id][cSpawnY], CarsInfo[id][cSpawnZ], Ai, CarsInfo[id][cColor1], CarsInfo[id][cColor2], -1);
It's a /park command, if i type /park, it works, but if I type again in another angle it give's me the old angle, i need to exit and enter again form the vehicle to work properly
Edit: I just made a command
Код:
CMD:fang(playerid,params)
{
new Float:Ai;
GetPlayerFacingAngle(playerid, Ai);
new string2[125];
format(string2,sizeof(string2),"%f",Ai);
SendClientMessage(playerid,-1,string2);
return 1;
}
it seems in a vehicle the angle don't update, hmm, i have an idea