[code]local light = dxCreateTexture("files/light.png", "argb")
local arrow = dxCreateTexture("img/arrow.png", "argb")
local anim_type = "foward"
local distance = 50
local animTime = 0
addEventHandler("onClientPreRender", root,
function()
for i, v in ipairs(getElementsByType("marker")) do
if getElementData(v, "custom_marker") then
local x, y, z = getElementPosition(v)
local x2, y2, z2 = getElementPosition(localPlayer)
local r, g, b, a = getMarkerColor(v)
local distanceBetweenPoints = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2)
if (distanceBetweenPoints < distance) then
local size = getMarkerSize(v)
if anim_type == "back" then
local progress = (getTickCount() - animTime) / 1500
position = math.floor(interpolateBetween(0, 0, 0, 200, 0, 0, progress, "InQuad"))
if(progress > 1) then
anim_type = "foward"
animTime = getTickCount()
end
else
local progress = (getTickCount() - animTime) / 1500
position = math.floor(interpolateBetween(200, 0, 0, 0, 0, 0, progress, "OutQuad"))
if(progress > 1) then
anim_type = "back"
animTime = getTickCount()
end
end
dxDrawMaterialLine3D(x, y, z+1+1+(position/1000), x, y, z+1+(position/1000), arrow, 1, tocolor(...
Tak jak w tempacie. pod?aczy?em serwer pod baze db4free.net i podczas rejestracji na serwerze nie profil gracza nie zapisuje sie na bazie danych przy mapce by?o kilka starych graczy wiec zmieni?em nick na gracza z listy i wyskoczy?o mi zeby sie zalogowa? czyli jest po??czenie z bana i czyta mi pliki z niej ale nie chce ich zapisywa?. z g?ry dzi?kuje