Wysłany: 2016-12-17, 20:08
mixLoLmix2
Programista
Wiek: 35 Na forum: 4113 dni Posty: 454
Nick w MP: TomeQmix
Piwa : 1915
Witam mam problem napisa?em ten skrypt ale nie dza?a nic nie pokazuje ani blipu ani Markeru
createBlip ( 1043.85 ,- 1105.89 , 23.83 , 46 , 2 , 0 , 0 , 0 , 0 , 0 , 275 )
local praca = createMarker ( 1043.85 ,- 1105.89 , 23.83 , "cylinder" , 2.0 , 255 , 0 , 0 , 0 )
local baza = {
{- 1047.20 ,- 1081.36 , 23.83 },
{- 1047.20 ,- 1081.36 , 23.83 },
{- 1047.20 ,- 1081.36 , 23.83 },
{- 1047.20 ,- 1081.36 , 23.83 },
{- 1047.20 ,- 1081.36 , 23.83 },
}
local miejscaelektryk = {
{- 2765.27 , 375.17 , 6.34 },
{- 2765.27 , 375.17 , 6.34 },
{- 2765.27 , 375.17 , 6.34 },
{- 2765.27 , 375.17 , 6.34 },
}
addEventHandler ( "onClientMarkerHit" , praca , function( el , md )
if not md or getElementType ( el ) ~= "player" then return end
if el ~= localPlayer then return end
outputChatBox ( "* Zarobki pracy: 1576 Z?" )
outputChatBox ( "* Aby rozpocz?? prac? wci?nij 'E'" )
end )
bindKey ( "e" , "down" , function()
if not isElementWithinMarker ( localPlayer , praca ) then return end
if not getElementData ( localPlayer , "gracz_praca" ) then
local losuj = math . random ( 2 , #miejscaelektryk)
setElementData ( localPlayer , "gracz_praca" , true )
outputChatBox ( "* Jedz do Celu Oznaczonym Liter? C i go Okradnij nast?pnie Wru? do bazy!." )
local cel = createMarker ( miejscaelektryk [ losuj ][ 1 ], miejscaelektryk [ losuj ][ 2 ], miejscaelektryk [ 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
outputChatBox ( "* Wyjdz z pojazdu i Okradnij Cel! Nast?pnie Wracaj do Auta i do Bazy!!!" )
return
end
destroyElement ( blip )
setElementFrozen ( el , true )
outputChatBox ( "* Okradasz cel czekaj (10 sekund)" )
setTimer (function()
setElementFrozen ( el , false )
outputChatBox ( "* Uda?o si?!." )
outputChatBox ( "* Fa*k Policja Tu jedze Uciekaj do bazy!!!!." )
destroyElement ( cel )
local losuj = math . random ( 2 , #baza)
outputChatBox ( "* Jedz do Celu Oznaczonym Liter? C i go Okradnij nast?pnie Wru? do bazy!." )
local cel = createMarker ( baza [ losuj ][ 1 ], baza [ losuj ][ 2 ], baza [ 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
outputChatBox ( "* Brawo Uda?o ci si?!" )
return
end
destroyElement ( blip )
setElementFrozen ( el , true )
outputChatBox ( "* Wypak?wujesz Kase (10 sekund)" )
setTimer (function()
setElementFrozen ( el , false )
outputChatBox ( "* Twoje 1580z?!" )
destroyElement ( cel )
triggerServerEvent ( "givePlayerMoney" , el , 1590 , 0 )
setElementData ( el , "gracz_praca" , false )
end )
end )
end )
end )
end
end )
Nie ma DB3 Jak co?
Wysłany: 2016-12-17, 20:29
marcin778
Krytyk serwerów MTA
Wiek: 24 Na forum: 4149 dni Posty: 2268
Nick w MP: Marcineg
Piwa : 4662
createBlip ( 1043.85 ,- 1105.89 , 23.83 , 46 )
local praca = createMarker ( 1043.85 ,- 1105.89 , 23.83 , "cylinder" , 2.0 , 255 , 0 , 0 )
Wysłany: 2016-12-18, 14:47
_Haze
Peace Yo!
Wiek: 24 Na forum: 4184 dni Posty: 1648
Nick w MP: Haze
Piwa : 2628
createBlip ( 1043.85 ,- 1105.89 , 23.83 , 46 , 2 , 0 , 0 , 0 , 0 , 0 , 275 )
local praca = createMarker ( 1043.85 ,- 1105.89 , 23.83 , "cylinder" , 2.0 , 255 , 0 , 0 , 0 )
Tutaj tworzysz to. Je?li nie masz to zobacz czy masz dobr? mete albo czy skrypt jest po stronie clienta.
Wysłany: 2016-12-18, 15:04
marcin778
Krytyk serwerów MTA
Wiek: 24 Na forum: 4149 dni Posty: 2268
Nick w MP: Marcineg
Piwa : 4662
Hazmudex , Przecie? argumenty alpha ma ustawione na 0 ;-; marker pewnie tworzy tylko go nie wida? i uznaje, ?e go nie ma.
Tagi: praca :: złodzieja
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: