Wysłany: 2016-07-19, 12:57
NeroNix
Wiek: 27 Na forum: 3614 dni Posty: 69
Piwa : 1
Wiem ,?e kto? ju? kiedy? rozpocz?? ten temat lecz nie zosta? on rozwi?zany.
Mam problem z premium w pracach.
B??d w DB3
Ot?? wywala w db3 ten b??d i nie dzia?a nic.
Dodam, ?e to jest po stronie clienta:
bindKey ( "e" , "down" , function()
if not isElementWithinMarker ( localPlayer , praca ) then return end
if not exports [ "premium" ]: isPremium ( localplayer ) then
return
end
Stawiam i daj?
Wysłany: 2016-07-19, 15:47
GabWas
Wiek: 24 Na forum: 3881 dni Posty: 289
Nick w MP: GabWas
Piwa : 65
Zgaduj?, ?e to dlatego, ?e napisa?e? "localplayer" zamiast "localPlayer".
Wysłany: 2016-07-19, 17:41
NeroNix
Wiek: 27 Na forum: 3614 dni Posty: 69
Piwa : 1
GabWas ,
Niestety, to te? nie pomog?o
Wysłany: 2016-07-19, 17:44
GabWas
Wiek: 24 Na forum: 3881 dni Posty: 289
Nick w MP: GabWas
Piwa : 65
Ach no tak, zapomnia?e? doda? end'u i zamkn?? nawiasu.
Wysłany: 2016-07-19, 17:46
NeroNix
Wiek: 27 Na forum: 3614 dni Posty: 69
Piwa : 1
GabWas ,
pe?ny kod..
bindKey ( "e" , "down" , function()
if not isElementWithinMarker ( localPlayer , praca ) then return end
if not exports [ "premium" ]: isPremium ( localPlayer ) then
-- outputChatBox ( " Ta praca dostepna jest tylko dla konta premium." )
return
end
if not getElementData ( localPlayer , "gracz_praca" ) then
local losuj = math . random ( 2 , #miejscamagazynier)
setElementData ( localPlayer , "gracz_praca" , true )
-- outputChatBox ( "* Od??? skrzynk? na p??k?." )
setPedAnimation ( localPlayer , "CARRY" , "crry_prtial" , 1 , true )
local skrzynia = createObject ( 1271 , 0 , 0 , 0 )
attachElements ( skrzynia , localPlayer , 0 , 0.8 , 0.5 )
local cel = createMarker ( miejscamagazynier [ losuj ][ 1 ], miejscamagazynier [ losuj ][ 2 ], miejscamagazynier [ losuj ][ 3 ]- 1.0 , "checkpoint" , 1.0 , 255 , 0 , 0 )
local blip = createBlipAttachedTo ( cel , 41 )
addEventHandler ( "onClientMarkerHit" , cel , function( el , md )
if not md or getElementType ( el ) ~= "player" then return end
if el ~= localPlayer then return end
if getPedOccupiedVehicle ( el ) then
addEventHandler ( "onClientRender" , root , render1 )
setTimer ( renderstop1 , 1000 , 1 )
return
end
destroyElement ( blip )
setElementFrozen ( el , true )
addEventHandler ( "onClientRender" , root , render4 )
setTimer ( renderstop4 , 2500 , 1 )
setTimer (function()
setElementFrozen ( el , false )
outputChatBox ( "* Po?o?y?e? skrzynk?." )
destroyElement ( skrzynia )
destroyElement ( cel )
setPedAnimation ( localPlayer , false )
setElementData ( el , "gracz_praca" , false )
triggerServerEvent ( "givePlayerMoney" , el , 250 )
addEventHandler ( "onClientRender" , root , render3 )
setTimer ( renderstop3 , 2500 , 1 )
end , 4000 , 1 )
end )
else
outputChatBox ( "* Posiadasz aktywn? prac?." )
end
end )
Wysłany: 2016-07-19, 20:43
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
NeroNix , eksportujesz funkcje kt?rej nie ma/nie ma w??czanej, lub taki skrypt nie jest w??czony/lub go nie ma.
Tagi: premium :: praca
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: