Jump to content

+Source|>

Members
  • Posts

    1,388
  • Joined

  • Last visited

  • Days Won

    14

Everything posted by +Source|>

  1. مشتغل addEventHandler( 'onClientResourceStart', resourceRoot, function( ) if getElementInterior(localPlayer) == 5 then local uSound = playSound3D( 'https://www.youtube.com/watch?v=C7eowc6aIhM', 1231.35352, -808.49414, 1084.00781 ) setSoundMaxDistance( uSound, 100 ) end end )
  2. --Client aMuteInputValue = guiCreateComboBox ( 35, y, 230, 250, "", false, aMuteInputForm ) guiComboBoxAddItem(aMuteInputValue, "تست 1") guiComboBoxAddItem(aMuteInputValue, "تست 2") local reason = guiComboBoxGetItemText(aMuteInputValue, guiComboBoxGetSelected(aMuteInputValue)) triggerServerEvent ( "aPlayer", getLocalPlayer(), "mute", reason )--تريقر للسيرفر جرب هذا
  3. اطرح اكواد السيرفر
  4. http://78.31.74.220:8000/BadRadio وش وضع الرابط هنا كف احط اغنيتي انا مثلا بحط ذي
  5. شلون ممكن مثال هاي اول مره استعملها
  6. انا ابيه يجي مباشره من اليوتيوب مب احوله واركبه انا
  7. كيف لما مود يشتغل يشغل رابط من الويتيوب او رابط mp3 تلقائي
  8. اطرح الحدث المستقبل من الكلينت
  9. function banAPlayer(thePlayer, commandName, targetPlayer, hours, ...) if exports["integration"]:isPlayerTrialAdmin(thePlayer) then if not (targetPlayer) or not (hours) or not tonumber(hours) or tonumber(hours)<0 or not (...) then outputChatBox("SYNTAX: /" .. commandName .. " [Player Partial Nick / ID] [Time in Hours, 0 = Infinite] [Reason]", thePlayer, 255, 194, 14, true) else local targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) local targetPlayerSerial = getPlayerSerial(targetPlayer) local targetPlayerIP = getPlayerIP(targetPlayer) hours = tonumber(hours) if not (targetPlayer) then elseif (hours>168) then outputChatBox("You cannot ban for more than 7 days (168 Hours).", thePlayer, 255, 194, 14, true) else local thePlayerPower = exports.global:getPlayerAdminLevel(thePlayer) local targetPlayerPower = exports.global:getPlayerAdminLevel(targetPlayer) reason = table.concat({...}, " ") if (targetPlayerPower <= thePlayerPower) then -- Check the admin isn't banning someone higher rank them him local hiddenAdmin = getElementData(thePlayer, "hiddenadmin") local playerName = getPlayerName(thePlayer) local accountID = getElementData(targetPlayer, "account:id") local username = getElementData(targetPlayer, "account:username") or "N/A" local seconds = ((hours*60)*60) local rhours = hours -- text value if (hours==0) then hours = "Permanent" elseif (hours==1) then hours = "1 Hour" else hours = hours .. " Hours" end if hours == "Permanent" then reason = reason .. " (" .. hours .. ")" else reason = reason .. " (" .. hours .. ")" end exports['admin-system']:addAdminHistory(targetPlayer, thePlayer, reason, 2 , rhours) local banId = nil if (seconds == 0) then banId = addToBan(accountID, targetPlayerSerial, targetPlayerIP, getElementData(thePlayer, "account:id"), reason) if banId and tonumber(banId) then lastBan = mysql:query_fetch_assoc("SELECT * FROM bans WHERE id='"..banId.."'") if lastBanTimer and isTimer(lastBanTimer) then killTimer(lastBanTimer) lastBanTimer = nil end lastBanTimer = setTimer(function() lastBan = nil end, 1000*60*5,1) --5 minutes end else addBan(nil, nil, targetPlayerSerial, thePlayer, reason, seconds) end local adminUsername = getElementData(thePlayer, "account:username") local adminUserID = getElementData(thePlayer, "account:id") local adminTitle = exports.global:getPlayerAdminTitle(thePlayer) makeForumThread(targetPlayerName or "N/A", username, hours, adminTitle , playerName, thePlayer, reason, adminUsername, adminUserID, banId ) for key, value in ipairs(getElementsByType("player")) do if getPlayerSerial(value) == targetPlayerSerial then kickPlayer(value, thePlayer, reason) end end adminTitle = exports.global:getAdminTitle1(thePlayer) if (hiddenAdmin==1) then adminTitle = "A hidden admin" end if string.lower(commandName) == "sban" then exports.global:sendMessageToAdmins("[SILENT-BAN] " .. adminTitle .. " silently banned " .. targetPlayerName .. ". (" .. hours .. ")") exports.global:sendMessageToAdmins("[SILENT-BAN] Reason: " .. reason .. ".") elseif string.lower(commandName) == "forceapp" then outputChatBox("[FA] "..adminTitle .. " " .. playerName .. " forced app " .. targetPlayerName .. ".", value, 255,0,0, true ) hours = "Permanent" reason = "Failure to meet server standard. Please improve yourself then appeal on forums" outputChatBox("[FA]: Reason: " .. reason .. "." ,root, 255,0,0, true) else outputChatBox("[BAN] " .. adminTitle .. " banned " .. targetPlayerName .. ". (" .. hours .. ")", value, 255,0,0, true) outputChatBox("[BAN] Reason: " .. reason .. ".", value, 255,0,0, true) end end end end end end addCommandHandler("pban", banAPlayer, false, false) addCommandHandler("sban", banAPlayer, false, false) جرب
  10. وش المشكله اللي تبي تصلحها ؟
  11. function banAPlayer(thePlayer, commandName, targetPlayer, hours, ...) if exports["integration"]:isPlayerTrialAdmin(thePlayer) then if not (targetPlayer) or not (hours) or not tonumber(hours) or tonumber(hours)<0 or not (...) then outputChatBox("SYNTAX: /" .. commandName .. " [Player Partial Nick / ID] [Time in Hours, 0 = Infinite] [Reason]", thePlayer, 255, 194, 14, true) else local targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) local targetPlayerSerial = getPlayerSerial(targetPlayer) local targetPlayerIP = getPlayerIP(targetPlayer) hours = tonumber(hours) if not (targetPlayer) then elseif (hours>168) then outputChatBox("You cannot ban for more than 7 days (168 Hours).", thePlayer, 255, 194, 14, true) else local thePlayerPower = exports.global:getPlayerAdminLevel(thePlayer) local targetPlayerPower = exports.global:getPlayerAdminLevel(targetPlayer) reason = table.concat({...}, " ") if (targetPlayerPower <= thePlayerPower) then -- Check the admin isn't banning someone higher rank them him local hiddenAdmin = getElementData(thePlayer, "hiddenadmin") local playerName = getPlayerName(thePlayer) local accountID = getElementData(targetPlayer, "account:id") local username = getElementData(targetPlayer, "account:username") or "N/A" local seconds = ((hours*60)*60) local rhours = hours -- text value if (hours==0) then hours = "Permanent" elseif (hours==1) then hours = "1 Hour" else hours = hours .. " Hours" end if hours == "Permanent" then reason = reason .. " (" .. hours .. ")" else reason = reason .. " (" .. hours .. ")" end exports['admin-system']:addAdminHistory(targetPlayer, thePlayer, reason, 2 , rhours) local banId = nil if (seconds == 0) then banId = addToBan(accountID, targetPlayerSerial, targetPlayerIP, getElementData(thePlayer, "account:id"), reason) if banId and tonumber(banId) then lastBan = mysql:query_fetch_assoc("SELECT * FROM bans WHERE id='"..banId.."'") if lastBanTimer and isTimer(lastBanTimer) then killTimer(lastBanTimer) lastBanTimer = nil end lastBanTimer = setTimer(function() lastBan = nil end, 1000*60*5,1) --5 minutes end else addBan(nil, nil, targetPlayerSerial, thePlayer, reason, seconds) end local adminUsername = getElementData(thePlayer, "account:username") local adminUserID = getElementData(thePlayer, "account:id") local adminTitle = exports.global:getPlayerAdminTitle(thePlayer) makeForumThread(targetPlayerName or "N/A", username, hours, adminTitle , playerName, thePlayer, reason, adminUsername, adminUserID, banId ) for key, value in ipairs(getElementsByType("player")) do if getPlayerSerial(value) == targetPlayerSerial then kickPlayer(value, thePlayer, reason) end end adminTitle = exports.global:getAdminTitle1(thePlayer) if (hiddenAdmin==1) then adminTitle = "A hidden admin" end if string.lower(commandName) == "sban" then exports.global:sendMessageToAdmins("[SILENT-BAN] " .. adminTitle .. " silently banned " .. targetPlayerName .. ". (" .. hours .. ")") exports.global:sendMessageToAdmins("[SILENT-BAN] Reason: " .. reason .. ".") elseif string.lower(commandName) == "forceapp" then outputChatBox("[FA] "..adminTitle .. " " .. playerName .. " forced app " .. targetPlayerName .. ".", root, 255,0,0, true ) hours = "Permanent" reason = "Failure to meet server standard. Please improve yourself then appeal on forums" outputChatBox("[FA]: Reason: " .. reason .. "." ,root, 255,0,0, true) else outputChatBox("[BAN] " .. adminTitle .. " banned " .. targetPlayerName .. ". (" .. hours .. ")", root, 255,0,0, true) outputChatBox("[BAN] Reason: " .. reason .. ".", root, 255,0,0, true) end end end end end end addCommandHandler("pban", banAPlayer, false, false) addCommandHandler("sban", banAPlayer, false, false)
  12. if string.lower(commandName) == "sban" then exports.global:sendMessageToAdmins("[SILENT-BAN] " .. adminTitle .. " silently banned " .. targetPlayerName .. ". (" .. hours .. ")") exports.global:sendMessageToAdmins("[SILENT-BAN] Reason: " .. reason .. ".") elseif string.lower(commandName) == "forceapp" then outputChatBox("[FA] "..adminTitle .. " " .. playerName .. " forced app " .. targetPlayerName .. ".", root, 255,0,0) hours = "Permanent" reason = "Failure to meet server standard. Please improve yourself then appeal on forums.owlgaming.net" outputChatBox("[FA]: Reason: " .. reason .. "." ,root, 255,0,0) else outputChatBox("[BAN] " .. adminTitle .. " banned " .. targetPlayerName .. ". (" .. hours .. ")", root, 255,0,0) outputChatBox("[BAN] Reason: " .. reason .. ".", root, 255,0,0) end if string.lower(commandName) == "sban" then exports.global:sendMessageToAdmins("[SILENT-BAN] " .. adminTitle .. " silently banned " .. targetPlayerName .. ". (" .. hours .. ")") exports.global:sendMessageToAdmins("[SILENT-BAN] Reason: " .. reason .. ".") elseif string.lower(commandName) == "forceapp" then outputChatBox("[FA] "..adminTitle .. " " .. playerName .. " forced app " .. targetPlayerName .. ".", root, 255,0,0, true) hours = "Permanent" reason = "Failure to meet server standard. Please improve yourself then appeal on forums.owlgaming.net" outputChatBox("[FA]: Reason: " .. reason .. "." ,root, 255,0,0, true) else outputChatBox("[BAN] " .. adminTitle .. " banned " .. targetPlayerName .. ". (" .. hours .. ")", root, 255,0,0, true) outputChatBox("[BAN] Reason: " .. reason .. ".", root, 255,0,0, true) end
  13. وش الكود اللي يجيب افضل لاعب من حيث القتل والسكور
  14. الحين لو في addEventHandler في مود من المودات وانا ابي اسوي مود جديد بنفس الحدث اللي فالمود الثاني زي التريقر كيف؟
  15. + لو تبيها لرتبه triggerServerEvent getAccountName getPlayerAccount isObjectInACLGroup aclGetGroup
  16. مشتغلت الطريقه ذي
  17. طيب لو مثلا bindKey في مود مشفر كيف الغيها
×
×
  • Create New...