Quote:
Originally Posted by Firez
pawn Код:
#define RemovePlayerFromVehicle removePlayerFromVehicle
stock removePlayerFromVehicle ( playerid ) { if ( !IsPlayerInAnyVehicle(playerid) ) return 0;
new vid = GetPlayerVehicleID(playerid); if ( vid == INVALID_VEHICLE_ID ) return 0;
new Float: pos[4], Float: sideAngle; GetVehiclePos ( vid, pos[0], pos[1], pos[2] ); GetVehicleZAngle( vid, pos[3] );
switch ( GetPlayerVehicleSeat(playerid) ) { case 0,2 : sideAngle = pos[3] - 180.0; default : sideAngle = pos[3]; }
SetPlayerPos( playerid, pos[0] + 2.0 * floatcos( sideAngle, degrees ), pos[1] + 2.0 * floatsin( sideAngle, degrees ), pos[2] + 0.3 );
SetPlayerFacingAngle( playerid, pos[3] );
SetCameraBehindPlayer(playerid);
return 1; }
fixes removeplayerfromvehicle bugs
|
Why all that if you can have RemovePlayerFromVehicle?
Also, the only bug that has it's that the other players can't see the animation of the player behing getting out of the car.