Kalizman, nie mam poj?cia po co chcesz dawa? onPlayerLogin skoro kolega chce ?eby mu liczy?o od momentu wej?cia na serwer
STOPseba, tamten kod kt?ry ci da?em jest bugni?ty bo moze sie zdarzy?, ?e o 15:00 wyda kase i o 15:05 te? tutaj poprawi?em:
function kasa1() --Policja
setTimer(function()
local acc = getPlayerAccount(source)
if isGuestAccount(acc) then return end
local accName = getAccountName(acc)
if (not accName) then return end
if isObjectInACLGroup("user."..accName, aclGetGroup("Policja")) then
givePlayerMoney(source, 5000)
outputChatBox("[FRAKCJA] Otrzymujesz 5000z? z grupy SAPD!",source, 255,255,255, true)
end
end,3600000,0)
end
addEventHandler("onPlayerJoin", getRootElement(), kasa1)
function kasa2() --Pogotowie
setTimer(function()
local acc = getPlayerAccount(source)
if isGuestAccount(acc) then return end
local accName = getAccountName(acc)
if (not accName) then return end
if isObjectInACLGroup("user."..accName, aclGetGroup("SAMC")) then
givePlayerMoney(source, 5000)
outputChatBox("[FRAKCJA] Otrzymujesz 5000z? z grupy SAMC!",source, 255,255,255, true)
end
end,3600000,0)
end
addEventHandler("onPlayerJoin", getRootElement(), kasa2)
function kasa3() --PSP
setTimer(function()
local acc = getPlayerAccount(source)
if isGuestAccount(acc) then return end
local accName = getAccountName(acc)
if (not accName) then return end
if isObjectInACLGroup("user."..accName, aclGetGroup("PSP")) then
givePlayerMoney(source, 5000)
outputChatBox("[FRAKCJA] Otrzymujesz 5000z? z grupy PSP!",source, 255,255,255, true)
end
end,3600000,0)
end
addEventHandler("onPlayerJoin", getRootElement(), kasa3)
Godzina od wej?cia do zalogowania si? pozostaje bez zmian
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach