16.12.2011, 23:17
pawn Код:
CMD:flip(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, 0xFF0000FF, "You are not driving any vehicle.");
new pvID = GetPlayerVehicleID(playerid), Float:angle;
GetVehicleZAngle(pvID, angle);
SetVehicleZAngle(pvID, angle);
SetVehicleAngularVelocity(pvID, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0x00FF00FF, "You have flipped your vehicle.");
return 1;
}