Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.99 KB | None | 0 0
  1. function bus_info(player)
  2.     if vioGetElementData ( player, "job" ) == "busjob" then
  3.         local pplayer = getPlayerName(player)
  4.         local level = Level[client][1]
  5.         local runden = Level[client][2]
  6.         local vonrunden = math.floor(300*1.2^(Level[client][1]))
  7.         local bonusmarker = math.floor(MoneyForMarker[data[client][1]]*(Level[client][1]^(1/3)+0.5))
  8.         local bonuspedmin = moneyForPed-moneyForPedDif
  9.         local bonuspedmax = moneyForPed+moneyForPedDif
  10.         outputChatBox ( "----------Bus Informationen----------", player, 2, 163, 208 )
  11.         outputChatBox ( "Bus-Level:     "..level.."", player, 2, 163, 208 )
  12.         outputChatBox ( "Levelup:        "..runden.."/"..vonrunden.."", player, 2, 163, 208 )
  13.         outputChatBox ( "pro Marker:        "..bonusmarker.."$", player, 2, 163, 208 )
  14.         outputChatBox ( "pro Ped:        "..bonuspedmin.."$-"..bonuspedmax.."$", player, 2, 163, 208 )
  15.         outputChatBox ( "------------------------------------------------", player, 2, 163, 208 )
  16.     end
  17. end
  18. addCommandHandler ( "businfo", bus_info )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement