Wysłany: 2014-07-29, 12:32
Mizy1999
I <3 Mta
Wiek: 28 Na forum: 4995 dni Posty: 157
Nick w MP: xxx
Piwa : 154
Co? jest tu ?le ?
Kod: addEventHandler("onMarkerHit",policjafunk,
function(element)
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Policja" ) ) then
outputChatBox ( "[Frakcja] Co? tam co?.",element,100,100,0,true)
if getElementType(element) == 'player' then
wyplata = setTimer ( function()
local amount = math.random(1,10)
outputChatBox ( "[Informacja] Dosta?e? "..amount.." za co?, kolejne pieni?dze uzyskasz za 1 minute.",element,100,100,0,true)
givePlayerMoney ( element, amount )
end, 60000, 0)
end
end
end)
Wysłany: 2014-07-29, 12:36
krydianero
Samotny Wilk
Wiek: 33 Na forum: 4783 dni Posty: 395
Nick w MP: Yoshida
Piwa : 1798
Gdzie zadeklarowal?e? argument thePlayer? Bo ja nie widz?...
[ Dodano : 2014-07-29, 12:39 ]
addEventHandler ( "onMarkerHit" , policjafunk ,
function( element )
if getElementType ( element ) == 'player' then
local playeracc = getAccountName ( getPlayerAccount ( element ) )
if isObjectInACLGroup ( "user." .. playeracc , aclGetGroup ( "Policja" ) ) then
outputChatBox ( "[Frakcja] Co? tam co?." , element , 100 , 100 , 0 , true )
wyplata = setTimer ( function()
local amount = math . random ( 1 , 10 )
outputChatBox ( "[Informacja] Dosta?e? " .. amount .. " za co?, kolejne pieni?dze uzyskasz za 1 minute." , element , 100 , 100 , 0 , true )
givePlayerMoney ( element , amount )
end , 60000 , 0 )
end
end
end )
Podpis
Multi Drive Unlimited:Nowy projekt już wkrótce
Tagi: marker
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: