Wysłany: 2018-01-31, 09:53
Axmell
E-Commerce
Wiek: 24 Na forum: 3810 dni Posty: 279
Nick w MP: %Axmell
Piwa : 224
addEventHandler ( "onMarkerHit" , mrozpo ,function( plr , hitElement )
if veh then return end
veh = getPedOccupiedVehicle ( plr )
if not veh then
outputChatBox ( "Rozpocznij prac?: true." , plr )
los = math . random ( 2 , #mmiejsca)
punkt = createMarker ( mmiejsca [ los ][ 1 ], mmiejsca [ los ][ 2 ], mmiejsca [ los ][ 3 ]- 1 , "cylinder" , 1.1 , 0 , 150 , 0 , 50 , plr )
blip = createBlip ( mmiejsca [ los ][ 1 ], mmiejsca [ los ][ 2 ], mmiejsca [ los ][ 3 ]+ 1 , 0 , 1.2 , 255 , 255 , 0 , 255 , 255 , 9999 , plr )
destroyElement ( mrozpo , plr )
addEventHandler ( "onMarkerHit" , punkt ,function( plr )
kasa = math . random ( 5 , 15 )
givePlayerMoney ( plr , kasa )
outputChatBox ( "Dostarcz i usu?: true.[ " .. kasa .. " ]" , plr )
destroyElement ( punkt , plr )
destroyElement ( blip , plr )
end )
end
end )
Jak zablokowa?, aby je?eli jestem w poje?dzie nie dzia?a? marker?
Wysłany: 2018-01-31, 10:39
Kalizman
Wiek: 23 Na forum: 3652 dni Posty: 1394
Piwa : 4619
Zrobi?em Ci pod marker o nazwie mrozpo , ale jak chcia?by? pod drugi to wystarczy przekopiowa? moj? linijk? i zmieni? zmienne gracza.
addEventHandler ( "onMarkerHit" , mrozpo ,function( plr , hitElement )
if getPedOccupiedVehicle ( plr ) or isPedInVehicle ( plr ) then return end -- wycofujemy funkcj ?, gdy gracz jest w poje ? dzie
outputChatBox ( "Rozpocznij prac?: true." , plr )
los = math . random ( 2 , #mmiejsca)
punkt = createMarker ( mmiejsca [ los ][ 1 ], mmiejsca [ los ][ 2 ], mmiejsca [ los ][ 3 ]- 1 , "cylinder" , 1.1 , 0 , 150 , 0 , 50 , plr )
blip = createBlip ( mmiejsca [ los ][ 1 ], mmiejsca [ los ][ 2 ], mmiejsca [ los ][ 3 ]+ 1 , 0 , 1.2 , 255 , 255 , 0 , 255 , 255 , 9999 , plr )
destroyElement ( mrozpo , plr )
addEventHandler ( "onMarkerHit" , punkt ,function( plr )
kasa = math . random ( 5 , 15 )
givePlayerMoney ( plr , kasa )
outputChatBox ( "Dostarcz i usu?: true.[ " .. kasa .. " ]" , plr )
destroyElement ( punkt , plr )
destroyElement ( blip , plr )
end )
end )
Wysłany: 2018-01-31, 11:25
Axmell
E-Commerce
Wiek: 24 Na forum: 3810 dni Posty: 279
Nick w MP: %Axmell
Piwa : 224
Wywala b??d https://imgur.com/a/rzfoh
Ca?y kod:
addEventHandler ( "onMarkerHit" , mrozpo ,function( plr )
if getPedOccupiedVehicle ( plr ) or isPedInVehicle ( plr ) then return end
outputChatBox ( "Rozpocznij prac?: true." , plr )
local x , y , z = getElementPosition ( plr )
skrzynka = createObject ( 1271 , x , y , z , 0 , 0 , 0 )
setElementCollisionsEnabled ( skrzynka , false )
addEvent ( "skrzynka_przyklej" , true )
attachElements ( skrzynka , plr , bone , x , y , z , rx , ry , rz )
los = math . random ( 2 , #mmiejsca)
punkt = createMarker ( mmiejsca [ los ][ 1 ], mmiejsca [ los ][ 2 ], mmiejsca [ los ][ 3 ]- 1 , "cylinder" , 1.1 , 0 , 150 , 0 , 50 , plr )
blip = createBlip ( mmiejsca [ los ][ 1 ], mmiejsca [ los ][ 2 ], mmiejsca [ los ][ 3 ]+ 1 , 0 , 1.2 , 255 , 255 , 0 , 255 , 255 , 9999 , plr )
destroyElement ( mrozpo , plr )
addEventHandler ( "onMarkerHit" , punkt ,function( plr )
kasa = math . random ( 5 , 15 )
givePlayerMoney ( plr , kasa )
outputChatBox ( "Dostarcz i usu?: true.[ " .. kasa .. " ]" , plr )
destroyElement ( punkt , plr )
destroyElement ( blip , plr )
destroyElement ( skrzynka )
createElement ( mrozpo )
end )
end )
Wysłany: 2018-01-31, 17:05
Qwertick
Coming soon...
Wiek: 23 Na forum: 3577 dni Posty: 472
Nick w MP: Qwertick
Piwa : 2726
addEventHandler ( "onMarkerHit" , mrozpo ,function( plr )
if getPedOccupiedVehicle ( plr ) or isPedInVehicle ( plr ) then
outputChatBox ( "Rozpocznij prac?: true." , plr )
local x , y , z = getElementPosition ( plr )
skrzynka = createObject ( 1271 , x , y , z , 0 , 0 , 0 )
setElementCollisionsEnabled ( skrzynka , false )
addEvent ( "skrzynka_przyklej" , true )
attachElements ( skrzynka , plr , bone , x , y , z , rx , ry , rz )
los = math . random ( 2 , #mmiejsca)
punkt = createMarker ( mmiejsca [ los ][ 1 ], mmiejsca [ los ][ 2 ], mmiejsca [ los ][ 3 ]- 1 , "cylinder" , 1.1 , 0 , 150 , 0 , 50 , plr )
blip = createBlip ( mmiejsca [ los ][ 1 ], mmiejsca [ los ][ 2 ], mmiejsca [ los ][ 3 ]+ 1 , 0 , 1.2 , 255 , 255 , 0 , 255 , 255 , 9999 , plr )
destroyElement ( mrozpo , plr )
addEventHandler ( "onMarkerHit" , punkt ,function( plr )
kasa = math . random ( 5 , 15 )
givePlayerMoney ( plr , kasa )
outputChatBox ( "Dostarcz i usu?: true.[ " .. kasa .. " ]" , plr )
destroyElement ( punkt , plr )
destroyElement ( blip , plr )
destroyElement ( skrzynka )
createElement ( mrozpo )
end )
end )
Podpis
Kontakt
Discord: Qwertick#1210
Wysłany: 2018-01-31, 17:09
Kalizman
Wiek: 23 Na forum: 3652 dni Posty: 1394
Piwa : 4619
Wercio. , w?a?nie teraz co zrobi?e? jest b??dem!
T?umaczenie:
je?eli jest w poje?dzie wtedy
-- funkcja
Tagi: blokada :: jeśli :: pojeździe
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: