xMKHx

Members
  • Content Count

    121
  • Joined

  • Last visited

Everything posted by xMKHx

  1. xMKHx

    Help

    try this local playerName = "" local message = "" function dx () local screenW, screenH = guiGetScreenSize () dxDrawText(""..message.." Hosted by: "..playerName.."", (screenW * 0.0000) + 1, (screenH * 0.0000) + 1, (screenW * 0.4539) + 1, (screenH * 0.0260) + 1, tocolor(0, 0, 0, 255), 1.00, "default", "left", "top", false, false, false, false, false) dxDrawText(""..message.." Hosted by: "..playerName.."", screenW * 0.0000, screenH * 0.0000, screenW * 0.4539, screenH * 0.0260, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) end function info (message_) removeEventHandler ( "onClientRender", getRootElement( ), dx ) addEventHandler("onClientRender", getRootElement( ), dx ) message = message_ playerName = getPlayerName(getLocalPlayer()) end function stopinfo () removeEventHandler ( "onClientRender", getRootElement( ), dx ) end addCommandHandler("info", info) addCommandHandler("stopinfo", stopinfo)
  2. Actually if you know how to use it it won't burden your server, i have made a mistake before i used a timer and i fked up the server
  3. xMKHx

    ATM robbery

    I made this for public may you love it https://community.multitheftauto.com/index.php?p=resources&s=details&id=15571
  4. xMKHx

    ATM robbery

    You can draw a window and buttons With guieditor ( you can find it on community ) then make functions for buttons ( i mean the numbers from 1,9 ) you can use guiGetText and guisettext and if there i☼ something wrong you can post on scripting board and we can help you
  5. xMKHx

    ATM robbery

    If you have a server you can request paid scripters to make one like it or you can make your own one if you can ofc
  6. f OVH l vps b 8dt w techry m3ah domain .ovh walla .xyz b 2dt yaany total yji 10dt yaa3ni 7keyet $3 w enty theb tbi3 l vps bark b $15 w $20 yaany tji 45dt 60dt kek, 3leh sahby ne9sin ahna
  7. xMKHx

    ATM robbery

    You can search on the community for similar one or you can make your own script
  8. You can post your scripts in this section and we can help you ti fix it
  9. xMKHx

    Button Team

    destroyElement(getTeamFromName("Team_Name")) spawnPlayer ( source, x, y, z, rot, skinID )
  10. function AntKill ( attacker , weapon , bodypart , loss ) suspect = getAccountName ( getPlayerAccount ( attacker )) victim = getAccountName ( getPlayerAccount ( source )) if (attacker == source) then return false end if ( isObjectInACLGroup ( "user." ... suspect , aclGetGroup ( "test" )) and isObjectInACLGroup ( "user." .. victim , aclGetGroup ( "test" )) ) then outputChatBox ("TEST",source,255,255,255,true) cancelEvent () end end addEventHandler (" onPlayerDamage ",root,AntKill)
  11. I edited my post ! look again may it helps you
  12. You can use any save system from the community ! or you can link the fighting style system with mysql or sql you can add this in server side of the fighting styles script function createTable () executeSQLQuery("CREATE TABLE IF NOT EXISTS fightingstyle (account TEXT, styleID INT)") outputDebugString("CREATED TABLE fightingstyle ( account TEXT, styleID INT)", 3, 0, 255, 0) end addEventHandler("onResourceStart", resourceRoot, createTable) then add this function function isPlayerAlreadyBoughtNewFightingStyle (player) local account = getAccountName(getPlayerAccount(player)) local query = executeSQLQuery("SELECT * FROM fightingstyle WHERE account=?", account) if (query) and (#query > 0) then return true else return false end end then add this in the function when you buy or get the new fighting style function onBuyNewFightingStyle () if (isPlayerAlreadyBoughtNewFightingStyle(source) == true) then local acc = getAccountName(getPlayerAccount(source)) executeSQLQuery("UPDATE fightingstyle SET styleID=? WHERE account=?", theID, acc) else executeSQLQuery("INSERT INTO fightingstyle(account,styleID) VALUES(?,?)", acc, theID) end end
  13. i'm using my phone try this function getPlayerFromPartialName(name) local name = name and name:gsub("#%x%x%x%x%x%x", ""):lower() or nil if name then for _, player in ipairs(getElementsByType("player")) do local name_ = getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end end function findPlayer (player, cmd, target) local target_ = getPlayerFromPartialName ( target ) local targetN = getPlayerName(target_) if cmd == "find" then if target_ then createBlipAttachedTo ( getPlayerFromName(targetN), 52 ) else outputChatBox("Player not found !", player, 255, 0, 0) end end end addCommandHandler("find", findPlayer)
  14. try this i'm using my phone i didn't test it local car = getPedOccupiedVehicle ( getLocalPlayer() ) local carfullhp = math.floor(getElementHealth(car)/10) local carhp = carfullhp - 25 dxDrawRectangle(screenW * 0.7760, screenH * 0.8796, screenW * 0.1083/100*carhp, screenH * 0.0278, tocolor(171, 100, 17, 207), false)
  15. What are we looking for ? We're looking for staffs to manage the server and controle it and help players ... Requirements: - Good English skills - Able to handle the duty Where you can apply ? Here is our Forum Link: UDCMTA Good Luck
  16. xMKHx

    Timer to Progress

    Thank You so Much
  17. xMKHx

    Timer to Progress

    Example I have a timer for a function function test () setTimer(outputChatBox, 3000, 1, "Hello World") end i want to change it to a progressbar guiCreateProgressBar
  18. Hello Today i'm asking if is there any possibility to move a timer (setTimer) to a progress ?
  19. xMKHx

    Remaining Time

    Worked fine, but first the vip sets auto for all server accounts online and offline 2nd the resul in the db is 0