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)