Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: /tankuj
1. Komenda /tankuj
Witam! Mam problem z komend? /tankuj

Kod:
function cmdTank1(ilosc)
    if 
getPlayersInTeam(teams.shell.teamthen
        
if ilosc then
            ilosc 
tonumber(ilosc)
            if 
ilosc then
                
if ilosc >= 0 then
                    local veh 
getPedOccupiedVehiclesource )
                    if 
veh then
                        local fuel 
getElementDataveh"fuel" )
                        
setElementDataveh"fuel"fuel+ilosc )
                        
outputChatBox("* Zatankowa?es " .. ilosc .." paliwa"source02550true)
                    
end
                end
            end
        end
    end
end
addCommandHandler
("tankuj"cmdTank1)


Zero b??d?w w debugu