SetPlayerVelocity calculated with GetPlayerFacingAngle
#8

Quote:
Originally Posted by Trooper[Y
]
Love you men, perfect
Works !
Код:
GetPlayerVelocity(playerid,x1[playerid],y1[playerid],z1[playerid]);
			GetPlayerFacingAngle(playerid,a1[playerid]);
			x1[playerid] += ( 0.5 * floatsin( -a1[playerid], degrees ) );
      y1[playerid] += ( 0.5 * floatcos( -a1[playerid], degrees ) );
			SetPlayerVelocity(playerid,x1[playerid],y1[playerid],z1[playerid]+0.7);
You will get a lot of errors of "Loose identation" with that code xDDD
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)