Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2015-11-22, 17:31


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4329 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

Witam mam tu taki kod ale on nie dziala
function(thePlayer)
local accName getAccountName getPlayerAccount thePlayer ) ) 
     if isObjectInACLGroup ("user."..accNameaclGetGroup "Premium" ) ) then
     setTimer(function()
            outputChatBox("Dostales 200$ za czas gry.",thePlayer,0,255,0) 
            givePlayerMoney(thePlayer,200)
        end,1000,1)    
    end
end


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-22, 17:47


marcin778

Krytyk serwerów MTA






Wiek: 24
Na forum: 4149 dni
Posty: 2268
Nick w MP: Marcineg

Piwa: 4662

Respekt: 1436,8
Respekt: 1436,8

function(thePlayer)
local accName getAccountName getPlayerAccount thePlayer ) ) 
     if isObjectInACLGroup ("user."..accNameaclGetGroup "Premium" ) ) then
     setTimer(function()
            outputChatBox("Dostales 200$ za czas gry.",thePlayer,0,255,0) 
            givePlayerMoney(thePlayer,200)
        end  
    end1000,1)


Mo?e tak

Podpis
Moje prace: https://www.youtube.com/c...MuaWGHPp1mhlGnw

-- obecnie
-- obecnie
-- dawniej
-- dawniej
-- dawniej
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-22, 17:55


Syku

SubtelnY.






Wiek: 31
Na forum: 3874 dni
Posty: 14
Nick w MP: SubtelnY.

Piwa: 7

Respekt: 80,5

Ostrzeżeń: 100%
b?d? mo?esz da? tak. Wiem ?e to inny kod ale wed?ug mnie troch? ?atwiejszy.

Kod:

function kasa()
for _,v in ipairs ( getElementsByType("player") ) do
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Premium" ) ) then
if getElementData (v, "vip") then
givePlayerMoney (v, 200)
outputChatBox("Otrzymujesz 200$ Za czas gry!.",v, 255,255,0, true)
end
end
end
setTimer ( kasa, 1*1000*60*60, 0 )


Podpis
Początkowy Grafik
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-22, 18:21


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4329 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

[ Dodano: 2015-11-22, 18:21 ]
"Syku" napisał/a:

b?d? mo?esz da? tak. Wiem ?e to inny kod ale wed?ug mnie troch? ?atwiejszy.

Kod:

function kasa()
for _,v in ipairs ( getElementsByType("player") ) do
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Premium" ) ) then
if getElementData (v, "vip") then
givePlayerMoney (v, 200)
outputChatBox("Otrzymujesz 200$ Za czas gry!.",v, 255,255,0, true)
end
end
end
setTimer ( kasa, 1*1000*60*60, 0 )


Nie dziala

function kasa(thePlayer) 
for _,v in ipairs getElementsByType("player") ) do 
local accName getAccountName getPlayerAccount thePlayer ) )
if isObjectInACLGroup ("user."..accNameaclGetGroup "Premium" ) ) then  
givePlayerMoney (v200outputChatBox("Otrzymujesz 200$ Za czas gry!.",v255,255,0trueend 
end 
end 
setTimer kasa1000)
to tez nie dziala :(

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-22, 18:27


Terr9909

Skrypter LUA






Wiek: 26
Na forum: 4234 dni
Posty: 346
Nick w MP: Split

Piwa: 1043

Respekt: 182,8
Respekt: 182,8Respekt: 182,8

Bo?e ludzie ^-^

function kasa() 
for _,v in ipairs getElementsByType("player") ) do 
local accName getAccountName getPlayerAccount ) )
if isObjectInACLGroup ("user."..accNameaclGetGroup "Premium" ) ) then  
givePlayerMoney (v200outputChatBox("Otrzymujesz 200$ Za czas gry!.",v255,255,0trueend 
end 
end 
setTimer kasa1000)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-22, 18:55


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4329 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

Dzieki masz piwo :d

Postaw piwo autorowi tego posta
 

 
Tagi: kasa :: jakis :: czas
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Kasa co jakis czas ! Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

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
Dodaj temat do Ulubionych
Wersja do druku