29.12.2018, 20:55
I've tried to do that if you click on Y it turns into the vehicle but it does not work for me for some reason someone can help me?
pastebin
https://pastebin.com/LtQsBLjX
PHP код:
if(newkeys & KEY_YES)
{
Tolevel(playerid,6);
if(InActAuto[playerid] == true && ActStatus >= 2) return SendClientMessage(playerid,Red, ".you cant do this in act do /Qact to do this");
if(!IsVehicleUpsideDown( GetPlayerVehicleID(playerid))) return SendClientMessage(playerid,Red,"your car not upside down");
if(!IsPlayerInAnyVehicle(playerid) || GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid,Red,"In order to make a vehicle you must be a driver");
if(GetPlayerInterior(playerid) != 0 || GetPlayerVirtualWorld(playerid) != 0)return SendClientMessage(playerid,Red,"You can not do this in this area");
new Float:X,Float:Y,Float:Z,Float:Angle;
GetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z);
GetVehicleZAngle(GetPlayerVehicleID(playerid),Angle);
SetVehiclePosEx(GetPlayerVehicleID(playerid),X,Y,Z+0.2,Angle);
SendClientMessage(playerid,Green, "your car is been flipped");
}
https://pastebin.com/LtQsBLjX