0 Üye ve 1 Ziyaretçi konuyu incelemekte.
function youhitme ( ) createWindow(wndSetPos) showCursor(true)endaddEvent( "hitthatbitch", true )addEventHandler( "hitthatbitch", localPlayer, youhitme )
size = 1.0blipid = 37themotherfuckingMarker = {}themotherfuckingMarker[1] = createColSphere(2464.07056, -1666.22021, 13, size)themotherfuckingMarker[2] = createColSphere(-2426.32031, -622.02759, 132.2,size)--themotherfuckingMarker[3] = createColSphere(x, y, z,size)--örnek marker.function tutsanabunu() for i,v in ipairs(themotherfuckingMarker) do x, y, z = getElementPosition(v) createBlip( x, y, z, 0, blipid, 18, 159, 240, myPlayer ) createMarker (x, y, z-0.8, "cylinder", 2, 18, 159, 240, 120 )endendaddEventHandler ( "onResourceStart", getRootElement(), tutsanabunu )function heeeeeeeeeeeeeeeeeeeey ( thePlayer, matchingDimension ) triggerClientEvent ( thePlayer, "hitthatbitch", thePlayer)endaddEventHandler ( "onColShapeHit",themotherfuckingMarker[1], heeeeeeeeeeeeeeeeeeeey )addEventHandler ( "onColShapeHit",themotherfuckingMarker[2], heeeeeeeeeeeeeeeeeeeey )
şimdi ilk olarak freeroam scriptinin "fr_client.lua" nın ilk satırına altaki kodu yaz.Kod: luafunction youhitme ( ) createWindow(wndSetPos) showCursor(true)endaddEvent( "hitthatbitch", true )addEventHandler( "hitthatbitch", localPlayer, youhitme )bir "server.lua" oluşturmalısın (meta.xml ye eklemeyi unutma.) altaki kodları içine ekle.kod;(server.lua) Kod: luasize = 1.0blipid = 37themotherfuckingMarker = {}themotherfuckingMarker[1] = createColSphere(2464.07056, -1666.22021, 13, size)themotherfuckingMarker[2] = createColSphere(-2426.32031, -622.02759, 132.2,size)--themotherfuckingMarker[3] = createColSphere(x, y, z,size)--örnek marker.function tutsanabunu() for i,v in ipairs(themotherfuckingMarker) do x, y, z = getElementPosition(v) createBlip( x, y, z, 0, blipid, 18, 159, 240, myPlayer ) createMarker (x, y, z-0.8, "cylinder", 2, 18, 159, 240, 120 )endendaddEventHandler ( "onResourceStart", getRootElement(), tutsanabunu )function heeeeeeeeeeeeeeeeeeeey ( thePlayer, matchingDimension ) triggerClientEvent ( thePlayer, "hitthatbitch", thePlayer)endaddEventHandler ( "onColShapeHit",themotherfuckingMarker[1], heeeeeeeeeeeeeeeeeeeey )addEventHandler ( "onColShapeHit",themotherfuckingMarker[2], heeeeeeeeeeeeeeeeeeeey )
Oldu çok sağolun ama bunların olduğu bölgelere haritada nasıl blip ekliyeceğiz ?
themotherfuckingMarker[3] = createColSphere( x kordinatı , y kordinatı, z kordinatı ,size)
senin sadece bölge eklemen yeterli blip ve marker kendisi oluşuyorörnek;Kod: luathemotherfuckingMarker[3] = createColSphere( x kordinatı , y kordinatı, z kordinatı ,size)
createBlip( x, y, z, 0, blipid, 18, 159, 240, myPlayer )
createBlipAttachedTo( themotherfuckingMarker, blipid)