Guest User

Untitled

a guest
Mar 28th, 2012
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. addEventHandler("onClientVehicleEnter", getRootElement(),
  2. function()
  3.     if source == lastcar then
  4.         tankanzeigestatus = true
  5.     else
  6.         local tempTank = tank
  7.         for auto, tankv in ipairs(alleautoos) do
  8.             if auto == source then
  9.                 tank = tankv
  10.                 outputChatBox("Tabellentank: "..tankv)
  11.             end
  12.         end
  13.         if tempTank == tank then
  14.             tankanzeigestatus = true
  15.             tank = math.random(40,90)
  16.             table.insert(alleautos, source, tank)
  17.         else
  18.             tankanzeigestatus = true
  19.         end
  20.     end
  21. end)
Advertisement
Add Comment
Please, Sign In to add comment