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.team) then
        
if ilosc then
            ilosc 
= tonumber(ilosc)
            if 
ilosc then
                
if ilosc >= 0 then
                    local veh 
= getPedOccupiedVehicle( source )
                    if 
veh then
                        local fuel 
= getElementData( veh, "fuel" )
                        
setElementData( veh, "fuel", fuel+ilosc )
                        
outputChatBox("* Zatankowa?es " .. ilosc .." paliwa", source, 0, 255, 0, true)
                    
end
                end
            end
        end
    end
end
addCommandHandler
("tankuj", cmdTank1)


Zero b??d?w w debugu