[Ajuda] Problema no /janelas
#2

PHP код:
CMD:janelas(playeridparams[]) 

    new 
vehicleid GetPlayerVehicleID(playerid); 
    new 
string[124]; 
    new 
driverpassengerbackleftbackright;
    
GetVehicleParamsCarWindows(vehicleiddriverpassengerbackleftbackright);  
    
// 0 = Janela aberta, 1 = Janela fechada
    
if (!IsWindowedVehicle(vehicleid)) 
    return 
SendErrorMessage(playerid"Este veнculo nгo possui janelas."); 
    switch (
CoreVehicles[vehicleid][vehWindowsDown]) 
    { 
        case 
false
        { 
            
CoreVehicles[vehicleid][vehWindowsDown] = true
            
ShowPlayerFooter(playerid"Voce ~g~abaixou as janelas~w~ do veiculo!"); 
            
format(stringsizeof(string), "** %s pressiona um botгo e abaixa as janelas do veнculo."ReturnName(playerid0)); 
            
SetPlayerChatBubble(playeridstringCOLOR_PURPLE30.010000); 
            
SetVehicleParamsCarWindows(vehicleid0passengerbackleftbackright); 
            
// No caso sу alterei a janela do passageiro, mas se quiser que abram todas sу colocar o valor 0 em todas
        

        case 
true
        { 
            
CoreVehicles[vehicleid][vehWindowsDown] = false
            
ShowPlayerFooter(playerid"Voce ~r~fechou as janelas~w~ do veiculo!"); 
            
format(stringsizeof(string), "** %s pressiona um botгo e fecha as janelas do veнculo."ReturnName(playerid0)); 
            
SetPlayerChatBubble(playeridstringCOLOR_PURPLE30.010000); 
            
SetVehicleParamsCarWindows(vehicleid1passengerbackleftbackright);
        } 
    } 
    return 
1

Reply


Messages In This Thread
Problema no /janelas - by GabrielLost - 29.01.2016, 14:36
Re: Problema no /janelas - by Hayzer - 29.01.2016, 15:33
Re: Problema no /janelas - by GabrielLost - 29.01.2016, 15:50

Forum Jump:


Users browsing this thread: 1 Guest(s)