Zero Modhoz van a Script. Elküldöm.
function cPayDay(faction, pay, profit, interest, donatormoney, tax, incomeTax, vtax, ptax, rent, grossincome, kamat, kiszamol)
local sound = playSound(\"mission_accomplished.mp3\")
setSoundVolume(sound, 0.5)
outputChatBox(\"-------------------------- Fizetés --------------------------\", 255, 194, 14)
if (faction) then
if (pay + tax > 0) then
outputChatBox(\" Fizetésed: #00FF00\" .. pay+tax .. \"Ft\", 255, 194, 14, true)
end
end
if (profit > 0) then
outputChatBox(\" Biznisz Profit: #00FF00\" .. profit .. \"Ft\", 255, 194, 14, true)
end
if (vtax > 0) then
outputChatBox(\" Jármu adó: #FF0000\" .. vtax .. \"Ft\", 255, 194, 14, true)
end
if (ptax > 0) then
outputChatBox(\" Ingatlan költségek: #FF0000\" .. ptax .. \"Ft\", 255, 194, 14, true )
end
if (rent > 0) then
outputChatBox(\" Szállás bérlés: #FF0000\" .. rent .. \"Ft\", 255, 194, 14, true)
end
outputChatBox(\"------------------------------------------------------------------\", 255, 194, 14)
if (kamat == true) then
outputChatBox(\" Kamat: 2%\",255, 194, 14, true)
outputChatBox(\" Kamat: \".. kiszamol ..\" Ft\",255, 194, 14, true)
else
outputChatBox(\" Kamat: 1%\",255, 194, 14, true)
outputChatBox(\" Kamat: \".. kiszamol ..\" Ft\",255, 194, 14, true)
end
if (grossincome > 0) then
outputChatBox(\" Bruttó jövedelem: #00FF00\" .. grossincome .. \"Ft\",255, 194, 14, true)
else
outputChatBox(\" Bruttó jövedelem: #FF0000\" .. grossincome .. \"Ft\", 255, 194, 14, true)
end
if (rent == -1) then
outputChatBox(\" Ki lettél rúgva a szálláshelyedrol. Nem tudtad kifizetni a számlákat.\", 255, 0, 0)
end
outputChatBox(\"------------------------------------------------------------------\", 255, 194, 14)
triggerEvent(\"updateWaves\", getLocalPlayer())
end
addEvent(\"cPayDay\", true)
addEventHandler(\"cPayDay\", getRootElement(), cPayDay)
Hol lehet a hiba?