Jump to content

Me[Z]oO

Members
  • Posts

    1,830
  • Joined

  • Last visited

Everything posted by Me[Z]oO

  1. if source == Button_Close then guiSetVisible(wnd, false) showCursor(false) guiSetVisible(Rules_Window, false) guiSetInputEnabled(false)
  2. هات حدث الضغط علي زر مانك طارحو
  3. Me[Z]oO

    طلب

    هات محاولتك ولا تبي جاهز وخلاص
  4. https://www.youtube.com/watch?v=dGyb2d-kNz0 غريبة انت مسوي هالأيفون الخرافي وتبي جاهز وموضوعك اسهل من الايفون ؟
  5. function Show_Support() if guiGetVisible(wnd) == true then guiSetVisible(wnd, false) guiSetVisible(Rules_Window, false) guiSetVisible(Mute_Window, false) guiSetInputEnabled(false) showCursor(false) else guiSetVisible(wnd, true) guiSetInputEnabled(true) showCursor(true) end end bindKey("K", "down", Show_Support) لو ركزت شوي بتحلها -,-
  6. مو لازم اثبات انت معروف من زمان
  7. تبي جاهز يعني
  8. Me[Z]oO

    فنكشن

    م فهمت وضح زين -,-
  9. يعطيك العافية الله يعافيك =)
  10. Vehicle = { } addEventHandler ( "onMapLoad",root, function() for i,player in ipairs (getElementsByType("player")) do x,y,z = getElementPosition(player) setTimer(function() Vehicle[player] = createVehicle(ID Car,x,y,z) warpPedIntoVehicle ( player, Vehicle[player] ) end,30000,1) end end)
  11. كف عن الابداع حتي لا نقتل كفو والله روعة
  12. Me[Z]oO

    فنكشن

    لو حاططها واحد م يكرر مرة اخري
  13. Me[Z]oO

    فنكشن

    http://www.unitconversion.org/time/milliseconds-to-minutes-conversion.html م فهمت طلبك
  14. Me[Z]oO

    فنكشن

    setTimer(function() -- Your Code end,Period,0) Period = المدة
  15. علي الاقل تقول من ساعدك ,بالتوفيق
  16. بالتوفيق بكون اول زائر انشاء الله # ,
  17. انت بتحط علي اللاعبين الموجودين داتا لو لاعب دخل م بتنحط عليه داتا
  18. هذا لانك كاتب الايفنت غلط addEventHandler هيك ^
  19. شوف الدي بق واكيد مركب موددات كثيرة حجمها ثقيل
  20. اذا في احد مايخاف ربه فـ راح تصير سرقات .. عالعموم بالتوفيق .. +1
  21. Groups = {"Console", "Admin1", "SuperModerator1", "Moderator1", "Moderator2", "Master", "Moafek", "Sozr", "SuperModerator2", "msol.beot", "Super.Admin", "FDR", "Mangres", "m5fe", "Super.Police", "Big.Admin", "msol", "Head.Admin", "LVL1", "LVL2", "LVL3", "LVL4", "LVL5", "LVL6", "Help Console", "ACL-Manager", "General-Admin", "Help Console", "LVL1", "LVL2", "LVL3", "LVL4", "LVL5", "LVL6", "Everyone"} chat_range = 70 addEventHandler("onPlayerJoin", root, function() bindKey(source, "i", "down", "chatbox", "Local") end) addEventHandler("onResourceStart", resourceRoot, function() for i, player in pairs(getElementsByType("player")) do bindKey(player, "i", "down", "chatbox", "Local") end end) function isPlayerInRangeOfPoint(player, x, y, z, range) local px, py, pz = getElementPosition(player) return ((x-px)^2+(y-py)^2+(z-pz)^2)^0.5<=range end addCommandHandler("Local", function(player, _, ...) local px, py, pz = getElementPosition(player) local msg = table.concat({...}, " ") local nick = getPlayerName(player) local team = getPlayerTeam(player) local teamName local r, g, b if team then teamName = getTeamName(team) r, g, b = getTeamColor(team) else teamName = "" r, g, b = 255, 255, 255 end for _, v in ipairs(getElementsByType("player")) do if isPlayerInRangeOfPoint(v, px, py, pz, chat_range) or isPlayerOnGroup(v) then if not isPlayerMuted(player) then outputChatBox("#FFD500(Local) "..nick.."#E0FFFF:"..msg, v, r, g, b, true) else outputChatBox("#FF0000Sorry You Are Muted",source,255,0,0,true) end end end end) function isPlayerOnGroup(player) local account = getPlayerAccount(player) if account and not isGuestAccount(account) then local accName = getAccountName(account) for _, groupName in ipairs (Groups) do local group = aclGetGroup(groupName) if (group and isObjectInACLGroup("user."..accName, group)) or hasObjectPermissionTo(player, "function.Slap", false) then return true end end end end addEvent("noLocal",true) addEventHandler("noLocal", root, function() for i, player in pairs(getElementsByType("player")) do unbindKey(player, "i", "down", "chatbox", "Local") end end ) addEvent("yesLocal",true) addEventHandler("yesLocal", root, function() for i, player in pairs(getElementsByType("player")) do bindKey(player, "i", "down", "chatbox", "Local") end end ) ddEventHandler("onClientGUIClick",resourceRoot, function() if source == GUIEditor.button[3] then triggerServerEvent("yesLocal",localPlayer) elseif source == GUIEditor.button[4] then triggerServerEvent("noLocal",localPlayer) end end)
×
×
  • Create New...