Jump to content

Search the Community

Showing results for tags 'كود'.

  • 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

Found 17 results

  1. مساعدة في مود المود عبارة عن مود سجن حياة الواقعية jail-system كيف اخلي سجن الادمنية مشترك يعني الكل ينسجنون في سجن واحد يكونون مع بعض الي يعرف يقول لي كيف اسويه كذا وشكرا لكم اتمنى تردو في اسرع وقت
  2. سلام عليكم شباب اتمني تكونو بأحسن حال حاولت اسوي رتبة ادمن جديدة غير الرتب المعروفة في باك اب اول جيمنج حاولت اسوي رتبة Server founder وهذه اسماء الملفات اللي عدلت عليها integration --> functions_s if string.find(forumPerms, SERVERFOUNDER) then return exports.anticheat:changeProtectedElementDataEx(thePlayer, "admin_level", 8, true) end integration --> g_configs --MAXIME mysql = exports.mysql TESTER = 25 SCRIPTER = 32 LEADSCRIPTER = 79 COMMUNITYLEADER = 14 TRIALADMIN = 18 ADMIN = 17 SENIORADMIN = 64 SERVERFOUNDER = 88 -- رقم السماح بكتابة الاوامر في قاعدة البيانات LEADADMIN = 15 SUPPORTER = 30 VEHICLE_CONSULTATION_TEAM_LEADER = 39 VEHICLE_CONSULTATION_TEAM_MEMBER = 43 MAPPING_TEAM_LEADER = 44 MAPPING_TEAM_MEMBER = 28 STAFF_MEMBER = {32, 14, 18, 17, 64, 15, 30, 39, 43, 44, 28, 88} AUXILIARY_GROUPS = {32, 39, 43, 44, 28, 88} ADMIN_GROUPS = {14, 18, 17, 64, 15, 88} staffTitles = { [1] = { [0] = "Player", [1] = "Trial Administrator", [2] = "Administrator", [3] = "Senior Administrator", [4] = "Lead Administrator", [5] = "Server Managment", [6] = "-", [7] = "Vice Founder", [8] = "Server Founder", -- الفاوندر }, integration --> g_staff function isPlayerServerFounder(player) if not player or not isElement(player) or not getElementType(player) == "player" then return false end local adminLevel = getElementData(player, "admin_level") or 0 return (adminLevel >= 8) -- اللفل حق الادمن end admin-system --> Player --> s_player_commands حاولت اخلي الفاوندر بس هو اللي يسوي امر givemoney وهذا التغيير موجود في admin-system --> Player --> s_player_commands والامر اهو function giveMoney(thePlayer, commandName, target, money, ...) if exports["integration"]:isPlayerServerFounder(thePlayer) then if not (target) or not money or not (...) then outputChatBox("SYNTAX: /" .. commandName .. " [Partial Player Nick] [Money] [Reason]", thePlayer, 255, 194, 14) else local username = getPlayerName(thePlayer) local targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, target) if targetPlayer then money = tonumber(money) or 0 if money and money > 500000 then outputChatBox("For security reason, you're only allowed to give a player less than $500,000 at once.", thePlayer, 255, 0, 0) return false end if not exports.global:giveMoney(targetPlayer, money) then outputChatBox("Could not give player that amount.", thePlayer, 255, 0, 0) return false end هذه التغييرات فقط اللي سويتها وما سويت شئ غيرها وهذا الخطأ اللي يظهرلي في debugscript ساعدوني رجاءً ملاحظة : SERVERFOUNDER عشان الكود دا function getAdminGroups() -- this is used in c_adminstats to correspond levels to forum usergroups return { SUPPORTER, TRIALADMIN, ADMIN, SENIORADMIN, LEADADMIN, SERVERFOUNDER } end
  3. executeSQLQuery("CREATE TABLE IF NOT EXISTS `player_stats` (`username` TEXT, `Thirst` INT, `Hunger` INT)") addEventHandler("onPlayerQuit", function (Player) local atsh = getElementData(source, "Thirst") local hungry = getElementData(source, "Hunger") local username = getAccountName(getPlayerAccount(thePlayer)) local result = executeSQLQuery("SELECT * FROM player_stats WHERE `username` = ?", username) if (#result > 1) then executeSQLQuery("UPDATE `player_stats` SET `Hunger` = ?, `Thirst` = ? WHERE `username` = ?", hungry, atsh, username) else executeSQLQuery("INSERT INTO health (username, Thirst, Hunger) VALUES (?, ?, ?)", username, atsh, hungry) end end) addEventHandler("onPlayerLogin", root, function(_, account) local accountName = getAccountName(account) local result = executeSQLQuery("SELECT * FROM player_stats WHERE username = ?", accountName) if (#result > 1) then setElementData(source, "Thirst", result[1].Thirst) setElementData(source, "Hunger", result[1].Hunger) end end) هذا عشان مود الجوع والعطش بحيث ان لو اللاعب سجل خروج وجوعه 50 لما يرجع يصير جوعه 50 ما يصير 100 من فضلكم ساعدوني ليش هذا السكريبت ما يشتغل ؟
  4. executeSQLQuery("CREATE TABLE IF NOT EXISTS `player_stats` (`username` TEXT, `Thirst` INT, `Hunger` INT)") addEventHandler("onPlayerQuit", function (Player) local atsh = getElementData(source, "Thirst") local hungry = getElementData(source, "Hunger") local username = getAccountName(getPlayerAccount(thePlayer)) local result = executeSQLQuery("SELECT * FROM player_stats WHERE `username` = ?", username) if (#result > 1) then executeSQLQuery("UPDATE `player_stats` SET `Hunger` = ?, `Thirst` = ? WHERE `username` = ?", hungry, atsh, username) else executeSQLQuery("INSERT INTO health (username, Thirst, Hunger) VALUES (?, ?, ?)", username, atsh, hungry) end end) addEventHandler("onPlayerLogin", root, function(_, account) local accountName = getAccountName(account) local result = executeSQLQuery("SELECT * FROM player_stats WHERE username = ?", accountName) if (#result > 1) then setElementData(source, "Thirst", result[1].Thirst) setElementData(source, "Hunger", result[1].Hunger) end end) it isn't working please help
  5. السلآم عليكم آليوم حملت مود وجربته ف السيرفر بس م رضي المود عبارة عن اخر تسجيل دخول للادمنية ادري قديم بس لما افتح اللوحة م يطلع الحساب ولا أخر دخول كود سيرفر --[[function out( string ) outputDebugString( string ) end]] addEventHandler( 'onResourceStart', resourceRoot, function( ) --out( ' 1 ' ) if not ( xmlLoadFile( 'LastLogin.xml' ) ) then --out( ' 2 ' ) xmlSaveFile( xmlCreateFile( 'LastLogin.xml', 'LastLogin' ) ) end --out( ' 3 ' ) getAllAdminsAccounts( ) end ) function getTimeNow( ) local time = getRealTime( ) return string.format( '%04d-%02d-%02d %02d:%02d', time.year + 1900, time.month + 1, time.monthday, time.hour, time.minute ) end function setUserName( sName, sData ) local lFile = xmlLoadFile( 'LastLogin.xml' ) if ( lFile ) then local aChild = xmlCreateChild( lFile, 'aLastLogin' ) xmlNodeSetAttribute( aChild, 'sName', sName ) xmlNodeSetAttribute( aChild, 'sData', sData ) xmlSaveFile( lFile ) xmlUnloadFile( lFile ) end end function getUserName( sName ) local lFile = xmlLoadFile( 'LastLogin.xml' ) if ( lFile ) then for _, gChildren in ipairs( xmlNodeGetChildren( lFile ) ) do local gName = xmlNodeGetAttribute( gChildren, 'sName' ) if ( gName == sName ) then xmlUnloadFile( lFile ) return true end end xmlUnloadFile( lFile ) return false end end function destoryUserName( sName ) local lFile = xmlLoadFile( 'LastLogin.xml' ) if ( lFile ) then for _, gChildren in ipairs( xmlNodeGetChildren( lFile ) ) do local gName = xmlNodeGetAttribute( gChildren, 'sName' ) if ( gName == sName ) then xmlDestroyNode( gChildren ) xmlSaveFile( lFile ) xmlUnloadFile( lFile ) return true end end xmlUnloadFile( lFile ) end end function updateUserName( sName, sData ) local lFile = xmlLoadFile( 'LastLogin.xml' ) if ( lFile ) then for _, gChildren in ipairs( xmlNodeGetChildren( lFile ) ) do local gName = xmlNodeGetAttribute( gChildren, 'sName' ) if ( gName == sName ) then xmlDestroyNode( gChildren ) xmlSaveFile( lFile ) xmlUnloadFile( lFile ) setUserName( sName, sData ) return true end end xmlUnloadFile( lFile ) end end function getAllAdminsAccounts( ) for _, aAccounts in next, getAccounts( ) do if hasObjectPermissionTo( 'user.' .. getAccountName( aAccounts ), 'general.adminpanel', true ) then if not( getUserName( getAccountName( aAccounts ) ) ) then --out( getAccountName( aAccounts ) ) setUserName( getAccountName( aAccounts ), getTimeNow( ) ) end end end end function isHGAP( aAccountName ) if hasObjectPermissionTo( 'user.' .. aAccountName, 'general.adminpanel', true ) then return true end return false end addEventHandler( 'onPlayerLogin', getRootElement( ), function( _, theCurrentAccount ) if getUserName( getAccountName( theCurrentAccount ) ) and isHGAP( getAccountName( theCurrentAccount ) ) then updateUserName( getAccountName( theCurrentAccount ), 'online' ) --out( ' 1 ' ) elseif not getUserName( getAccountName( theCurrentAccount ) ) and isHGAP( getAccountName( theCurrentAccount ) ) then setUserName( getAccountName( theCurrentAccount ), 'online' ) --out( ' 2 ' ) elseif getUserName( getAccountName( theCurrentAccount ) ) and not isHGAP( getAccountName( theCurrentAccount ) ) then destoryUserName( getAccountName( theCurrentAccount ) ) --out( ' 3 ' ) end end ) addEventHandler( 'onPlayerQuit', getRootElement( ), function( ) local pAccount = getPlayerAccount( source ) if getUserName( getAccountName( pAccount ) ) and isHGAP( getAccountName( pAccount ) ) then updateUserName( getAccountName( pAccount ), getTimeNow( ) ) --out( ' 1 ' ) elseif getUserName( getAccountName( pAccount ) ) and not isHGAP( getAccountName( pAccount ) ) then destoryUserName( getAccountName( pAccount ) ) --out( ' 2 ' ) end end ) addEventHandler( 'onPlayerLogout', getRootElement( ), function( thePreviousAccount ) if getUserName( getAccountName( thePreviousAccount ) ) and isHGAP( getAccountName( thePreviousAccount ) ) then updateUserName( getAccountName( thePreviousAccount ), getTimeNow( ) ) --out( ' 1 ' ) elseif getUserName( getAccountName( thePreviousAccount ) ) and not isHGAP( getAccountName( thePreviousAccount ) ) then destoryUserName( getAccountName( thePreviousAccount ) ) --out( ' 2 ' ) end end ) function getDataTime( time ) --out( time ) if ( time ~= 'online' ) then local aYear, aMonth, aDay = string.match( time, '^(.-)-(.-)-(.-) (.-):(.-)$' ) local aYear1, aMonth1, aDay1 = string.match( getTimeNow( ), '^(.-)-(.-)-(.-) (.-):(.-)$' ) if ( aYear == aYear1 ) and ( aMonth == aMonth1 ) and ( aDay == aDay1 ) then return 'Today' elseif ( aYear == aYear1 ) and ( aMonth == aMonth1 ) and ( aDay ~= aDay1 ) then local aDay = ( aDay - 1 ) if ( aDay1 == string.format( '%02d', aDay ) ) then return 'Yesterday' elseif ( aMonth == aMonth1 ) and ( aDay1 ~= aDay ) then local aDay = ( aDay1 - aDay ) return math.abs( aDay ).. ' Day ago' end elseif ( aMonth ~= aMonth1 ) then return 'months ago' end end return ' ' end function getColorData( sData ) if ( sData == 'online' ) then return 0, 255, 0 elseif ( getDataTime( sData ) == 'Today' ) then return 255, 255, 0 elseif ( getDataTime( sData ) == 'Yesterday' ) then return 255, 255, 0 else return 255, 0, 0 end end function getAllData( ) local lFile = xmlLoadFile( 'LastLogin.xml' ) if ( lFile ) then for _, gChildren in ipairs( xmlNodeGetChildren( lFile ) ) do getCountOnlineAOtherwise( ) local gName = xmlNodeGetAttribute( gChildren, 'sName' ) local gData = xmlNodeGetAttribute( gChildren, 'sData' ) triggerClientEvent( 'onGetAllData', source, gName, gData, nOnline, nOfline, getColorData( gData ) ) end xmlUnloadFile( lFile ) end end addEvent( "aButtonRefresh", true ) addEventHandler( "aButtonRefresh", getRootElement( ), getAllData ) function getCountOnlineAOtherwise( ) local lFile = xmlLoadFile( 'LastLogin.xml' ) if ( lFile ) then nOnline = 0 nOfline = 0 for _, gChildren in ipairs( xmlNodeGetChildren( lFile ) ) do local gName = xmlNodeGetAttribute( gChildren, 'sData' ) if ( gName == 'online' ) then nOnline = ( nOnline + 1 ) --out( nOnline ) else nOfline = ( nOfline + 1 ) --out( nOfline ) end end xmlUnloadFile( lFile ) end end function delUsers ( ) for _, aAccounts in next, getAccounts( ) do if getUserName( getAccountName( aAccounts ) ) and not isHGAP( getAccountName( aAccounts ) ) then destoryUserName( getAccountName( aAccounts ) ) end end end delUsers ( ) وشكرا
  6. شباب أريد كود انه اذا ضغطت على أي زر يسوي أمر ، على سبيل المثال : belt يسوي أمر z اذا ضغطت على زر وشكرا لكم <3
  7. السلام عليكم ، أنا عندي مود للريسباون ، الي هو لما يموت الشخص على طول يطلع له الزر حق الريسباون ويسوي ريسباون ، بس أنا أريد انه الزر يظهر له ويكون مو شغال الا حتى تمر 90 ثانية علشان يشتغل ويقدر يكبس الزر، يعني مو أول ما يموت يطلع له الزر شغال ويسوي ريسباون ، وشكرا لكم جميعا <3 ، فلو سمحتم زبطولي السكربت، هذا هو السكربت local bRespawn = nil function showRespawnButton(victimDropItem) showCursor(true) local width, height = 201,54 local scrWidth, scrHeight = guiGetScreenSize() local x = scrWidth/2 - (width/2) local y = scrHeight/1.1 - (height/2) bRespawn = guiCreateButton(x, y, width, height,"Respawn",false) guiSetFont(bRespawn,"sa-header") addEventHandler("onClientGUIClick", bRespawn, function () if bRespawn then destroyElement(bRespawn) bRespawn = nil showCursor(false) guiSetInputEnabled(false) end triggerServerEvent("es-system:acceptDeath", getLocalPlayer(), getLocalPlayer(), victimDropItem) showCursor(false) end, false) end addEvent("es-system:showRespawnButton", true) addEventHandler("es-system:showRespawnButton", getLocalPlayer(),showRespawnButton)
  8. مرحبا أريد كود انه المود كل 3 دقائق يسوي لفنسه ريسارت
  9. آلسلام عليكم آبي كود لمآ شخص يدخل آلسيرفر مآ يقدر يتكلم آلآ بعد دقيقتين ولمآ يجي يتكلم يقوله مآ تقدر تتكلم آلآ بعد دقيقتين ولو آتكلم تآني يقوله دقيقة و50 ثآنية - علي حسب آلوقت يعني كيف؟
  10. تكفون ي الربع ابي ماركلر تعديل سياره بدون لوحه يعدل السياره كامله من خلال اللمس فقط
  11. السلام عليكم , قمت بتعديل مود Chat-System , حيث أضفت ألتالي : ولكن لم يعمل , حيث أصبح فقط شات : Say " T " , Ooc " /ooc " , Ann " /ann " . ولم يعمل الشات LocalOOC " /b " ما المشكلة؟ وما الحل؟
  12. السلام عليكم اانا ابي كود منع اخراج الصوت لكل الاعبين اذاي مثال انا معي مود السينما اول ما اشغل فيديو السيرفر كله يسمع الصوت انا مش عايز غير الداخل السينما بس يسمع شكرا
  13. اهلا شباب ابي كود اذا مات الاعب يكت فـ الشات "لقد مت" واذا رسين من جديد يكتب بالشات لقد نزلت
  14. السلام عليكم ورحمة الله وبركاته كيفكم؟ ابي سوي local cj = getLocalPlayer() bindKey ( "1", "down", function() if cj then outputChatBox("cj") local x1,y1,z1 = 2485.00000, -1667.00000, 86.20466 local x2,y2,z2 = 2485.00000, -1667.00000, 20.20466 local x3,y3,z3 = 2263.43066, -1658.47412, 15.21893 local px, py, pz = getElementPosition(localPlayer) local xs,ys,zs = interpolateBetween ( x1,y1,z1, px, py, pz-20,0, "OutQuad") setCameraMatrix(xs,ys,zs,px, py, pz-20,0,0) else local xs2,ys2,zs2 = interpolateBetween ( x2,y2,z2, x2,y2,z2,0, "OutQuad") setCameraMatrix(x3,y3,z3,xs2,ys2,zs2,0,0) setCameraTarget (localPlayer) end end ) ما حرك
  15. شباب وش الخطا هنا يطلعلي الثاني هو الاول طبعا السيرفر شوتر function giveMoneyWinDie ( ) local account = getPlayerAccount ( source ); local playersAlive = getAliveGuys ( 2 ); local playersDead = getDeadGuys ( ); local pAll = playersAlive + playersDead; local checkYourPos = pAll - playersDead; local pos = nil; if tonumber ( checkYourPos ) == 1 then pos = 1 else pos = checkYourPos+1 ; end if tonumber ( checkYourPos ) == 2 then pos = 2; end if pos == 1 or pos == 21 or pos == 31 then posName = "st"; elseif pos == 2 or pos == 22 or pos == 32 then posName = "nd"; elseif pos == 3 or pos == 23 or pos == 33 then posName = "rd"; else posName = "th"; end if not getElementData ( source, "gotMoney" ) then local money = math.ceil ( getPlayerCount ( ) * 50 / pos ); givePlayerMoney ( source, money ); outputChatBox ( "* You were #abcdef[#ff0000" .. pos .. posName .. "#abcdef]#ffffff and #abcdefearned #ffffff" .. money .. "#00ff00$!", source, 255, 255, 255, true ); setElementData ( source, "gotMoney", true ); if account then setAccountData ( account, "money", tostring ( getPlayerMoney ( source ) ) ); end end end addEventHandler ( "onPlayerWasted", root , giveMoneyWinDie )
  16. السلام عليكم شباب معليش بس عندي طلب بسيط وهو كود يقتل كل اللاعبين لاني نسيته والله انا عارف killPed(هنا وش احط نسيت)
  17. السلام عليكم ورحمة الله انا عملت لما شخص يدخل الماركر نعمل صورة تفتح ونعمل صوت ونعمل الكاميرى تبعد شوي وترجع يعني ب الوقت بس المشكلة ان الكاميرا مب تبعد لما ادخل الماركر كل شي يصير الا ان الكاميرى تبعد يعني وترجع في وقت محدود محاولتي function sound() REC = guiCreateStaticImage( 0, 0, 1920, 1200, "LK-REC.png", false ) setTimer ( playSound, 1000, 1, "13.mp3" ) setTimer ( destroyElement, 3100, 1, REC ) setTimer ( setPedAnimation, 0800, 1, localPlayer,"RIOT","RIOT_ANGRY" ) setTimer ( setPedAnimation, 4000, 1, localPlayer, false ) setTimer ( setCameraMatrix, 4000, 1, localPlayer,-296.84891,1519.38721,75.35938,-302.39999389648,1510.3000488281,74.400001525879 ) end addEvent("sound", true) addEventHandler( "sound", getRootElement(), sound ) رجاء حل ومشكورين
×
×
  • Create New...