timer = {}
function moni(player)
if not (timer[player]) then
givePlayerMoney(player, 5000)
timer[player] = setTimer(tim, 1000, 600)
end
end
addCommandHandler(\"sajt\", moni)
function tim()
end
Köszi a választ. Kicsit belenyúltam és összehoztam így, hogy tudassam a játékossal hogy mégis mi történik.
timer = {}
function moni(player)
if not (timer[player]) then
outputChatBox(\"Sikeres fizetés! Kézpénz: +5000 Ft.\", player, 247, 145, 0)
givePlayerMoney(player, 5000)
timer[player] = setTimer(tim, 1000, 600)
else
outputChatBox(\"Csak 10 percenként használhatod a segítséget!\", player, 247, 145, 0)
end
end
addCommandHandler(\"sajt\", moni)
function tim()
end