Search the Community

Showing results for tags '[help]'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
  • Archive
  • Private Bugtracker

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Gang


Location


Occupation


Interests

Found 48 results

  1. The sound still does not play when I enter the cities.what's wrong ? can someone help? cities = { ["Bone County"] = true, ["Tierra Robada"] = true, } addEventHandler('onClientResourceStart', localPlayer, function () local x,y,z = getElementPosition(localPlayer) local city = getZoneName(x,y,z, true) if cities[city] then playSound("sound.mp3",true) end end )
  2. Hello, I'm trying to add text on the ped.everything is good.text appears but when I approach the ped, the error comes from debug. ERROR :[Resources]\missionsped\client.Lua:199: attempt to perform arithmetic on local 'sy' (a nil value) How can ı solve this problem ? function pedText() local x, y, z = getElementPosition( dealer ) --ped position local x2, y2, z2 = getElementPosition(localPlayer) --player position local yakinlas = getDistanceBetweenPoints3D(x,y,z, x2, y2, z2) if yakinlas < 4 then local x2, y2, z2 = getElementPosition(localPlayer) lcal sx, sy = getScreenFromWorldPosition(x, y, z+0.9, 0.06) local yakinlas = getDistanceBetweenPoints3D(x,y,z, x2, y2, z2) local yaziboyut = 0.9 dxDrawText ( "Drug Dealer" , sx, sy - 30, sx, sy - 30, tocolor(255,255,255), math.min ( 0.3*(150/yakinlas)*1.4,1.3 - (0.5 + math.sin(math.rad(getTickCount())) / 3) / 12) * yaziboyut, "default-bold", "center", "bottom", false, false, false, true ) end end --end addEventHandler("onClientRender", root, pedText)
  3. Hi all ı want add explosion to helmet zombie.his skin number 44.ı tried with createExplosion (x,y,z, 0) but its not worked.its more important for us please help.what can ı do ? thanks .. function zombiedamaged ( attacker, weapon, bodypart ) if getElementType ( source ) == "ped" then if (getElementData (source, "zombie") == true) then if ( bodypart == 9 ) then helmeted = "no" local zskin = getElementModel ( source ) for k, skin in pairs( helmetzombies ) do if skin == zskin then helmeted = "yes" end end if helmeted == "no" then triggerServerEvent ("headboom", source, source, attacker, weapon, bodypart ) end end end end end addEventHandler ( "onClientPedDamage", getRootElement(), zombiedamaged )
  4. How can I turn a texture ON and OFF with just one command?Texture needs to be active when they enter the server.This is what confuses me. addEventHandler('onClientResourceStart', resourceRoot, function() shader = dxCreateShader('shader.fx') terrain = dxCreateTexture('img/road.jpg') dxSetShaderValue(shader, 'gTexture', terrain) engineApplyShaderToWorldTexture(shader, 'cj_rubbish1') engineApplyShaderToWorldTexture(shader, 'sf_junction2') engineApplyShaderToWorldTexture(shader, ':Oroad01_law') engineApplyShaderToWorldTexture(shader, 'des_1line256') engineApplyShaderToWorldTexture(shader, 'concretebig4256128') end )
  5. Hello to everyone. I would appreciate it if friends with experience answer this topic.In the past a lot of people have opened the topic for a good host.but it's been over a lot of time and we really need help.It's hard to manage a server with zombies or peds.Because many players are getting poor performance from the server.(high ping or lowest level FPS) When we buy a host in Europe, it is a problem for players of the Americas.Likewise when we get a host from the continent of america, those in europe are having problems. Can an experienced friend recommend a good host company?Need a good company or a good location.If you have a really good suggestion, can you share with us? We will really be grateful.
  6. I tried a few more events but failed.I just want the health bar to appear when I "aim" on ped.Now health bar looks without aim with gun! how can ı really do that ?Please help someone? function pedHealthbar() for k, peds in pairs(getElementsByType("ped", root, true)) do if getElementData(peds, "type") == "Secur.ped" then target = getPedTarget(peds) if ( target ) then local recBar = dxDrawRectangle(sX+420, sY-600,150, 12, tocolor(0, 0, 0, 200)) local health = getElementHealth(peds) local lineLength = 144 * (health / 100) local healthBar = dxDrawRectangle(sX+423, sY-597,lineLength, 7, tocolor(46, 139, 87, 210)) dxDrawText("Security", sX+460, sY-627, sX+155, sY-19-(32*7), tocolor(0,0,0, 255), 1.6, font, "left", "top") dxDrawText("Security", sX+461.5, sY-625.5, sX+153.5, sY-17.5-(32*7), tocolor(255, 255, 255, 255), 1.6, font, "left", "top") end end end addEventHandler("onClientRender", root, pedHealthbar)
  7. Hi Forum,ı want to say that ı am new in scripting and now ı am starting to try element datas.ı want to add rank in scoreboard acording to the number of levels.ı know ı cant do the codes below.can someone give me an example how can ı do this ? ı just want to show it on the scoreboard.Thank you from now. exports.scoreboard:addScoreboardColumn('Rank') addEventHandler("onPlayerSpawn",root, function() if getElementData(source,"level") >= 1 then setElementData(source, "Rank", "test") elseif getElementData(source,"level") >= 5 then setElementData(source, "Rank", "test1") elseif getElementData(source,"level") >= 10 then setElementData(source, "Rank", "test2") elseif getElementData(source,"level") >= 15 then setElementData(source, "Rank", "test3") elseif getElementData(source,"level") >= 20 then setElementData(source, "Rank", "test4") elseif getElementData(source,"level") >= 25 then setElementData(source, "Rank", "test5") end end ) addEventHandler("onPlayerSpawn",root, function () local rank = getElementData(source,"level") if rank then setElementData(source,"Rank", rank) end end )
  8. local sX,sY = guiGetScreenSize() local sX,sY = sX*0.05,sY*0.95 font = "default-bold" function healthbar() local plr = localPlayer for k, pedsz in pairs(getElementsByType("ped", root, true)) do if getElementData(pedsz, "zombie") then target = getPedTarget(plr) if (not target) then return false end if (not getElementType(target) == "ped" ) then return false end if (not isElementOnScreen(pedsz)) then return false end dxDrawText("Zombie", sX+460, sY-627, sX+155, sY-19-(32*7), tocolor(0,0,0, 255), 1.5, font, "left", "top") dxDrawText("Zombie", sX+461.5, sY-625.5, sX+153.5, sY-17.5-(32*7), tocolor(204, 204, 204, 255), 1.5, font, "left", "top") local healthA = dxDrawRectangle(sX+420, sY-600,150, 12, tocolor(241, 236, 253, 114), false) local health = getElementHealth(pedsz) local lineLength = 100 * (health / 100) local healthB = dxDrawRectangle(sX+423, sY-597,lineLength, 7, tocolor(9, 172, 213, 254), false) end end end addEventHandler("onClientRender", root, healthbar) Hello All, its simple zombie health bar codes.dxDrawText and dxDrawRectangle look successful.but zombie is losing health but,health bar is doesnt go down sometimes even when ı aim at the zombies,health bar does not appear what can ı do for it ? Can my math. be wrong ?
  9. Hello, This is a simple rank tag on the players head.but how can ı destroy this tag when riding the vehicle ? this nametag needs to disappear while riding the vehicle.can someone help me ? addEventHandler( "onClientRender",root, function( ) local px, py, pz, tx, ty, tz, dist px, py, pz = getCameraMatrix( ) for _, v in ipairs( getElementsByType 'player' ) do --if(player ~= localPlayer) then tx, ty, tz = getElementPosition( v ) dist = math.sqrt( ( px - tx ) ^ 2 + ( py - ty ) ^ 2 + ( pz - tz ) ^ 2 ) if dist < 30.0 then if isLineOfSightClear( px, py, pz, tx, ty, tz, true, false, false, true, false, false, false,localPlayer ) then local sx, sy, sz = getPedBonePosition( v, 6 ) local x,y = getScreenFromWorldPosition( sx, sy, sz +1.5 ) if x then -- getScreenFromWorldPosition returns false if the point isn't on screen dxDrawLine3D ( sx, sy, sz+0.2,sx, sy, sz+1.35, tocolor ( 0, 210,0, 90 ), 1.45,false) dxDrawText( "Warrior", x-9.5, y, x, y, tocolor(0,210,0,150), 0.85 + ( 15 - dist ) * 0.035, "default-bold" ) end end end end end )
  10. O problema que estou enfrentado é que estou conseguindo criar um ped(pedestre), mas não estou conseguindo rotacioná-lo. ped = createPed( 20 , 1847.7277832031 , -1873.6942138672 , 13.578125 , 0.01, false) Obs.: o quinto argumento deve ser um número float, tentei colocar vários outros (do que está no acima), como 0.1, 0.13, 1.5, 1.932 e a rotação não acontece.
  11. ı downloaded gta 4 animations for my server but only local player see the animations.how can ı change local player to 'player'.ı didint put on serverside its not worked.anybody can help me ? local animTable = { ifp = {}, anims = { "abseil", "ARRESTgun", "ATM", "BIKE_elbowL", "BIKE_elbowR", "BIKE_fallR", "BIKE_fall_off", "BIKE_pickupL", "BIKE_pickupR", "BIKE_pullupL", "BIKE_pullupR", "bomber", "CAR_alignHI_LHS", "CAR_alignHI_RHS", "CAR_align_LHS", "CAR_align_RHS", "CAR_closedoorL_LHS", "DAM_armL_frmLT", "DAM_armR_frmBK", "DAM_armR_frmFT", "DAM_armR_frmRT", "DAM_LegL_frmBK", "SHOT_leftP", "SHOT_partial", "SHOT_partial_B", "SHOT_rightP", "Shove_Partial", "Smoke_in_car", "sprint_civi", "sprint_panic", "Sprint_Wuzi", "swat_run", "Swim_Tread", "Tap_hand", "Tap_handP", "turn_180", "Turn_L", "Turn_R", "WEAPON_crouch", "XPRESSscratch" } } addEventHandler("onClientResourceStart", resourceRoot, function() animTable.ifp["block"] = "ped" animTable.ifp["ifp"] = engineLoadIFP("ped.ifp", animTable.ifp["block"]) for _, v in ipairs(animTable.anims) do engineReplaceAnimation(localPlayer, "ped", v, animTable.ifp["block"], v) end end )
  12. I want to add name of the 'car owner' on the car.ı maked some codes but not working.my car shop resource owner element data is "owner" but still ı cant add dx tag name on the car.can someone help me ? maybe ı cant see my mistakes. local fontP = dxCreateFont( "normal.ttf", 20 ) local SX,SY = guiGetScreenSize() local px,py = 1366,768 local sx,sy = (SX/px), (SY/py) function drawCarTags() for k, veh in pairs(getElementsByType("vehicle", resourceRoot, true)) do local cx, cy, cz, lx, ly, lz = getCameraMatrix() local px, py, pz = getElementPosition(veh) local dist = getDistanceBetweenPoints3D(cx, cy, cz, px, py, pz) if dist < 60 then if( isLineOfSightClear(cx, cy, cz, px, py, pz, true, false, false) ) then local x, y = getScreenFromWorldPosition (px, py, pz + 1) if(x and y) then local owner = getElementData(veh, "owner") if (owner and getPlayerFromName(owner)) then local h = dxGetFontHeight(sy*0.8, fontP) local w = dxGetTextWidth(owner, sy*0.8, fontP) dxDrawText(owner, x - w / 2, y + h*-2, w, h, tocolor(getPlayerNametagColor(getPlayerFromName(owner))), sy*0.8, fontP) end end end end end end addEventHandler("onClientRender", root, drawCarTags)
  13. Hello Guys ı was enabled friendlyfire for some tests but now ı deleted friendlyfire.But still teams cant kill each other.and ı maked some codes but still teams cant kill each other.what can ı do for this ? local allTeams = getElementsByType ( "team" ) for index, theTeam in ipairs(allTeams) do if ( getTeamFriendlyFire ( theTeam ) == true ) then setTeamFriendlyFire ( theTeam, false ) end end
  14. ı want add specific panel for Hells Angels group.but still everyone can open with /grouppanel command.what s my wrong friends ? client : function OpenWin() if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) end end addCommandHandler('grouppanel', OpenWin) addEvent( "onGreet", true ) addEventHandler( "onGreet", localPlayer, OpenWin ) server : function panel(source) if getElementData(source, "Group") == "HellsAngels" then triggerClientEvent ( source, "onGreet", source ) end end addEventHandler ( "onResourceStart", root, panel )
  15. Hi Community My codes make sense.when zombies hit the zone they dying but zombies still spawning and 2 seconds later dying in anti zombie zone.ı stuck to it!ı have seen some topics like this,but problems are not solved. what can ı do for disable zombie spawn in these zone ? someone help me ? ı took screenshot :https://pasteboard.co/I5Owj3n.png zones = { { 1102.84851, -2076.73242, 50.39820, 140.31323242188, 86.654296875, 38.136251831055}, { 93.98439, 1797.64380, 10.64063, 183.03248596191, 143.92370605469, 25.82357254028}, {253.78212, 660.28491, -100.31984, 553.6088104248, 391.908203125, 132.129859352112}, {-2099.59644, -282.63025, 33.46355, 89.87451171875, 206.22969055176, 34.355757141113}, } for i,v in pairs(zones) do local x, y, z, width, height, depth = unpack(zones[i]) col = createColCuboid ( x, y, z, width, height, depth) setElementData(col, "zombieProof", true) end addEventHandler("onColShapeHit", root, function(hiter) if getElementData(source,"zombieProof") == true and getElementType(hiter) == "ped" then if getElementData(hiter, "zombie") then destroyElement(hiter) end end end)
  16. I want disable PvP in Las Venturas, San Fierro,Los Santos and ı created some codes.but when ı burn or fall, ı dont lose health.ı just want disable player vs. player(pvp).someone help me ? what is my wrong ? cities = { ["Los Santos"] = true, ["San Fierro"] = true, ["Las Venturas"] = true, } addEventHandler ( "onClientPlayerDamage", root,function( attacker, weapon, bodypart ) local x,y,z = getElementPosition(localPlayer) local city = getZoneName(x,y,z, true) if cities[city] then if getElementType(attacker) == "player" then cancelEvent() end end end)
  17. Hi guys this codes giving money pickup after the ped kill.but ı need make 5 money pickup.how can ı create pickups table ? ı tried but didnt work.someone help me ? thanks function money (theKiller) if (source == nemesiR) then x,y,z = getElementPosition ( nemesiR ) ---get Element position(zombie that dead)position money = createPickup ( x + 1,y,z, 3, 1212,0 ) if money then function GivePlayerMoney (theKiller) givePlayerMoney ( theKiller, 5000 ) destroyElement ( source ) end addEventHandler ( "onPickupHit", money, GivePlayerMoney ) end end return end addEvent( "onBotWasted",true ) addEventHandler ("onBotWasted",getRootElement(),money)
  18. Hello all ı want remove the leaves of trees.months ago ı was saw this resource in some mta sa sites but now ı cant find I can use removeWorldObject but ID's of leaves is unknown.Can someone help me for this ? Screenshot : https://ibb.co/d5hkvpf
  19. Hello All, Why ı cant create rank in scoreboard when players kill players ? just it creating 'Rango' on scoreboard but ranks is not created.please help me thanks. exports.scoreboard:addScoreboardColumn('Rango') addEventHandler("onPlayerSpawn",root, function() local account = getPlayerAccount(source) local kills = getAccountData(account,"kills") if (kills >= 0) and (kills <= 4) then setAccountData ( account, "Rango", "Nuevo" ) elseif (kills >= 5) and (kills <= 99) then setAccountData ( account, "Rango", "Iniciado" ) elseif (kills >= 100) and (kills <= 249) then setAccountData ( account, "Rango", "Aficionado" ) elseif (kills >= 250) and (kills <= 499) then setAccountData ( account, "Rango", "Amateur" ) elseif (kills >= 500) and (kills <= 999) then setAccountData ( account, "Rango", "Asesino" ) elseif (kills >= 1000) and (kills <= 1499) then setAccountData ( account, "Rango", "Maestro" ) elseif (kills >= 1500) and (kills <= 1999) then setAccountData ( account, "Rango", "Cannibal" ) elseif (kills >= 2000) and (kills <= 2999) then setAccountData ( account, "Rango", "Rampager" ) elseif (kills >= 3000) and (kills <= 3999) then setAccountData ( account, "Rango", "Monster" ) elseif (kills >= 4000) and (kills <= 4999) then setAccountData ( account, "Rango", "Blooder" ) elseif (kills >= 5000) and (kills <= 5999) then setAccountData ( account, "Rango", "ZombieKiller" ) elseif (kills >= 5000) and (kills <= 5999) then setAccountData ( account, "Rango", "HeadShooter" ) elseif (kills >= 6000) and (kills <= 6999) then setAccountData ( account, "Rango", "Animal" ) elseif (kills >= 7000) and (kills <= 7999) then setAccountData ( account, "Rango", "Depredador" ) elseif (kills >= 8000) and (kills <= 8999) then setAccountData ( account, "Rango", "Psicopata" ) elseif (kills >= 9000) and (kills <= 10000000) then setAccountData ( account, "Rango", "PsykoKiller" ) end end ) addEventHandler("onPlayerSpawn",root, function () local cuenta = getPlayerAccount(source) if isGuestAccount(cuenta) then return end local rango = getAccountData(cuenta,"Rango") if rango then setElementData(source,"Rango", rango) end end )
  20. hi guys ı just need ask a question.ı am searching for this but ı cant found.ı tried fxAddBlood but it didnt work like this.ı can make texture or shader but ı dont know what is blood ID ı need make blood effect like this. If someone knows who can help?
  21. Hello all All is good but my serverside is bad.i cant make it.can you help me ? I entered marker and GUI is working but i cant warp to coordinates.please help.i mean i didnt triggered server event. Clientside : GUIEditor = { Button = {}, window = {}, label = {} } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 313) / 2, (screenH - 109) / 2, 313, 109, "konu basligi", false) guiWindowSetSizable(GUIEditor.window[1],false) GUIEditor.label[1] = guiCreateLabel (37, 28, 236, 16, (" soru sorma yeri ? "), false, GUIEditor.window.[1]) guiSetFont (GUIEditor.label[1], "default-bold-small") guiLabelHorizontalAlign(GUIEditor.label[1],"center", false) GUIEditor.button[1] = guiCreateButton (25, 66,129,32, "evet", false,GUIEditor.window[1]) guiSetPropert(GUIEditor.button[1], "normalTextColour","FFAAAAAA") GUIEditor.button[2] = guiCreateButton(154,66,129,32, "Hayir",false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "normalTextColour", "FFAAAAAA") guiSetVisible (GUIEditor.window[1],false) local enabled = true Mark = {1507.73,2842.96,10.82}, {-310.012,1583.59,75.56}, {-2125.71,272.62,35.48}, } for k, v in ipairs (Mark) do z = v[3] -1 Marker = createMarker (v[1], v[2], z, "cylinder", 2, 255,255,0,0) setElementData (Marker,"markerPurpose","Arena") addEventHandler ("onClientMarkerHit",Marker, function (hit) if hit == localPlayer then if not enabled then exports.topBarChatMessage ( "test",2000) return end if isPedInVehicle (localPlayer) then return end guiSetVisible ( GUIEditor.window[1],true) ShowCursor (true) guiSetText (GUIEditor.label[1],"Arenaya girmek istiyor musun ?")) playSound ("tus.wav") end end) end addEventHandler ("onClientGuiClick",root,function() if source == GUIEditor.button[1] then guiSetVisible (GUIEditor.window[1],false) showCursor (false) triggerServerEvent ("warphal",localPlayer) playSound ("kabul.mp3") else if source ==GUIEditor.button[2] then guiSetVisible (GUIEditor.window[1],false) showCursor (false) playSound ("hadi.mp3") end end) addEvent ("montana",true) addEventHandler ("montana",root,function() guiSetVisible (GUIEditor.window[1],true) guiSetText (GUIEditor.label[1],("girmek istermisin ?")) showCursor (true) end) Server side: addEvent("warphal", true) addEventHandler("warphal",root,spawn) local spawns = { {2014.47,1523.71,10.81}, {2023.47,1437.71,10.81}, {2121.47,1481.71,10.81}, {1928.47,1482.71,10.81} } function spawn (localPlayer) local rnd = math.random 1, #spawns) setElementPosition ( localPlayer, spawns [rnd][1],spawns [rnd][2],spawns [rnd][3]) end
  22. Hello friends can you give me an idea? Which function or event need for this ? I want put this lines on my zones.please help i just need functions.i am sharing image.thanks https://imgur.com/a/7ICvqql
  23. Hi guys ı am using top bar messages but ı want add sound when script sending top bar messages.ı added some codes but it not worked.would you like to help me please ? thanks now. Clientside : local useTopbar = true local joinquit = true local namechanges = true local sx, sy = guiGetScreenSize ( ) local rsx, rsy = sx / 1280, sy / 1024 addEvent ( "onClientPlayerLogin", true ) addEventHandler ( "onClientPlayerLogin", root, function ( ) --useTopbar = tobool ( exports.NGPhone:getSetting ( "usersettings_usetopbar" ) ) --joinquit = tobool ( exports.NGPhone:getSetting ( "usersetting_notification_joinquitmessages" ) ) --namechanges = tobool ( exports.NGPhone:getSetting ( "usersetting_notification_nickchangemessages" ) ) if not useTopbar then useTopbar = false removeEventHandler ( "onClientRender", root, dxDrawNotificationBar ) end end ) addEvent ( "onClientUserSettingChange", true ) addEventHandler ( "onClientUserSettingChange", root, function ( g, v ) if ( g == "usersettings_usetopbar" ) then if not tobool ( v ) and useTopbar then useTopbar = false removeEventHandler ( "onClientRender", root, dxDrawNotificationBar ) elseif tobool ( v ) and not useTopbar then useTopbar = true addEventHandler ( "onClientRender", root, dxDrawNotificationBar ) end elseif ( g == "usersetting_notification_joinquitmessages" ) then joinquit = v elseif ( g == "usersetting_notification_nickchangemessages" ) then namechanges = v end end ) local maxMessages = 5; local DefaultTime = 8; local moveSpeed = 2; local sx, sy = guiGetScreenSize ( ) local DefaultPos = true; local messages_top = { } local toDo = { } local messageDelay = 500 local TheResourceName = getResourceName ( getThisResource ( ) ) local lastAutoMessage = 1 local t = 0 function sendClientMessage ( msg, r, g, b, img, checkImgPath ) if ( checkImgPath == nil ) then checkImgPath = true; end if ( img and sourceResource and checkImgPath ) then img = ":"..tostring(getResourceName(sourceResource)).."/"..img; end return _sendClientMessage ( msg, r, g, b, img ); end --tostring ( msg ), tonumber ( r ) or 255, tonumber ( g ) or 255, tonumber ( b ) or 255 function _sendClientMessage ( msg, r, g, b, img ) if ( useTopbar ) then --if ( not exports.NGLogin:isClientLoggedin ( ) ) then return end local msg, r, g, b = tostring ( msg ), tonumber ( r ) or 255, tonumber ( g ) or 255, tonumber ( b ) or 255 local img = img or ""; if ( img ~= "" and not fileExists ( img ) ) then img = "" end local data = { msg, r, g, b, getTickCount ( ) + DefaultTime*1000, -25, true, img } if ( getTickCount ( ) - t >= messageDelay ) then table.insert ( messages_top, data ) t = getTickCount ( ) else table.insert ( toDo, data ) end else outputChatBox ( msg, r, g, b ) sound = playSound ("notif.wav") end end addEvent ( TheResourceName..":sendClientMessage", true ) addEventHandler ( TheResourceName..":sendClientMessage", root, _sendClientMessage ) local width = (sx/1.95) local t2 = getTickCount ( ) --[[ .:Table Format:. [1] = message, [2] = red count, [3] = green count, [4] = blue count, [5] = Remove Time, [6] = Y Axis, [7] = Is Locked, [8] = Image icon path ]] function dxDrawNotificationBar ( ) if ( #toDo > 0 and getTickCount ( ) -t >= messageDelay ) then local d = toDo[1] d[5] = getTickCount ( ) + DefaultTime*1000 table.insert ( messages_top, d ) table.remove ( toDo, 1 ) t = getTickCount ( ) end local doRemove = { } for i, v in pairs ( messages_top ) do local i = i - 1 local msg, r, g, b, rTime, y = unpack ( v ) local continue = true if ( rTime < getTickCount ( ) and v[7] ) then messages_top[i+1][7] = false end if ( v[7] ) then if ( messages_top[i] ) then toY = messages_top[i][6] + 25 else toY = 0 end if ( y ~= toY ) then if ( y < toY ) then y = y + moveSpeed if ( y > toY ) then y = toY end else y = y - moveSpeed if ( y < toY ) then y = toY end end else if ( #messages_top > maxMessages ) then messages_top[1][5] = 0 messages_top[1][7] = false end end else y = y - moveSpeed if ( y < -25 ) then continue = false end end messages_top[i+1][6] = y local lColor = tocolor ( 0, 0, 0, 255 ) dxDrawRectangle ( (sx/2-width/2), rsy*y, width, rsy*25, tocolor ( 0, 0, 0, 100 ) ) dxDrawLine ( (sx/2-width/2), rsy*y, (sx/2-width/2)+width, rsy*y, lColor ) dxDrawLine ( (sx/2-width/2), rsy*y, (sx/2-width/2), rsy*(y+25), lColor ) dxDrawLine ( (sx/2+width/2), rsy*y, (sx/2+width/2), rsy*(y+25), lColor ) dxDrawLine ( (sx/2+width/2)-width, rsy*(y+25), (sx/2+width/2), rsy*(y+25), lColor ) if ( v[8] and v[8] ~= "" ) then dxDrawImage ( (sx/2-width/2)+3, (rsy*y)+2, rsx*21, rsy*21, v[8] ); dxDrawImage ( (sx/2-width/2)+(width-25), (rsy*y)+2, rsx*21, rsy*21, v[8] ); end dxDrawText ( v[1], 0, rsy*y, sx, rsy*(y+25), tocolor ( 200,200,200, 255 ), rsx*1, "sans", "center", "center", true, false, false, true ) --v[2], v[3], v[4], if ( not continue ) then table.insert ( doRemove, i+1 ) end end if ( #doRemove > 0 ) then for i, v in ipairs ( doRemove ) do if ( messages_top [ v ] ) then table.remove ( messages_top, v ) end end end end addEventHandler ( "onClientRender", root, dxDrawNotificationBar ) function tobool ( input ) local input = tostring ( input ):lower ( ) if ( input == "true" ) then return true elseif ( input == "false" ) then return false else return nil end end --[[ addCommandHandler ( 'rt', function ( ) for i=1,5 do sendClientMessage ( tostring ( i ), 255, 255, 0 ) end end ) ]] -- join/quit messages addEventHandler ( "onClientPlayerJoin", root, function ( ) if joinquit then sendClientMessage ( "* "..getPlayerName(source).." sunucuya giriş yaptı!", 255, 150, 150 ) end end ) addEventHandler ( "onClientPlayerQuit", root, function ( r ) if ( joinquit ) then sendClientMessage ( "* "..getPlayerName(source).." sunucudan çıkış yaptı. ("..r..")", 255, 150, 150 ) end end ) -- Nickname changes addEventHandler ( "onClientPlayerChangeNick", root, function ( o, n ) sendClientMessage ( "* "..o.." artık şu isimle tanınıyor : "..n, 255, 150, 150 ) end ) function message (messagesound) local sound = playSound("notif.wav") setSoundVolume(sound, 0.8) end addEventHandler("onClientRender", localPlayer, message)
  24. Hello all, I want give m4 to player when he first join.but my code not working.whats my mistake.can you help me ?
  25. http://rbwhitaker.wikidot.com/hlsl-tutorials Hello Guys, I wan't to ask, can someone help me to do a hlsl Shader / Dvo script for cars layouts i have... Like this: