29.09.2012, 10:30
So long why ?!
Works 100 %
pawn Код:
if(strcmp(cmdtext,"/flip",true)==0)
{
if(PlayerInfo[playerid][power]>5)
{
new Float:X,Float:Y,Float:Z,Float:Angle;
if (IsPlayerInAnyVehicle(playerid)){ GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle); SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z + 1); SetVehicleZAngle(GetPlayerVehicleID(playerid),Angle); SendClientMessage(playerid,COLOR_YELLOW,"You have successfully flipped your vehicle.");
}
else SendClientMessage(playerid,COLOR_RED,"You must be in a vehicle.");
}
return 1;
}