#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
#2

PHP код:
if(newkeys KEY_YES

    
Tolevel(playerid,6); 
    if(
InActAuto[playerid] && 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(
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:XFloat:YFloat:ZFloat:Angle; new VehVeh GetPlayerVehicleID(playerid);
    
GetVehiclePos(VehXYZ);
    
SetVehiclePos(VehXYZ+2); 
    
GetVehicleZAngle(VehAngle); 
    
SetVehicleZAngle(VehAngle+1);
    
SendClientMessage(playerid,Green"your car is been flipped");
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)