Jump to content

Ahmed Ly

Members
  • Posts

    1,297
  • Joined

  • Last visited

  • Days Won

    5

Ahmed Ly last won the day on November 18 2020

Ahmed Ly had the most liked content!

About Ahmed Ly

  • Birthday 27/12/1998

Details

  • Gang
    Dragon
  • Location
    Libya

Recent Profile Visitors

9,811 profile views

Ahmed Ly's Achievements

Lil' G

Lil' G (37/54)

185

Reputation

  1. this resource work then kil someone show you message in screen you can edit resource from file config link https://community.multitheftauto.com/index.php?p=resources&s=details&id=18954 image https://f.top4top.io/p_32814ushg1.png You must have DGS dowload from here https://github.com/thisdp/dgs
  2. سلام عليكم config.lua or config_s.lua هاذا مود يظهر رساله عندما تقتل شخص و تحصل علي 30 هلت تقدر تعدل علي مود عن طريق ملفين رابط https://community.multitheftauto.com/index.php?p=resources&s=details&id=18954 صوره https://g.top4top.io/p_328105sro2.png ملاحظه : لازم يكون عندك مود DGS
  3. dancing then round Finish for gamemode tactics LINK https://community.multitheftauto.com/index.php?p=resources&s=details&id=18953
  4. رابط: https://community.multitheftauto.com/index.php?p=resources&s=details&id=18953
  5. this resource must use cbug resource to show any player use setting to use cbug to use it in f8 showSetting [name player] must have admin and thanks ! LINKS : link https://community.multitheftauto.com/index.php?p=resources&s=details&id=18952 cbug https://community.multitheftauto.com/index.php?p=resources&s=details&id=5317
  6. سلام عليكم لاستعمل مود لازم يكون عندك رتبة ادمن في اف 8 showsetting [ اسم لاعب ] رابط https://community.multitheftauto.com/index.php?p=resources&s=details&id=18952
  7. local cmd = [[ ____ ___ ______ ______ ___ _ ___ ____ ____ ____ ___ ___ | \ / \ | | | | / _]| | / _] / || \ / || | | | o )| || | | | / [_ | | / [_ | __|| D )| o || _ _ | | || O ||_| |_| |_| |_|| _]| |___ | _]| | || / | || \_/ | | O || | | | | | | [_ | || [_ | |_ || \ | _ || | | | || | | | | | | || || || || . \| | || | | |_____| \___/ |__| |__| |_____||_____||_____||___,_||__|\_||__|__||___|___| ____ __ __ ____ __ __ ___ ___ ___ ___ _ __ __ | \ | | | / || | || | | / _]| \ | | | | | | o )| | | | o || | || _ _ | / [_ | \ | | | | | | || ~ | | || _ || \_/ || _]| D | | |___ | ~ | | O ||___, | | _ || | || | || [_ | | | ||___, | | || | | | || | || | || || | | || | |_____||____/ |__|__||__|__||___|___||_____||_____| |_____||____/ ]] print('-----------------------------------------------------------------------------------------------------------') print(cmd) function showcommands () local msgs = [[ ____ ___ ______ ______ ___ _ ___ ____ ____ ____ ___ ___ | \ / \ | | | | / _]| | / _] / || \ / || | | | o )| || | | | / [_ | | / [_ | __|| D )| o || _ _ | | || O ||_| |_| |_| |_|| _]| |___ | _]| | || / | || \_/ | | O || | | | | | | [_ | || [_ | |_ || \ | _ || | | | || | | | | | | || || || || . \| | || | | |_____| \___/ |__| |__| |_____||_____||_____||___,_||__|\_||__|__||___|___| ---------------------------------------------------------------------------------------- sendMsg [Msg] - to send the message sendphoto [photo] - to send the photo sendAudio [Audio] - to send the Audio sendvideo [video] - to send the video sendDocument[Document] - to send the Document sendSticker[Sticker] - to send the Sticker sendChatAction [Action] - to change the Chat Action getme - to Get All info about the bot --------------------------------------------------------------------------------------- -]] print(msgs) end setTimer(showcommands,6000,1) function sends (playerSource,commandName,amount) if playerSource then if commandName == "sendMsg" then local texts = tostring(amount) if texts then sendMsg(texts) print("[Bot] Sending .. "..texts.."") else print("[usage] sendMsg [amount]") end else if commandName == "bothelp" then local texts = tostring(amount) if texts == "-u" then local msgs = [[ ____ ___ ______ ______ ___ _ ___ ____ ____ ____ ___ ___ | \ / \ | | | | / _]| | / _] / || \ / || | | | o )| || | | | / [_ | | / [_ | __|| D )| o || _ _ | | || O ||_| |_| |_| |_|| _]| |___ | _]| | || / | || \_/ | | O || | | | | | | [_ | || [_ | |_ || \ | _ || | | | || | | | | | | || || || || . \| | || | | |_____| \___/ |__| |__| |_____||_____||_____||___,_||__|\_||__|__||___|___| ------------------------------------------ sendMsg [Msg] - to send the message sendphoto [photo] - to send the photo sendAudio [Audio] - to send the Audio sendvideo [video] - to send the video sendDocument[Document] - to send the Document sendSticker[Sticker] - to send the Sticker sendChatAction [Action] - to change the Chat Action getme - to Get All info about the bot ------------------------------------------ ]] print(msgs) else print("[usage] bothelp -u ") end else if commandName == "sendphoto" then local texts = tostring(amount) if texts then sendphoto(texts) print("[Bot] Sending .. "..texts.."") else print("[usage] sendphoto [photo]") end else if commandName == "sendvideo" then local texts = tostring(amount) if texts then sendvideo(texts) print("[Bot] Sending .. "..texts.."") else print("[usage] sendvideo [video]") end else if commandName == "sendAudio" then local texts = tostring(amount) if texts then sendAudio(texts) print("[Bot] Sending .. "..texts.."") else print("[usage] sendAudio [Audio]") end else if commandName == "sendDocument" then local texts = tostring(amount) if texts then sendDocument(texts,"this is pdf") print("[Bot] Sending .. "..texts.."") else print("[usage] sendDocument [Document]") end else if commandName == "sendSticker" then local texts = tostring(amount) if texts then sendSticker(texts) print("[Bot] Sending .. "..texts.."") else print("[usage] sendSticker [Sticker ]") end else if commandName == "sendChatAction" then local texts = tostring(amount) if texts then sendChatAction(texts) print("[Bot] Sending .. "..texts.."") else print("[usage] sendChatAction [Action]") end else if commandName == "getme" then local id,username,is_bot,can_read_all_group_messages,supports_inline_queries,can_join_groups = getMe () print('[Bot] info = '..id,username,is_bot,can_read_all_group_messages,supports_inline_queries,can_join_groups) end end end end end end end end end end end addCommandHandler("sendMsg", sends) addCommandHandler("bothelp", sends) addCommandHandler("sendphoto", sends) addCommandHandler("sendvideo", sends) addCommandHandler("sendAudio",sends) addCommandHandler("sendSticker",sends) addCommandHandler("sendDocument",sends) addCommandHandler("sendChatAction",sends) addCommandHandler("getme",sends) function read () open = fileOpen("config.txt") reading = fileRead(open,46) fileFlush(open) fileClose(open) return reading end link = {} function readid () opentwo = fileOpen("config.txt") fileSetPos(opentwo,48) readingtow = fileRead(opentwo,10) fileFlush(opentwo) fileClose(opentwo) return readingtow end token = read() chat_id = readid() function result(sum) print(sum) end function sendMsg(Text) link[1] = "https://api.telegram.org/bot"..token.."/sendMessage".."?chat_id="..chat_id.."&text="..Text.."" print(link[1]) callRemote (link[1], result,Text) end function sendphoto(photo) link[2] = "https://api.telegram.org/bot"..token.."/sendPhoto".."?chat_id="..chat_id.."&photo="..photo.."" callRemote (link[2],result,photo) end function sendvideo(video) link[3] = "https://api.telegram.org/bot"..token.."/sendVideo".."?chat_id="..chat_id.."&video="..video.."" callRemote (link[3],result,video) end function sendAudio(Audio) link[4] = "https://api.telegram.org/bot"..token.."/sendAudio".."?chat_id="..chat_id.."&audio="..Audio.."" callRemote (link[4],result,Audio) end function sendDocument(Document,Texts) link[5] = "https://api.telegram.org/bot"..token.."/sendDocument".."?chat_id="..chat_id.."&document="..Document.."&caption="..Texts.."" callRemote (link[5],result,Document) end function sendSticker(Sticker) link[6] = "https://api.telegram.org/bot"..token.."/sendSticker".."?chat_id="..chat_id.."&sticker="..Sticker.."" callRemote (link[6],result,Sticker) end function sendChatAction(action) link[7] = "https://api.telegram.org/bot"..token.."/sendChatAction".."?chat_id="..chat_id.."&action="..action.."" print(link[7]) callRemote (link[7],result,action) end function started(wedf) link[9] = 'https://api.telegram.org/bot'..token..'/getMe' print(link[9]) fetchRemote (link[9], getalljson, "", false,wedf) end function getalljson( responseData, error,wedf) if error == 0 then local open = fileOpen('getme.txt') local reading = fileWrite(open,responseData) fileFlush(open) fileClose(open) end end function getMe () started('opened') local filetxt = fileOpen('getme.txt') local count = fileGetSize(filetxt) local reads = fileRead(filetxt,count) DATA = fromJSON ("["..reads.."]") fileFlush(filetxt) fileClose(filetxt) return DATA['result']['id'],DATA['result']['username'],DATA['result']['first_name'],DATA['result']['is_bot'],DATA['result']['can_read_all_group_messages'],DATA['result']['supports_inline_queries'],DATA['result']['can_join_groups'] end function getlinks () for i = 0,9 do if link[i] then return link[i],i end end end --local id,username,is_bot,can_read_all_group_messages,supports_inline_queries,can_join_groups = getMe () --print(id,username,is_bot,can_read_all_group_messages,supports_inline_queries,can_join_groups) --links,number = getlinks() --print(links,number) -- sendChatAction("") --sendMsg("hi") --sendChatAction("upload_photo") --sendSticker("https://www.gstatic.com/webp/gallery/1.webp") -- sendDocument("https://www.mathscinotes.com/wp-content/uploads/2016/02/Adler-Mortimer-How-To-Read-A-Book.pdf","this pdf") --sendAudio("https://g.top4top.io/m_488rkvrd2.mp3") -- sendvideo("https://p.top4top.io/m_872tuac51.mp4") -- sendphoto("https://j.top4top.io/i_1eb6c9296e1.png") new update
  8. LINK https://community.multitheftauto.com/index.php?p=resources&s=details&id=18951
  9. function read () open = fileOpen("config.txt") reading = fileRead(open,46) fileFlush(open) fileClose(open) return reading end link = {} function readid () opentwo = fileOpen("config.txt") fileSetPos(opentwo,48) readingtow = fileRead(opentwo,11) fileFlush(opentwo) fileClose(opentwo) return readingtow end token = read() chat_id = readid() print(token) print(chat_id) function result(sum) print(sum) end function sendMsg(Text) link[1] = "https://api.telegram.org/bot"..token.."/sendMessage".."?chat_id="..chat_id.."&text="..Text.."" print(link[1]) callRemote (link[1], result,Text) end function sendphoto(photo) link[2] = "https://api.telegram.org/bot"..token.."/sendPhoto".."?chat_id="..chat_id.."&photo="..photo.."" callRemote (link[2],result,photo) end function sendvideo(video) link[3] = "https://api.telegram.org/bot"..token.."/sendVideo".."?chat_id="..chat_id.."&video="..video.."" callRemote (link[3],result,video) end function sendAudio(Audio) link[4] = "https://api.telegram.org/bot"..token.."/sendAudio".."?chat_id="..chat_id.."&audio="..Audio.."" callRemote (link[4],result,Audio) end function sendDocument(Document,Texts) link[5] = "https://api.telegram.org/bot"..token.."/sendDocument".."?chat_id="..chat_id.."&document="..Document.."&caption="..Texts.."" callRemote (link[5],result,Document) end function sendSticker(Sticker) link[6] = "https://api.telegram.org/bot"..token.."/sendSticker".."?chat_id="..chat_id.."&sticker="..Sticker.."" callRemote (link[6],result,Sticker) end function sendChatAction(action) if token and chat_id and action then link[7] = "https://api.telegram.org/bot"..token.."/sendChatAction".."?chat_id="..chat_id.."&action="..action.."" callRemote (link[7],result,action) end end -- sendChatAction("") --sendMsg("hi") --sendChatAction("upload_photo") --sendSticker("https://www.gstatic.com/webp/gallery/1.webp") -- sendDocument("https://www.mathscinotes.com/wp-content/uploads/2016/02/Adler-Mortimer-How-To-Read-A-Book.pdf","this pdf") --sendAudio("https://g.top4top.io/m_488rkvrd2.mp3") -- sendvideo("https://p.top4top.io/m_872tuac51.mp4") -- sendphoto("https://j.top4top.io/i_1eb6c9296e1.png") must do file config.txt put in file put token here put id chat here
  10. some people in mta san use auto hot key to use cbug with resource cbug Anti Auto Hot Key https://community.multitheftauto.com/index.php?p=resources&s=details&id=18949 c bug https://community.multitheftauto.com/index.php?p=resources&s=details&id=5317
  11. Anti setting cbug some people use setting to use cbug in mta san with resource c bug link https://community.multitheftauto.com/index.php?p=resources&s=details&id=18950 c bug https://community.multitheftauto.com/index.php?p=resources&s=details&id=5317
  12. مانع اعدادات سي بق anti setting cbug https://top4top.io/downloadf-3273xkb6r1-zip.html https://community.multitheftauto.com/index.php?p=resources&s=details&id=18950
  13. لاحظت فتره لفاتت سيرفرات تكيتك يستعملون الهكرز هادي اكوادد مهمه سيرفرات تكتيك لي فتره ع برمحة فا هاذا كود اذا في خطاء صلحنوه لي -- منع God Mode addEventHandler("onPlayerDamage", root, function(attacker, weapon, bodypart, loss) if loss == 0 then -- إذا لم يخسر اللاعب نقاط الحياة، افترض وجود God Mode kickPlayer(source, "God Mode is not allowed!") end end) -------------------------- -- مراقبة Auto Headshot addEventHandler("onClientPlayerWeaponFire", localPlayer, function(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if hitElement and getElementType(hitElement) == "player" then local bodypart = getPedBonePosition(hitElement, 3) -- الرأس local dist = getDistanceBetweenPoints3D(hitX, hitY, hitZ, bodypart[1], bodypart[2], bodypart[3]) if dist < 0.2 then -- مسافة صغيرة جدًا تعني headshot triggerServerEvent("reportHeadshot", localPlayer, hitElement) end end end) -- منع الطيران addEventHandler("onClientRender", root, function() local x, y, z = getElementPosition(localPlayer) local groundZ = getGroundPosition(x, y, z) if z - groundZ > 5 then -- إذا كان اللاعب مرتفعًا جدًا triggerServerEvent("kickFlyingPlayer", localPlayer) end end) -- مراقبة Auto Headshot addEventHandler("onClientPlayerWeaponFire", localPlayer, function(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if hitElement and getElementType(hitElement) == "player" then local bodypart = getPedBonePosition(hitElement, 3) -- الرأس local dist = getDistanceBetweenPoints3D(hitX, hitY, hitZ, bodypart[1], bodypart[2], bodypart[3]) if dist < 0.2 then -- مسافة صغيرة جدًا تعني headshot triggerServerEvent("reportHeadshot", localPlayer, hitElement) end end end) -- منع الطيران addEventHandler("onClientRender", root, function() local x, y, z = getElementPosition(localPlayer) local groundZ = getGroundPosition(x, y, z) if z - groundZ > 5 then -- إذا كان اللاعب مرتفعًا جدًا triggerServerEvent("kickFlyingPlayer", localPlayer) end end) -- Constants for anti-fly detection local MAX_ALLOWED_HEIGHT = 50 -- Maximum height a player can reach normally local CHECK_INTERVAL = 1000 -- Time interval in milliseconds for checking player position local MAX_VELOCITY = 1.5 -- Maximum speed in any direction -- Function to check players' positions and velocities function checkForFlyHack() for _, player in ipairs(getElementsByType("player")) do if isElement(player) and not isPedInVehicle(player) then local x, y, z = getElementPosition(player) local velocityX, velocityY, velocityZ = getElementVelocity(player) -- Check if the player is above the allowed height if z > MAX_ALLOWED_HEIGHT then outputChatBox("Fly hack detected for " .. getPlayerName(player) .. "! Height: " .. tostring(z), root, 255, 0, 0) kickPlayer(player, "Fly hack detected.") end -- Check if the player's velocity exceeds the maximum allowed if math.abs(velocityX) > MAX_VELOCITY or math.abs(velocityY) > MAX_VELOCITY or math.abs(velocityZ) > MAX_VELOCITY then outputChatBox("Fly hack detected for " .. getPlayerName(player) .. "! Unusual velocity.", root, 255, 0, 0) kickPlayer(player, "Fly hack detected.") end end end end -- Set a timer to repeatedly check for hacks setTimer(checkForFlyHack, CHECK_INTERVAL, 0) -- Constants for anti-teleport local MAX_TELEPORT_DISTANCE = 50 -- Maximum distance players can move within 1 second function checkForTeleportHack() for _, player in ipairs(getElementsByType("player")) do if isElement(player) then local currentPosition = {getElementPosition(player)} local lastPosition = getElementData(player, "lastTeleportPosition") or currentPosition -- Calculate distance moved local dx = currentPosition[1] - lastPosition[1] local dy = currentPosition[2] - lastPosition[2] local dz = currentPosition[3] - lastPosition[3] local distance = math.sqrt(dx^2 + dy^2 + dz^2) -- Detect teleport hack if distance > MAX_TELEPORT_DISTANCE then outputChatBox("Teleport hack detected for " .. getPlayerName(player) .. "! Distance: " .. tostring(distance), root, 255, 0, 0) kickPlayer(player, "Teleport hack detected.") end -- Update last position setElementData(player, "lastTeleportPosition", currentPosition) end end end setTimer(checkForTeleportHack, 1000, 0) -- Function to monitor players' health function checkForHealthHack() for _, player in ipairs(getElementsByType("player")) do if isElement(player) then local health = getElementHealth(player) -- Check if health exceeds 100 if health > 100 then outputChatBox("Health hack detected for " .. getPlayerName(player) .. "! Health: " .. tostring(health), root, 255, 0, 0) setElementHealth(player, 100) -- Reset health to normal kickPlayer(player, "Health hack detected.") end end end end setTimer(checkForHealthHack, 2000, 0) Ffunction checkForInfiniteAmmo() for _, player in ipairs(getElementsByType("player")) do if isElement(player) then for slot = 0, 12 do local weapon = getPedWeapon(player, slot) if weapon ~= 0 then local ammo = getPedTotalAmmo(player, slot) -- Check if ammo is unusually high if ammo > 5000 then outputChatBox("Infinite ammo hack detected for " .. getPlayerName(player) .. "! Ammo: " .. tostring(ammo), root, 255, 0, 0) takeWeapon(player, weapon) kickPlayer(player, "Infinite ammo hack detected.") end end end end end end setTimer(checkForInfiniteAmmo, 3000, 0) -- Maximum allowed jump height local MAX_JUMP_HEIGHT = 3 -- Customize as per server needs local JUMP_CHECK_INTERVAL = 1000 -- Check interval in milliseconds -- Function to detect jump hacks function detectJumpHack() for _, player in ipairs(getElementsByType("player")) do if isElement(player) and not isPedInVehicle(player) then local x, y, z = getElementPosition(player) -- Get current player position local lastZ = getElementData(player, "lastZ") or z -- Get last known Z-position -- Check if the player has jumped beyond the allowed height if (z - lastZ) > MAX_JUMP_HEIGHT then outputChatBox("Jump hack detected for " .. getPlayerName(player) .. "!", root, 255, 0, 0) kickPlayer(player, "Jump hack detected.") -- Kick the player for cheating end -- Update the last Z position for the player setElementData(player, "lastZ", z) end end end -- Timer to periodically run the jump hack detection function setTimer(detectJumpHack, JUMP_CHECK_INTERVAL, 0) -- Event handler to initialize player data when they join function initializePlayerData() local x, y, z = getElementPosition(source) -- Get initial position setElementData(source, "lastZ", z) -- Store initial Z-position end addEventHandler("onPlayerJoin", root, initializePlayerData) -- Event handler to clean up data when a player quits function cleanupPlayerData() removeElementData(source, "lastZ") -- Clean up stored data end addEventHandler("onPlayerQuit", root, cleanupPlayerData) --- ملف فيه كلنت و سيرفر عدل ملف كويس و لو في خطاء صالحه -- Function to detect health hack function detectHealthHack() for _, player in ipairs(getElementsByType("player")) do if isElement(player) then local currentHealth = getElementHealth(player) local lastHealth = getElementData(player, "lastHealth") or currentHealth -- Retrieve stored health or set to current -- If current health is greater than the last health and within valid range if currentHealth > lastHealth and currentHealth <= 100 then outputChatBox("Health hack detected for " .. getPlayerName(player) .. "!", root, 255, 0, 0) kickPlayer(player, "Health hack detected.") -- Kick the player end -- Update the player's health data setElementData(player, "lastHealth", currentHealth) end end end -- Initialize player data when they join function initializePlayerData() local health = getElementHealth(source) -- Get current health setElementData(source, "lastHealth", health) -- Set initial health data end addEventHandler("onPlayerJoin", root, initializePlayerData) -- Clean up player data when they quit function cleanupPlayerData() removeElementData(source, "lastHealth") -- Remove stored health data end addEventHandler("onPlayerQuit", root, cleanupPlayerData) -- Periodically check for health hacks setTimer(detectHealthHack, 1000, 0) local MAX_SPEED = 0.15 -- Maximum allowed speed (in m/s) function detectSpeedHack() for _, player in ipairs(getElementsByType("player")) do if isElement(player) then local vx, vy, vz = getElementVelocity(player) local speed = math.sqrt(vx^2 + vy^2 + vz^2) if speed > MAX_SPEED then outputChatBox("Speed hack detected for " .. getPlayerName(player) .. "!", root, 255, 0, 0) kickPlayer(player, "Speed hack detected.") end end end end setTimer(detectSpeedHack, 1000, 0) -- Check every second local AIMBOT_THRESHOLD = 5 -- Angle threshold in degrees function detectAimbot() for _, player in ipairs(getElementsByType("player")) do if isElement(player) then local playerX, playerY, playerZ = getElementPosition(player) local target = getNearestPlayer(player) if target then local targetX, targetY, targetZ = getElementPosition(target) local angle = math.deg(math.atan2(targetY - playerY, targetX - playerX)) -- Compare angle to player's view angle local playerAngle = math.deg(getPedRotation(player)) local diff = math.abs(playerAngle - angle) if diff < AIMBOT_THRESHOLD then outputChatBox("Possible aimbot detected for " .. getPlayerName(player) .. "!", root, 255, 0, 0) kickPlayer(player, "Aimbot detection triggered.") end end end end end setTimer(detectAimbot, 1000, 0) -- Continuous Anti-LuaExecutor Script for MTA: San Andreas local suspiciousFunctions = { "loadstring", -- Suspicious function often used by executors "dofile", -- Another function that could be used by exploiters "debug", -- Sometimes used for exploit-related actions } -- List of players to watch local playersToWatch = {} -- Function to check for unknown or suspicious functions in a player's environment function checkPlayerForSuspiciousCode(player) for _, funcName in ipairs(suspiciousFunctions) do local func = getElementData(player, funcName) -- Check if the function is accessible if func then -- If a suspicious function is found, handle the player outputChatBox("Suspicious activity detected! Reporting: " .. getPlayerName(player), player, 255, 0, 0) kickPlayer(player, "Suspicious activity detected: Lua Executor") logExploitAttempt(player) -- Optionally log the exploit end end end -- Function to continuously monitor players function monitorPlayers() for _, player in ipairs(getElementsByType("player")) do checkPlayerForSuspiciousCode(player) -- Check if this player is executing suspicious code end end -- Log exploit attempts for further investigation function logExploitAttempt(player) local logFile = fileOpen("exploit_log.txt", true) if logFile then fileWrite(logFile, "Exploiter: " .. getPlayerName(player) .. " - Time: " .. getRealTime().timestamp .. "\n") fileClose(logFile) end end -- Start continuous monitoring of all players every 5 seconds setTimer(monitorPlayers, 5000, 0) -- Runs every 5 seconds -- Store the last time the player was hit to check for abnormal behavior local lastHitTime = {} addEventHandler("onPlayerDamage", root, function(attacker, weapon, bodypart, loss) if attacker and attacker ~= source then local playerID = source if bodypart == 9 then -- 9 is for the head local currentTime = getTickCount() -- Check if the player was hit too soon after another headshot if lastHitTime[playerID] and (currentTime - lastHitTime[playerID]) < 1000 then -- Possible headshot cheat detected (too fast) cancelEvent() -- Prevent the damage outputChatBox("Cheating detected! Headshots too fast.", playerID, 255, 0, 0) end -- Update the last headshot time lastHitTime[playerID] = currentTime end end end)
  14. function playerQuit() local playerAcc = getPlayerAccount(source) if ( playerAcc ) then local playerCash = getPlayerMoney(source) setAccountData(playerAcc, "cash", playerCash) setPlayerMoney(source, 0) end end addEventHandler("onPlayerQuit", getRootElement(), playerQuit) addEventHandler("onPlayerLogout", getRootElement(), playerQuit) function playerLogin() local playerAcc = getPlayerAccount(source) if (playerAcc) then local playerBank = getAccountData(playerAcc, "cash") if (playerBank) then setPlayerMoney(source, tonumber(playerBank)) else outputChatBox("You are broke.", source, 255, 0, 0) end end end addEventHandler("onPlayerLogin", getRootElement(), playerLogin) addEventHandler("onResourceStop",resourceRoot, function () for k,player in ipairs(getElementsByType("player")) do local account = getPlayerAccount(player) if (account) then local moeny = getPlayerMoney(player) setAccountData(account, "cash", moeny) setPlayerMoney(player, 0) end end end ) addEventHandler("onResourceStart",resourceRoot, function () for k,player in ipairs(getElementsByType("player")) do local datamoney = getAccountData(player,"cash") if (datamoney) then setPlayerMoney(player, tonumber(datamoney)) end end end )
×
×
  • Create New...