Giriş Yap
Kayıt Ol
Menu
Ana Sayfa
Forum
Yardım
MTASATURK
»
Multi Theft Auto
»
Teknik Destek
»
[YARDIM] Respawn'da Hata Veriyor
[YARDIM] Respawn'da Hata Veriyor
4VCI
·
3 ·
1268
« önceki
sonraki »
Yazdır
Sayfa:
1
0 Üye ve 1 Ziyaretçi konuyu incelemekte.
4VCI
4VCI#4969(discord)
Acemi Üye
İleti:
177
Pertinacious Vargant Stars
[YARDIM] Respawn'da Hata Veriyor
:
17 Aralık 2017, 23:52:18
Arkadaşlar rica etsem bunun hatasını çözebilirmisiniz, En altadaki satırda hata veriyorda.
Satırıda ekleyeyim.
addEventHandler("onElementDataChange", getRootElement(), function(theName, oldValue)
Spoiler
for
Hiden
:
function undecompileable(btn, x, y)
if btn == "left" then
if source == FUCKYOUstealer then
clickedElement = TitleBar
end
local elementPos9 = {
math.random(1, 3)
}
end
end
local running = false
hunterMapSpawns = {}
function hexToRGB(num)
num = string.gsub(num, "#", "")
local r = tonumber("0x" .. string.sub(num, 1, 2))
local g = tonumber("0x" .. string.sub(num, 3, 4))
local b = tonumber("0x" .. string.sub(num, 5, 6))
local a = tonumber("0x" .. string.sub(num, 7,
)
return r, g, b, a
end
function mapLoad()
hunterMapSpawns = {}
local xml = xmlLoadFile("hunter.map")
local messageNodes = xmlNodeGetChildren(xml)
for i, node in ipairs(messageNodes) do
if xmlNodeGetName(node) == "object" then
local model = xmlNodeGetAttribute(node, "model")
local posX = xmlNodeGetAttribute(node, "posX")
local posY = xmlNodeGetAttribute(node, "posY")
local posZ = xmlNodeGetAttribute(node, "posZ")
local rotX = xmlNodeGetAttribute(node, "rotX")
local rotY = xmlNodeGetAttribute(node, "rotY")
local rotZ = xmlNodeGetAttribute(node, "rotZ")
createObject(model, posX, posY, posZ, rotX, rotY, rotZ)
end
if xmlNodeGetName(node) == "spawnpoint" then
local posX = xmlNodeGetAttribute(node, "posX")
local posY = xmlNodeGetAttribute(node, "posY")
local posZ = xmlNodeGetAttribute(node, "posZ")
table.insert(hunterMapSpawns, {
posX,
posY,
posZ
})
end
if xmlNodeGetName(node) == "marker" then
local type = xmlNodeGetAttribute(node, "type")
local color = xmlNodeGetAttribute(node, "color")
local size = xmlNodeGetAttribute(node, "size")
local posX = xmlNodeGetAttribute(node, "posX")
local posY = xmlNodeGetAttribute(node, "posY")
local posZ = xmlNodeGetAttribute(node, "posZ")
local rotX = xmlNodeGetAttribute(node, "rotX")
local rotY = xmlNodeGetAttribute(node, "rotY")
local rotZ = xmlNodeGetAttribute(node, "rotZ")
local r, g, b, a = hexToRGB(color)
createMarker(posX, posY, posZ, type, size, r, g, b, a, getRootElement())
end
end
xmlUnloadFile(xml)
end
addEvent("onMapStarting", true)
addEventHandler("onMapStarting", getRootElement(), mapLoad)
addEvent("onClientRequestHunter", true)
addEventHandler("onClientRequestHunter", getRootElement(), function()
triggerClientEvent(source, "onClientCall_race", source, "Spectate.stop", "manual")
triggerEvent("onClientRequestSpectate", source, false)
numberX = math.random(0, #hunterMapSpawns)
spawnPlayer(source, hunterMapSpawns[numberX][1], hunterMapSpawns[numberX][2], hunterMapSpawns[numberX][3])
local vehicle = exports.race:getPlayerVehicle(source)
warpPedIntoVehicle(source, vehicle)
triggerClientEvent(source, "onClientCall_race", source, "Spectate.stop", "manual")
setElementData(source, "race.spectating", true)
setElementData(source, "status1", "dead")
setElementData(source, "status2", "")
setElementData(source, "state", "Huntering")
setElementData(source, "race.finished", true)
setCameraTarget(source, source)
setElementData(vehicle, "race.collideworld", 1)
setElementData(vehicle, "race.collideothers", 0)
setElementData(source, "race.alpha", 255)
setElementData(vehicle, "race.alpha", 255)
setElementModel(vehicle, 481)
setElementModel(vehicle, 425)
setElementPosition(vehicle, hunterMapSpawns[numberX][1], hunterMapSpawns[numberX][2], hunterMapSpawns[numberX][3])
setElementFrozen(vehicle, true)
fixVehicle(vehicle)
toggleAllControls(source, true)
setVehicleLandingGearDown(vehicle, true)
setTimer(delayedHunter, 2000, 1, source, vehicle)
showBlipsAttachedTo(source, true)
end)
function delayedHunter(player, vehicle)
triggerClientEvent(player, "clientUnfreezeOnReady", player, vehicle)
end
addEvent("onRaceStateChanging", true)
addEventHandler("onRaceStateChanging", getRootElement(), function(newState, oldState)
triggerClientEvent("onClientRaceStateChanging", getRootElement(), newState, oldState)
if newState == "Running" then
running = true
end
if newState == "PostFinish" or newState == "NoMap" then
running = false
local player = getElementsByType("player")
for i = 1, #player do
local replaying = getElementData(player
, "Hunter.playing")
if replaying then
setElementData(source, "race.spectating", false)
setElementData(source, "status1", "dead")
setElementData(source, "status2", "")
setElementData(source, "race.finished", false)
end
end
end
end)
addEventHandler("onElementDataChange", getRootElement(), function(theName, oldValue)
«
Son Düzenleme: 18 Aralık 2017, 00:28:52 Gönderen: 4VCI
»
[DD/DM] Player
MTASATURK
[YARDIM] Respawn'da Hata Veriyor
«
:
17 Aralık 2017, 23:52:18 »
shephard^
Uzman Üye
İleti:
776
decay.
Ynt: [YARDIM] Respawn'da Hata Veriyor
Yanıtla #1 :
18 Aralık 2017, 00:45:50
end eksik diyor end ekle dene
4VCI
4VCI#4969(discord)
Acemi Üye
İleti:
177
Pertinacious Vargant Stars
Ynt: [YARDIM] Respawn'da Hata Veriyor
Yanıtla #2 :
18 Aralık 2017, 00:57:36
5-10 Dakika önce halletim dostum.
[DD/DM] Player
Yazdır
Sayfa:
1
MTASATURK
»
Multi Theft Auto
»
Teknik Destek
»
[YARDIM] Respawn'da Hata Veriyor
Search
Kullanıcı Adı
Şifre
Sürekli bağlı kal
Şifreni mi unuttun ?