killercycDDS
Migacz
Wiek: 25 Na forum: 4512 dni Posty: 629
Nick w MP: killer_cyc[DDS]
Piwa : 1659
Witam zrobi?em sobie prac? na tartak wszystko ?adnie dzia?a wi?c postanowi?em zrobi?, ?e musisz donie?? stworzone drewno z tabeli "o" lecz teraz to ani drzew nie pokazuje ani niczego debugscript 3 czysty
q = {
{- 1183.07 , - 1054.53 , 129.22 },
{- 1172.19 , - 1037.23 , 129.22 },
{- 1152.89 , - 957.45 , 129.22 },
{- 1043.15 , - 1033.05 , 129.21 },
{- 1088.06 , - 1046.35 , 129.21 },
{- 1154.39 , - 1048.53 , 129.22 },
{- 1181.89 , - 982.51 , 129.22 },
{- 1157.75 , - 938.56 , 129.22 },
{- 1157.03 , - 934.55 , 129.22 },
}
o = {
{- 1196.55 , - 1069.02 , 129.22 },
}
function stworztartak ( plr , md )
x = math . random ( 1 , #q)
y = math . random ( 1 , #o)
object = createObject ( 616 , q [ x ][ 1 ], q [ x ][ 2 ], q [ x ][ 3 ]- 1.55 , 0 , 0 , q [ x ][ 4 ], false )
setObjectScale ( object , 1 )
object2 = createObject ( 1463 , q [ x ][ 1 ], q [ x ][ 2 ], q [ x ][ 3 ]- 1.55 , 0 , 0 , q [ x ][ 4 ], false )
setObjectScale ( object2 , 1 )
marker = createMarker ( q [ x ][ 1 ], q [ x ][ 2 ], q [ x ][ 3 ]+ 4 , "arrow" , 1.4 , 255 , 0 , 0 , 40 )
blip = createBlip ( q [ x ][ 1 ], q [ x ][ 2 ], q [ x ][ 3 ], 12 )
blip2 = createBlip ( o [ y ][ 1 ], o [ y ][ 2 ], o [ y ][ 3 ], 12 )
marker2 = createMarker ( q [ x ][ 1 ], q [ x ][ 2 ], q [ x ][ 3 ], "corona" , 1.2 , 0 , 0 , 0 )
marker3 = createMarker ( q [ x ][ 1 ], q [ x ][ 2 ], q [ x ][ 3 ], "arrow" , 1.2 , 0 , 0 , 0 )
marker4 = createMarker ( o [ y ][ 1 ], o [ y ][ 2 ], q [ y ][ 3 ], "arrow" , 1.2 , 0 , 0 , 0 )
toggleControl ( "sprint" , false )
attachElements ( object2 , 0 , 0.8 , 0.5 )
setElementAlpha ( marker2 , 255 )
end
addEvent ( "tartak" , true )
addEvent ( "usunmarkery2" , true )
addEventHandler ( "usunmarkery2" , getRootElement (), function( gracz , dim )
if isElement (object) then
destroyElement (object)
end
if isElement ( marker ) then
destroyElement ( marker )
end
if isElement ( blip ) then
destroyElement ( blip )
end
if isElement ( marker2 ) then
destroyElement ( marker2 )
end
if isElement ( marker3 ) then
destroyElement ( marker3 )
end
if isElement ( marker4 ) then
destroyElement ( marker4 )
end
if isElement ( blip2 ) then
destroyElement ( blip2 )
end
if isElement ( object2 ) then
destroyElement ( object2 )
end
end )
function nastepnatartak ( plr , md )
if getElementData ( localPlayer , "player:svip" ) then
local money = math . random ( 50000 , 52000 )
local reputation = math . random ( 3 , 4 )
triggerServerEvent ( "givePlayerMoney" , localPlayer , money )
setElementData ( localPlayer , 'player:reputation' , getElementData ( localPlayer , 'player:reputation' )+ reputation )
outputChatBox ( "[SuperVIP] Za sciecie drzewa otrzymujesz " .. money .. " PLN" , 255 , 255 , 255 , true )
elseif getElementData ( localPlayer , 'player:vip' ) then
local money = math . random ( 48500 , 49900 )
local reputation = math . random ( 1 , 2 )
triggerServerEvent ( "givePlayerMoney" , localPlayer , money )
setElementData ( localPlayer , 'player:reputation' , getElementData ( localPlayer , 'player:reputation' )+ reputation )
outputChatBox ( "[VIP] Za sciecie drzewa otrzymujesz " .. money .. " PLN" , 255 , 255 , 255 , true )
else
local money = math . random ( 47000 , 48000 )
local reputation = math . random ( 0 , 1 )
triggerServerEvent ( "givePlayerMoney" , localPlayer , money )
setElementData ( localPlayer , 'player:reputation' , getElementData ( localPlayer , 'player:reputation' )+ reputation )
outputChatBox ( "[GRACZ] Za sciecie drzewa otrzymujesz " .. money .. " PLN" , 255 , 255 , 255 , true )
end
if isElement (object) then
destroyElement (object)
end
if isElement ( marker ) then
destroyElement ( marker )
end
if isElement ( blip ) then
destroyElement ( blip )
end
if isElement ( marker2 ) then
destroyElement ( marker2 )
end
if isElement ( marker3 ) then
destroyElement ( marker3 )
end
if isElement ( marker4 ) then
destroyElement ( marker4 )
end
if isElement ( blip2 ) then
destroyElement ( blip2 )
end
if isElement ( object2 ) then
destroyElement ( object2 )
end
setElementFrozen ( plr , false )
setPedAnimation ( plr , nil , nil )
x = math . random ( 1 , #q)
x = math . random ( 1 , #o)
object = createObject ( 616 , q [ x ][ 1 ], q [ x ][ 2 ], q [ x ][ 3 ]- 1.55 , 0 , 0 , q [ x ][ 4 ], false )
setObjectScale ( object , 1 )
marker = createMarker ( q [ x ][ 1 ], q [ x ][ 2 ], q [ x ][ 3 ]+ 4 , "arrow" , 1.4 , 255 , 0 , 0 , 40 )
blip = createBlip ( q [ x ][ 1 ], q [ x ][ 2 ], q [ x ][ 3 ], 12 )
blip2 = createBlip ( o [ y ][ 1 ], o [ y ][ 2 ], o [ y ][ 3 ], 12 )
marker2 = createMarker ( q [ x ][ 1 ], q [ x ][ 2 ], q [ x ][ 3 ], "corona" , 1.2 , 0 , 0 , 0 )
marker2 = createMarker ( q [ x ][ 1 ], q [ x ][ 2 ], q [ x ][ 3 ], "corona" , 1.2 , 0 , 0 , 0 )
marker3 = createMarker ( q [ x ][ 1 ], q [ x ][ 2 ], q [ x ][ 3 ], "arrow" , 1.2 , 0 , 0 , 0 )
marker4 = createMarker ( o [ y ][ 1 ], o [ y ][ 2 ], q [ y ][ 3 ], "arrow" , 1.2 , 0 , 0 , 0 )
toggleControl ( "sprint" , false )
attachElements ( object2 , 0 , 0.8 , 0.5 )
setElementAlpha ( marker2 , 255 )
end
addEventHandler ( "onClientMarkerHit" , getRootElement (), function( el , md )
if el ~= localPlayer then return end
if source == marker2 then
setElementFrozen ( el , true )
setPedAnimation ( el , "CHAINSAW" , "WEAPON_csaw" , - 1 , true , false )
if source == marker3 then end
setPedAnimation ( localPlayer , "CARRY" , "putdwn" , 1 , false )
setTimer ( nastepnatartak , 8000 , 1 , el , md )
end
end )
poprawione
Ostatnio zmieniony przez killercycDDS 2018-06-04, 18:16, w całości zmieniany 1 raz