Jump to content

Dimos7

Members
  • Posts

    1,546
  • Joined

  • Last visited

Everything posted by Dimos7

  1. https://community.multitheftauto.com/index.php?p=resources&s=details&id=5030
  2. that functions is all you need for mysql if you want to inters something to table you use dbExec and when you want to take something from it or will use dbExec or dbQuery and table for make something strin you need the function tostring that it
  3. local screenW, screenH = guiGetScreenSize() local sx, sy = screenW/1900, screenH/1080 addEventHandler("onClientRender", root, dxDrawRectangle(screenW/2 - 1000/2 + sx + 400, screenH/2 -50/2 + sy + 520, sx * 200, sy*30, tocolor(0, 0, 0, 135)) dxDrawText("Test", screenW/2 -1000/2 + sx +1250/2, screenH/2 -50/2 + sy+ 1040/2, screenW/2 - 1000/2 + sx + 100/2, screenH/2 - 50/2 + sy +20/2 , tocolor(255, 255, 255, 255), 1 ,"pricedown", "left", "top", false, false, false, true) end ) try that
  4. createObject or createPickup setTimer setPedAnimation destroyElement
  5. getScreenFromWorldPosition isLineOfSightClear
  6. i think no its not a crime but i am not 100 prcent sure ,you can't ask help here for bugs or error they have that scripts
  7. if you mean vG owl etc then no it not crime but you wont get help here if you use them for bugs etc
  8. local screenW, screenH = guiGetScreenSize() local sx, sy = screenW/1440, screenH/900 if you have another resolution there change the numbers and after there you want use it for match all resolution just do sx*your number x, sy*number of y etc or just use screenW/number x and, screenH/number of y its same
  9. Hello guys i have a probelm with my script i make a script roll down vehicle windows up and down and have a message apear for that the problem is i make it so in some type of vehicle and names not work but still apear that message it will be a lot of help if you tell me what is wrong still apear it no errors or warning in debugscript function toggleWindows() for _, v in ipairs(getElementsByType("player")) do local car = getPedOccupiedVehicle(v) local seat = getPedOccupiedVehicleSeat(v) if isPedInVehicle(v) then if getVehicleType(car) ~= "Plane" or getVehicleType(car) ~= "Train" or getVehicleType(car) ~= "Bike" or getVehicleType(car) ~= "Boat" or getVehicleType(car) ~= "BMX" or getVehicleType(car) ~= "Quad Quadbikes" or getVehicleType(car) ~= "Trailer" or getVehicleName(car) ~="Caddy" or getVehicleName(car) ~="Bandito" then if getPedOccupiedVehicleSeat(localPlayer) == 0 then if not isVehicleWindowOpen(car, 4) and not isVehicleWindowOpen(car, 2) and not isVehicleWindowOpen(car, 5) and not isVehicleWindowOpen(car, 3) then setVehicleWindowOpen(car, 4, true) setVehicleWindowOpen(car, 2, true) setVehicleWindowOpen(car, 5, true) setVehicleWindowOpen(car, 3, true) triggerServerEvent("updateChat", localPlayer, "rolls down the windows of the ".. getVehicleName(car)..".") else setVehicleWindowOpen(car, 4, false) setVehicleWindowOpen(car, 2, false) setVehicleWindowOpen(car, 5, false) setVehicleWindowOpen(car, 3, false) triggerServerEvent("updateChat", localPlayer, "rolls up the windows of the "..getVehicleName(car)..".") end else outputChatBox("You are not the driver", 255, 0, 0) end else outputChatBox("This vehicle is not have windows.", 255, 0, 0) end else outputChatBox("You are not inside a vehicle.", 255, 0, 0) end end end addCommandHandler("wdall", toggleWindows) local seatWindows = { [0] = 4, [1] = 2, [2] = 5, [3] = 3 } function toggleWindow() for _, v in ipairs(getElementsByType("player")) do local car = getPedOccupiedVehicle(v) local seat = getPedOccupiedVehicleSeat(v) if isPedInVehicle(v) then if getVehicleType(car) ~= "Plane" or getVehicleType(car) ~= "Train" or getVehicleType(car) ~= "Bike" or getVehicleType(car) ~= "Boat" or getVehicleType(car) ~= "BMX" or getVehicleType(car) ~= "Quad Quadbikes" or getVehicleType(car) ~= "Trailer" or getVehicleName(car) ~="Caddy" or getVehicleName(car) ~="Bandito" then if not isVehicleWindowOpen(car, seatWindows[seat]) then setVehicleWindowOpen(car, seatWindows[seat], true) triggerServerEvent("updateChat", localPlayer, "rolls down their window.") else setVehicleWindowOpen(car, seatWindows[seat], false) triggerServerEvent("updateChat", localPlayer, "rolls up their window.") end else outputChatBox("This vehicle is not have windows.", 255, 0, 0) end else outputChatBox("You are not inside a vehicle.", 255, 0, 0) end end end addCommandHandler("wd", toggleWindow)
  10. you need to read and see how to ask a question proberly you say something but we don't understand what you mean
  11. Dimos7

    Players

    not needed i think
  12. what do you mean call as command do same command?
  13. Dimos7

    Players

    function getElementsWithinMarker(marker) if (not isElement(marker) or getElementType(marker) ~= "marker") then return false end local markerColShape = getElementColShape(marker) local elements = getElementsWithinColShape(markerColShape) return elements end addEvent("buy" true) addEventHandler("buy", resourceRoot, function() local players = getElementsWithinMarker(marker) for i,v in ipairs(players) do outputChatBox(tostring(v)) triggerClientEvent(v, "refresh", resourceRoot) end end)
  14. NAME: Dimosthenis AGE: 23 CONTACT METHODS. skype (inbox if necessary) BRIEF SELF DESCRIPTION [ 50 Words Minimum ] [ 100 Words Maximum ]. I used be in many server staff most of time of the server was empty and none want to develop or make it better so i was left i am script and make some scripts for fun and help and develop my skill as it good and have a nice time find what it need for that think conact me in pm if you want me
  15. first we not help leaked scripts here but anyway go to admin folder find the comands edit and post the new id of you job about the ped i am not sure to tell the truth
  16. first you need create the new job after you need edit the command of admin for adding the new id for job and at ped same so have same jobs
  17. local conenct = dbConnect("MYSQL", "dbname=mta_test;host=127.0.0.1", "root") local query = dbExec(connect, "INSERT INTO users") or dbQuery(connect, "SELECT * FROM users") tostring local result = dbPoll(query, 500)
  18. function echoMsg() exports.WSScommands:sendMessage("1den fazla hesabı olan arkadaşlar banlanacaktır!", 255, 255, 0,root) end addEventHandler("onResourceStart", resourceRoot, function() executeSQLQuery("CREATE TABLE IF NOT EXISTS `multiacc`(ip TEXT, serial TEXT, id TEXT)") setTimer(echoMsg, 120000, 0) end) addEventHandler ("onPlayerLogin", root, function() local serial = getPlayerSerial(source) local account = getPlayerAccount(source) local id = getAccountName(account) local ip = getPlayerIP(source) executeSQLQuery("INSERT INTO `multiacc` VALUES(?,?,?)", ip, serial, id) end )
×
×
  • Create New...