21.11.2011, 18:46
You don't need all that for a flip command, try this:
What kind of a stupid advise is that?
pawn Код:
CMD:flip(playerid, params[])
{
if(IsPlayerInAnyVehicle(playerid)) {
new Float:angle, vehid;
vehid = GetPlayerVehicleID(playerid);
GetVehicleZAngle(vehid, angle);
SetVehicleZAngle(vehid, angle);
} else {
SendClientMessage(playerid, 0xFF0000, "You need to be in a vehicle to use this command!");
}
}