Jump to content

Search the Community

Showing results for tags 'fix'.

  • 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
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

  1. function findPlayer(name) local matches = {} for i,v in ipairs(getElementsByType("player")) do if getPlayerName(v) == name then return v end local playerName = getPlayerName(v):gsub("#%x%x%x%x%x%x", "") playerName = playerName:lower() if playerName:find(name:lower(), 0) then table.insert(matches, v) end end if #matches == 1 then return matches[1] end return false end addCommandHandler("pay", function(player, cmd, name, amount) local amount = tonumber(amount) if name and amount then local target = findPlayer(name) local money = getPlayerMoney(target) if money >= amount then takePlayerMoney(player, amount) givePlayerMoney(target, amount) outputChatBox("#FFffFF Átutaltál neki: #c8c8c8" .. getPlayerName(target) .. " #0088ff" .. amount .. " Forintot.", player, 0, 255, 0, true) outputChatBox("#c8c8c8 " .. getPlayerName(player) .. " #FFffFFutalt neked #0088ff" .. amount .. " Forintot.", target, 0, 255, 0, true) else outputChatBox("#FFffFF Nincs elég pénzed.", target, 255, 0, 0, true) end end end ) why can i 'pay' minus amount? how to fix this?
  2. local screenW, screenH = guiGetScreenSize() addEventHandler("onClientRender", root, function() dxDrawRectangle(screenW * 0.0021, screenH * 0.7356, screenW * 0.2104, screenH * 0.0367, tocolor(0, 0, 0, 164), false) dxDrawText(text, screenW * 0.0014, screenH * 0.7367, screenW * 0.2125, screenH * 0.7722, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, true, false) end ) addEventHandler("onClientPlayerJoin", root, function() local l_2_0 = getPlayerName(source) text = "#00ff00" .. l_2_0 .. " csatlakozott!" pic = "j" end ) addEventHandler("onClientPlayerQuit", root, function(l_3_0) local l_3_1 = getPlayerName(source) text = "#FF0000" .. l_3_1 .. " lelépett!" pic = "q" end ) addEventHandler("onClientPlayerChangeNick", root, function(l_4_0, l_4_1) text = "" .. l_4_0 .. "#00FF00 Új neve #00BAFF: " .. l_4_1 .. "" pic = "c" end ) fileDelete("client.lua") and i got this warning: : 6 : bad argument 'dxDrawText' [expected string at argument 1, got nil] how to fix this?
  3. When i type a big character, the script mute me.. But i want, when i type more than one big character, then mute me. How to fix this? /sorry for my bad english/ code: (server only) addEventHandler('onPlayerChat',getRootElement(),function(key) if string.byte(key) > 40 and string.byte(key) < 91 then -- pressed an alphabedical symbol with CAPS LOCK ON! setPlayerMuted( source, true ) gPlayerMuteTimer[ source ] = setTimer( unmutePlayer, gSettings.muteTime * 1000, 1, source ) outputChatBox( "#14B866[M] #FF699CPlaybot#898395: #696969Ne írj csupa nagybetűvel a chatben. Köszi! (#ffFFff"..getPlayerName(source).."#696969) (mute)", root, 255, 0, 0, true ) end end)
  4. -- client -- function boom ( ) local pX, pY, pZ = getElementPosition ( getLocalPlayer() ) createExplosion ( pX+3, pY+3, pZ, 2 ) createExplosion ( pX-3, pY-3, pZ, 2 ) createExplosion ( pX+5, pY-2, pZ, 2 ) createExplosion ( pX-4, pY+4, pZ, 2 ) end addEvent( "rob", true ) addEventHandler( "rob", root, boom ) -- server -- function robbant(p,s) if hasObjectPermissionTo(p,"command.rob") then triggerClientEvent(getRootElement(),"rob",getRootElement()) end end addCommandHandler("rob",robbant) When i type 'rob', explode everyone.. Why? How to fix this?
  5. function checkAFKPlayers() for index, source in ipairs(getElementsByType("player")) do if (getPlayerIdleTime(source) > 1000) then setElementDimension ( source, 50) setElementAlpha(source, 50) outputChatBox("#004B00[DDC - Afk] #FFffFFNem mozogtál 2 percig, afk módba léptél! Kikapcsoláshoz mozdulj meg!", root, 255,000,000, true) elseif isElementMoving(source) then setElementAlpha(source, 255) setElementDimension ( source, 0) outputChatBox("#004B00[DDC - Afk] #FFffFFKiléptél az afk módból!", root, 255,000,000, true) end end end setTimer(checkAFKPlayers, 1000, 0) function isElementMoving ( theElement ) if isElement ( theElement ) then local x, y, z = getElementVelocity( theElement ) return x ~= 0 or y ~= 0 or z ~= 0 end return false end how to fix this? i want once outputChatbox
  6. Heyo, so recently I got an awesome toptimes resource from a friend and today I fixed the positions of all elements drawn with dxDraw so that the toptimes window doesn't go outside of screen boundary on any resolution. So far, so good. But there is one problem, I don't know how to fix the elements' size to be same for all resolutions. I tried with something like " local x_,y_ = x/1680,y/1080 " and put " *y_ " after the size but it still looks ugly, also tried more combinations such as " x/1440,y/900 " and so on, to no success. Below is just the function which draws the F5 tops window, I always had trouble with fixing the size and here i am again, same problem...for the Nth time. Any help is appreciated. sX,sY = guiGetScreenSize() function drawToptimesIntreface() local x,y = guiGetScreenSize() if toptimes.animState == "closed" then local tick = getTickCount() - toptimes.tick local progress = tick/1000 toptimes.anim = interpolateBetween(0,0,0,390,0,0,progress,"OutBack") else local tick = getTickCount() - toptimes.tick local progress = tick/1000 toptimes.anim = interpolateBetween(390,0,0,0,0,0,progress,"InBack") end local clanColor = tocolor(255, 205, 0, 255) -- Clan Color local titleColor = tocolor(0, 255, 255, 255) -- Toptimes Title local displayColor = tocolor(0, 0, 0, 150) -- Toptimes Blackground if toptimes.state then local sY = sY-toptimes.anim*1.2 dxDrawRectangle(sX-x*0.4354166666666667, (sY/2)-y*0.5, x*0.1979166666666667, y*0.0231481481481481, clanColor) dxDrawText("Toptimes - "..toptimes.mapname, sX-x*0.6713541666666667, (sY/2)-y*0.8509259259259259,sX-x*0.0046875, (sY/2)-y*0.1240740740740741, tocolor(0,0,0,255), 1, "default-bold","center","center",true) dxDrawText("Toptimes - "..toptimes.mapname, sX-x*0.671875, (sY/2)-y*0.8518518518518519, sX-x*0.0052083333333333, (sY/2)-y*0.125, titleColor, 1, "default-bold", "center","center",true) dxDrawRectangle(sX-x*0.4354166666666667, (sY/2)-y*0.4768518518518519, x*0.1979166666666667, y*0.1666666666666667, displayColor) for i=1,9 do -- Show when player have toptime in any map dxDrawRectangle(sX-x*0.4354166666666667, (sY/2)+((i-1)*20)-y*0.4759259259259259, x*0.1979166666666667, y*0.017022792022792, tocolor(255,255,255,toptimes.color[i])) end for i=1,9 do -- Shadow dxDrawText(i..". "..removeColorCoding(toptimes.label[i]), sX-x*0.4310416666666667, (sY/2)+((i-1)*20)-y*0.8277777777777778, sX-x*0.0244791666666667, (sY/2)+((i)*20)-y*0.1240740740740741, tocolor(0,0,0,255), 1, "default-bold","left","center",true,false,false,true) dxDrawText(toptimes.time[i], sX-x*0.3132291666666667, (sY/2)+((i-1)*20)-y*0.8277777777777778, sX-x*0.0244791666666667, (sY/2)+((i)*20)-y*0.1240740740740741, tocolor(0,0,0,255), 1, "default-bold","left","center",true,false,false,true) dxDrawText(toptimes.data[i], sX-x*0.2744791666666667, (sY/2)+((i-1)*20)-y*0.8277777777777778, sX-x*0.0244791666666667, (sY/2)+((i)*20)-y*0.1240740740740741, tocolor(0,0,0,255), 1, "default-bold","left","center",true,false,false,true) -- dxDrawText(i..". "..toptimes.label[i], sX-x*0.4315625, (sY/2)+((i-1)*20)-y*0.8287037037037037, sX-x*0.025, (sY/2)+((i)*20)-y*0.125, tocolor(255,255,255,255), 1, "default-bold","left","center",true,false,false,true) dxDrawText(toptimes.time[i], sX-x*0.31375, (sY/2)+((i-1)*20)-y*0.8287037037037037, sX-x*0.025, (sY/2)+((i)*20)-y*0.125, tocolor(255,255,255,255), 1, "default-bold","left","center",true,false,false,true) dxDrawText(toptimes.data[i], sX-x*0.275, (sY/2)+((i-1)*20)-y*0.8287037037037037, sX-x*0.025, (sY/2)+((i)*20)-y*0.125, tocolor(255,255,255,255), 1, "default-bold","left","center",true,false,false,true) if toptimes.country[i] ~= "" then if fileExists(":admin/client/images/flags/"..toptimes.country[i]..".png") then dxDrawImage(sX-x*0.4227083333333333, (sY/2)+((i-1)*20)-y*0.4731481481481481, x*0.0083333333333333, y*0.0101851851851852, ":admin/client/images/flags/"..toptimes.country[i]..".png", tocolor(255,255,255,255)) end else if fileExists(":admin/client/images/flags/gtasa.png") then dxDrawImage(sX-x*0.4227083333333333, (sY/2)+((i-1)*20)-y*0.4731481481481481, x*0.0083333333333333, y*0.0101851851851852, ":admin/client/images/flags/gtasa.png", tocolor(255,255,255,255)) end end end if toptimes.personal[1] then dxDrawRectangle(sX-x*0.4354166666666667, (sY/2)-y*0.3101851851851852, x*0.1979166666666667, y*0.017592592592596, displayColor) dxDrawRectangle(sX-x*0.4354166666666667, (sY/2)-y*0.3089506172839506, x*0.1979166666666667, y*0.0166666666666667, tocolor(255,255,255,100)) -- Shadow dxDrawText(""..toptimes.personal.pos..". "..toptimes.personal.spacement..removeColorCoding(toptimes.personal.name), sX-x*0.4341666666666667, (sY/2)-y*0.6673611111111111, sX-x*0.0244791666666667, (sY/2)+y*0.0668981481481481, tocolor(0,0,0,255), 1, "default-bold","left","center",true,false,false,true) dxDrawText(toptimes.personal.time, sX-x*0.3132291666666667, (sY/2)-y*0.6645833333333333, sX-x*0.0244791666666667, (sY/2)+y*0.0641203703703704, tocolor(0,0,0,255), 1, "default-bold","left","center",true,false,false,true) dxDrawText(toptimes.personal.data, sX-x*0.2744791666666667, (sY/2)-y*0.6645833333333333, sX-x*0.0244791666666667, (sY/2)+y*0.0641203703703704, tocolor(0,0,0,255), 1, "default-bold","left","center",true,false,false,true) -- dxDrawText(""..toptimes.personal.pos..". "..toptimes.personal.spacement..toptimes.personal.name, sX-x*0.4346875, (sY/2)-y*0.668287037037037, sX-x*0.025, (sY/2)+y*0.0659722222222222, tocolor(255,255,255,255), 1, "default-bold","left","center",true,false,false,true) dxDrawText(toptimes.personal.time, sX-x*0.31375, (sY/2)-y*0.6655092592592593, sX-x*0.025, (sY/2)+y*0.0631944444444444, tocolor(255,255,255,255), 1, "default-bold","left","center",true,false,false,true) dxDrawText(toptimes.personal.data, sX-x*0.275, (sY/2)-y*0.6655092592592593, sX-x*0.025, (sY/2)+y*0.0631944444444444, tocolor(255,255,255,255), 1, "default-bold","left","center",true,false,false,true) if toptimes.personal.country ~= "" then if fileExists(":admin/client/images/flags/"..toptimes.personal.country..".png") then dxDrawImage(sX-x*0.4227083333333333, (sY/2)-y*0.30625, x*0.0083333333333333, y*0.0101851851851852, ":admin/client/images/flags/"..toptimes.personal.country..".png", tocolor(255,255,255,255)) end else if fileExists(":admin/client/images/flags/gtasa.png") then dxDrawImage(sX-x*0.4227083333333333, (sY/2)-y*0.30625, x*0.0083333333333333, y*0.0101851851851852, ":admin/client/images/flags/gtasa.png", tocolor(255,255,255,255)) end end end end end addEventHandler("onClientRender",getRootElement(),drawToptimesIntreface) This is how it should look like, on any screen :
  7. --client local GUIEditor = { tab = {}, tabpanel = {}, label = {}, button = {}, window = {} } GUIEditor.window[1] = guiCreateWindow(0.32, 0.29, 0.37, 0.29, "[DDC]© Fegyverbolt /turbesz\"", true) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.button[1] = guiCreateButton(0.02, 0.91, 0.96, 0.05, "bezárás", true, GUIEditor.window[1]) GUIEditor.tabpanel[1] = guiCreateTabPanel(0.02, 0.08, 0.96, 0.80, true, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("#1", GUIEditor.tabpanel[1]) GUIEditor.label[1] = guiCreateLabel(0.01, 0.00, 0.99, 0.29, "M4 - 5000 tölténnyel", true, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetHorizontalAlign(GUIEditor.label[1], "left", true) GUIEditor.button[2] = guiCreateButton(0.01, 0.27, 0.99, 0.12, "Kérem ezt! Ár: 3000$!", true, GUIEditor.tab[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF24FE00") GUIEditor.label[2] = guiCreateLabel(0.01, 0.38, 0.99, 0.29, "AK47 - 5000 tölténnyel", true, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[2], "sa-header") guiLabelSetHorizontalAlign(GUIEditor.label[2], "left", true) GUIEditor.button[3] = guiCreateButton(0.00, 0.67, 0.99, 0.12, "Kérem ezt! Ár: 2500$!", true, GUIEditor.tab[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF24FE00") GUIEditor.label[3] = guiCreateLabel(0.11, 0.85, 0.78, 0.10, "Folytatást a következő fülön találhatsz! ;)", true, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 251, 248, 2) GUIEditor.tab[2] = guiCreateTab("#2", GUIEditor.tabpanel[1]) GUIEditor.label[4] = guiCreateLabel(0.01, 0.05, 0.97, 0.30, "9MM - 4000 Tölténnyel", true, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[4], "sa-header") GUIEditor.button[4] = guiCreateButton(0.01, 0.37, 0.97, 0.12, "Kérem ezt! Ár: 2000$!", true, GUIEditor.tab[2]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFBF802") GUIEditor.label[5] = guiCreateLabel(0.01, 0.48, 0.98, 0.27, "Uzi - 4000 Tölténnyel", true, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[5], "sa-header") GUIEditor.button[5] = guiCreateButton(0.01, 0.78, 0.97, 0.12, "Kérem ezt! Ár: 2500$!", true, GUIEditor.tab[2]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFFBF802") GUIEditor.tab[3] = guiCreateTab("#3", GUIEditor.tabpanel[1]) GUIEditor.label[6] = guiCreateLabel(0.02, 0.04, 0.96, 0.29, "RPG - 100 Tölténnyel", true, GUIEditor.tab[3]) guiSetFont(GUIEditor.label[6], "sa-header") GUIEditor.button[6] = guiCreateButton(0.01, 0.31, 0.97, 0.13, "Kérem ezt! Ára: 300000$!", true, GUIEditor.tab[3]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF01C4B8") GUIEditor.label[7] = guiCreateLabel(0.02, 0.45, 0.96, 0.29, "M.lövész - 100 Tölténnyel", true, GUIEditor.tab[3]) guiSetFont(GUIEditor.label[7], "sa-header") GUIEditor.button[7] = guiCreateButton(0.01, 0.77, 0.97, 0.13, "Kérem ezt! Ára: 50000$!", true, GUIEditor.tab[3]) guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FF01C4B8") GUIEditor.tab[4] = guiCreateTab("#4", GUIEditor.tabpanel[1]) GUIEditor.label[8] = guiCreateLabel(0.02, 0.05, 0.96, 0.10, "MP5 - 3000 Tölténnyel", true, GUIEditor.tab[4]) guiSetFont(GUIEditor.label[8], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[8], "center", false) GUIEditor.button[8] = guiCreateButton(0.09, 0.17, 0.81, 0.11, "Kérem ezt! Ár: 4000$!", true, GUIEditor.tab[4]) GUIEditor.label[9] = guiCreateLabel(0.02, 0.30, 0.96, 0.10, "Tec9 - 3000 Tölténnyel", true, GUIEditor.tab[4]) guiSetFont(GUIEditor.label[9], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[9], "center", false) GUIEditor.button[9] = guiCreateButton(0.09, 0.41, 0.81, 0.11, "Kérem ezt! Ár: 4500$!", true, GUIEditor.tab[4]) GUIEditor.label[10] = guiCreateLabel(0.02, 0.54, 0.96, 0.10, "Shotgun - 2500 Tölténnyel", true, GUIEditor.tab[4]) guiSetFont(GUIEditor.label[10], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[10], "center", false) GUIEditor.button[10] = guiCreateButton(0.09, 0.64, 0.81, 0.11, "Kérem ezt! Ár: 5000$!", true, GUIEditor.tab[4]) GUIEditor.label[11] = guiCreateLabel(0.02, 0.77, 0.96, 0.10, "Lefűrészelt csövű puska - 2500 Tölténnyel", true, GUIEditor.tab[4]) guiSetFont(GUIEditor.label[11], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[11], "center", false) GUIEditor.button[11] = guiCreateButton(0.09, 0.88, 0.81, 0.11, "Kérem ezt! Ár: 5500$!", true, GUIEditor.tab[4]) GUIEditor.tab[5] = guiCreateTab("#5", GUIEditor.tabpanel[1]) GUIEditor.label[12] = guiCreateLabel(0.01, 0.02, 0.97, 0.10, "Hangtompítós pisztoly - 3000 tölténnyel", true, GUIEditor.tab[5]) guiSetFont(GUIEditor.label[12], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[12], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[12], "center") GUIEditor.button[12] = guiCreateButton(0.12, 0.13, 0.75, 0.11, "Kérem ezt! Ára: 1500$!", true, GUIEditor.tab[5]) GUIEditor.label[13] = guiCreateLabel(0.01, 0.24, 0.97, 0.10, "Lángszóró - 3000 tölténnyel", true, GUIEditor.tab[5]) guiSetFont(GUIEditor.label[13], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[13], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[13], "center") GUIEditor.button[13] = guiCreateButton(0.12, 0.36, 0.75, 0.11, "Kérem ezt! Ára: 10000$!", true, GUIEditor.tab[5]) GUIEditor.label[14] = guiCreateLabel(0.01, 0.47, 0.97, 0.10, "Gránát - 50 darab", true, GUIEditor.tab[5]) guiSetFont(GUIEditor.label[14], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[14], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[14], "center") GUIEditor.button[14] = guiCreateButton(0.12, 0.59, 0.75, 0.11, "Kérem ezt! Ára: 15000$!", true, GUIEditor.tab[5]) GUIEditor.label[15] = guiCreateLabel(0.01, 0.70, 0.97, 0.10, "Tapadós bomba - 50 darab", true, GUIEditor.tab[5]) guiSetFont(GUIEditor.label[15], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[15], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[15], "center") GUIEditor.button[15] = guiCreateButton(0.12, 0.84, 0.75, 0.11, "Kérem ezt! Ára: 20000$!", true, GUIEditor.tab[5]) GUIEditor.tab[6] = guiCreateTab("#6", GUIEditor.tabpanel[1]) GUIEditor.label[16] = guiCreateLabel(0.00, 0.03, 0.98, 0.28, "Molotov - 50 darab", true, GUIEditor.tab[6]) guiSetFont(GUIEditor.label[16], "sa-header") GUIEditor.button[16] = guiCreateButton(0.00, 0.33, 0.99, 0.15, "Kérem ezt! Ár: 10000$!", true, GUIEditor.tab[6]) guiSetFont(GUIEditor.button[16], "clear-normal") guiSetProperty(GUIEditor.button[16], "NormalTextColour", "FF4F09FE") GUIEditor.label[17] = guiCreateLabel(0.00, 0.51, 0.98, 0.28, "Könnygáz - 50 darab", true, GUIEditor.tab[6]) guiSetFont(GUIEditor.label[17], "sa-header") GUIEditor.button[17] = guiCreateButton(0.00, 0.80, 0.99, 0.15, "Kérem ezt! Ár: 20000$!", true, GUIEditor.tab[6]) guiSetFont(GUIEditor.button[17], "clear-normal") guiSetProperty(GUIEditor.button[17], "NormalTextColour", "FF4F09FE") guiSetVisible ( GUIEditor.window[1], false ) function OpenWin() if guiGetVisible ( GUIEditor.window[1] ) == false then guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) elseif guiGetVisible ( GUIEditor.window[1] ) == true then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) end end bindKey ( "F2", "down", OpenWin) function bezarom() guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) end addEventHandler("onClientGUIClick", GUIEditor.button[1], bezarom) function m4() triggerServerEvent ("m4",getLocalPlayer(),m4) end addEventHandler("onClientGUIClick", GUIEditor.button[2], m4) function ak47() triggerServerEvent ("ak47",getLocalPlayer(),ak47) end addEventHandler("onClientGUIClick", GUIEditor.button[3], ak47) function kilencmm() triggerServerEvent ("kilencmm",getLocalPlayer(),kilencmm) end addEventHandler("onClientGUIClick", GUIEditor.button[4], kilencmm) function uzi() triggerServerEvent ("uzi",getLocalPlayer(),uzi) end addEventHandler("onClientGUIClick", GUIEditor.button[5], uzi) function rpg() triggerServerEvent ("rpg",getLocalPlayer(),rpg) end addEventHandler("onClientGUIClick", GUIEditor.button[6], rpg) function sniper() triggerServerEvent ("sniper",getLocalPlayer(),sniper) end addEventHandler("onClientGUIClick", GUIEditor.button[7], sniper) function mp5() triggerServerEvent ("mp5",getLocalPlayer(),mp5) end addEventHandler("onClientGUIClick", GUIEditor.button[8], mp5) function tec() triggerServerEvent ("tec",getLocalPlayer(),tec) end addEventHandler("onClientGUIClick", GUIEditor.button[9], tec) function shotgun() triggerServerEvent ("shotgun",getLocalPlayer(),shotgun) end addEventHandler("onClientGUIClick", GUIEditor.button[10], shotgun) function lfcsp() triggerServerEvent ("lfcsp",getLocalPlayer(),lfcsp) end addEventHandler("onClientGUIClick", GUIEditor.button[11], lfcsp) function silenced() triggerServerEvent ("silenced",getLocalPlayer(),silenced) end addEventHandler("onClientGUIClick", GUIEditor.button[12], silenced) function lsz() triggerServerEvent ("lsz",getLocalPlayer(),lsz) end addEventHandler("onClientGUIClick", GUIEditor.button[13], lsz) function granat() triggerServerEvent ("granat",getLocalPlayer(),granat) end addEventHandler("onClientGUIClick", GUIEditor.button[14], granat) function tapados() triggerServerEvent ("tapados",getLocalPlayer(),tapados) end addEventHandler("onClientGUIClick", GUIEditor.button[15], tapados) function molotov() triggerServerEvent ("molotov",getLocalPlayer(),molotov) end addEventHandler("onClientGUIClick", GUIEditor.button[16], molotov) function konnygaz() triggerServerEvent ("konnygaz",getLocalPlayer(),konnygaz) end addEventHandler("onClientGUIClick", GUIEditor.button[17], konnygaz) --server function elso ( ) if getPlayerMoney(source) >= 3000 then giveWeapon ( source, 31, 5000 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 3000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "m4", true ) addEventHandler( "m4", root, elso ) function masodik ( ) if getPlayerMoney(source) >= 2500 then giveWeapon ( source, 30, 5000 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 2500 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "ak47", true ) addEventHandler( "ak47", root, masodik ) function harmadik ( ) if getPlayerMoney(source) >= 2000 then giveWeapon ( source, 22, 4000 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 2000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "kilencmm", true ) addEventHandler( "kilencmm", root, harmadik ) function negyedik ( ) if getPlayerMoney(source) >= 2500 then giveWeapon ( source, 28, 4000 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 2500 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "uzi", true ) addEventHandler( "uzi", root, negyedik ) function otodik ( ) if getPlayerMoney(source) >= 300000 then giveWeapon ( source, 36, 100 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 300000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "rpg", true ) addEventHandler( "rpg", root, otodik ) function hatodik ( ) if getPlayerMoney(source) >= 50000 then giveWeapon ( source, 34, 100 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 50000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "sniper", true ) addEventHandler( "sniper", root, hatodik ) function hetedik ( ) if getPlayerMoney(source) >= 4000 then giveWeapon ( source, 29, 3000 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 4000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "mp5", true ) addEventHandler( "mp5", root, hetedik ) function nyolcadik ( ) if getPlayerMoney(source) >= 4500 then giveWeapon ( source, 32, 3000 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 4500 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "tec", true ) addEventHandler( "tec", root, nyolcadik ) function kilencedik ( ) if getPlayerMoney(source) >= 5000 then giveWeapon ( source, 25, 2500 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 5000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "shotgun", true ) addEventHandler( "shotgun", root, kilencedik ) function tizedik ( ) if getPlayerMoney(source) >= 5500 then giveWeapon ( source, 26, 2500 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 5500 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "lfcsp", true ) addEventHandler( "lfcsp", root, tizedik ) function tizenegyedik ( ) if getPlayerMoney(source) >= 1500 then giveWeapon ( source, 23, 3000 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 1500 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "silenced", true ) addEventHandler( "silenced", root, tizenegyedik ) function tizenkettedik ( ) if getPlayerMoney(source) >= 10000 then giveWeapon ( source, 37, 3000 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 10000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "lsz", true ) addEventHandler( "lsz", root, tizenkettedik ) function tizenharmadik ( ) if getPlayerMoney(source) >= 15000 then giveWeapon ( source, 16, 50 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 15000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "granat", true ) addEventHandler( "granat", root, tizenharmadik ) function tizennegyedik ( ) if getPlayerMoney(source) >= 20000 then giveWeapon ( source, 39, 50 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 20000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "tapados", true ) addEventHandler( "tapados", root, tizennegyedik ) function tizenotodik ( ) if getPlayerMoney(source) >= 10000 then giveWeapon ( source, 18, 50 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 10000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "molotov", true ) addEventHandler( "molotov", root, tizenotodik ) function tizenhatodik ( ) if getPlayerMoney(source) >= 20000 then giveWeapon ( source, 17, 50 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 20000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "konnygaz", true ) addEventHandler( "konnygaz", root, tizenhatodik ) when i click on a tab, my money is decrease, and give me weapons, why? how to fix it?
  8. I need your help. I don't know if this is the right section for such post, i have some problems with Textures in game that disappear while i play, i appear 2-3mins after i join, already tryied reinstalling the game, mta, update system, graphic driver, installing mods, stream fix, different resolutions, windowed/fullscren, streaming memory set on max, low-high graphics, unstable ver. of MTA, nightly ver. of MTA. This problem appears on more than 1 server so it's not serverside. I have a Steam version of San Andreas (a clean one now). My PC:
×
×
  • Create New...