28.08.2010, 10:16
I tried it but it still didnt work. I want to make a spawn angle for the first checkpoint, here is the codes:
pawn Код:
new Float:angle;
angle = atan2(RaceCheckpoints[CurrentCheckpoint[playerid]][0] - RaceCheckpoints[CurrentCheckpoint[playerid]+1][0] , RaceCheckpoints[CurrentCheckpoint[playerid]][1] - RaceCheckpoints[CurrentCheckpoint[playerid]+1][1])
SetPlayerFacingAngle(playerid, angle);
SetPlayerPos(playerid,RaceCheckpoints[CurrentCheckpoint[playerid]][0],RaceCheckpoints[CurrentCheckpoint[playerid]][1],RaceCheckpoints[CurrentCheckpoint[playerid]][2]);