#1

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?
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(!
IsVehicleUpsideDownGetPlayerVehicleID(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) != || 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");
    } 
pastebin
https://pastebin.com/LtQsBLjX
Reply


Messages In This Thread
help - by shachar - 29.12.2018, 20:55
Re: help - by Undef1ned - 30.12.2018, 00:53

Forum Jump:


Users browsing this thread: 1 Guest(s)