Jump to content

` Allawi

Members
  • Posts

    329
  • Joined

  • Last visited

Everything posted by ` Allawi

  1. viewtopic.php?f=160&t=91712&p=825164&hilit=getAccountsBySerial#p825164
  2. 21 انت متاكد ان في بالك رقم محدود ولا شخص محدود
  3. 5 × 60000 = 300000 300000 = 5 دقائق
  4. ` Allawi

    طلب

    تجيب لك الكلام مو تجيب لك الشي المحدد guiGridListGetItemText وظيفة اذا تبي تحصل على الشي المحدد استخدم الوظيفة التالية guiGridListGetSelectedItem الاول استخدم التحقق التالي row وعشان تتحقق انه محدد الـ if guiGridListGetSelectedItem(gridlist) == 0 then
  5. الحدث يطلب التغيير من وظيفة setElementModel في لوحة الادمنية مستخدمين spawnPlayer أمثلة addCommandHandler("ss1", function(player,command,model) local model = tonumber(model) setElementModel(player,model) end ) addCommandHandler("ss2", function(player,command,model) local x,y,z = getElementPosition(player) local rotation = getPedRotation(player) local model = tonumber(model) local interior = getElementInterior(player) local dimension = getElementDimension(player) local team = getPlayerTeam(player) spawnPlayer(player,x,y,z,rotation,model,interior,dimension,team) end ) جرب المثالين مع السكربت وشوف الفرق التعديل في سكربت الادمن admin/server/admin_server.lua سطر 904 استبدلة بالسطر التالي if ( setElementModel ( player, data ) ) then
  6. تم التعديل ارجع حمله من جديد
  7. هو مايمسحها هو فقط يتحقق اذا غيرت شخصية من الشخصيات المضافة في الجدول يرجع لك الشخصية السابقة
  8. وش هو اللي ماضبط فيه
  9. تم تعديل الكود
  10. addEventHandler("onClientGUIClick",root, function() if source == gridlist then if guiGridListGetSelectedItem(gridlist) ~= -1 then guiSetText(memo,RulesTable[guiGridListGetSelectedItem(gridlist) + 1][2]) end end end ) جرب
  11. xAddToGroupFunction_ = function ( Group,Price,Name ) local account = getAccountName(getPlayerAccount(source)); if isGuestAccount(getPlayerAccount(source)) then return outputChatBox(" * يجب عليك التسجيل اولاَ",source,255,0,255,true); end if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("** لديك هذهـ الرتبة فعـلا ! ",source,255,0,255,true); end local sValue = getElementData( source,'Level' ) if not sValue then sValue = '0' end local data = tonumber(string.sub(sValue, 6)) local hour = tonumber( data ) if hour == nil or not tonumber(hour) then hour = 0 end if not isObjectInACLGroup("user."..account, aclGetGroup(tostring("ExAdmin"))) then if ( hour >= tonumber(Price)) then removeGroups(source); aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); outputChatBox("** تم اضافة الرتبة بنجاح | "..Name,source,0,255,255,true); else outputChatBox("**ليس لديك لفلات كافية",source,255,0,0,true); end else outputChatBox("**لا يمكنك شراء رتبة لأنك مخالف",source,255,0,0,true); end end addEvent("Accept:the:request",true) addEventHandler("Accept:the:request",root,xAddToGroupFunction_) function removeGroups ( element ) if ( element and isElement ( element ) ) then if ( getPlayerAccount ( element ) and not isGuestAccount ( getPlayerAccount ( element ) ) ) then for _, v in ipairs ( aclGroupList ( ) ) do if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( element ) ), v ) ) then aclGroupRemoveObject ( v, "user." .. getAccountName ( getPlayerAccount ( element ) ) ) end end end end end
  12. viewtopic.php?f=160&t=92615&p=833998&hilit=aclGroupList#p833998
  13. حياك الله يلغي الشخصيات
  14. السلام عليكم ورحمة الله وبركاته بسم الله الرحمن الرحيم Change Skin: مضاد الشخصيات الوصخة Image: Download: here Info: السكربت غير مشفر يمكنك معرفة كيفية استخدامة من خلال الاكواد ويمكنك ايضا التعديل عليه Note: عندما تقوم بعمل إعادة تشغيل لسكربت ستحذف جميع البيانات داخل الجدول لذلك يمكنك اضافتها بنفسك ولن تحذف وفي امان الله
  15. الله يعطيك الف عافيهه مشكوور والله مرره , ضبط الله يسعدك حياك الله
  16. addEventHandler("onClientSoundStarted",root, function(reason) if reason == "play" then for index,sound in ipairs(getElementsByType("sound")) do stopSound(sound) end end end )
  17. هذا مأخوذ من سكربت الأدمنية وحدث الـ aPlayer هو استقبال الـ triggerServerEvent طبعا الحدث server
×
×
  • Create New...