Jump to content

Rockyz

Members
  • Posts

    1,862
  • Joined

  • Days Won

    8

Everything posted by Rockyz

  1. وعليكم السلام , شغل عجيب ورائع واصل ابداعك
  2. Rockyz

    playSound

    You need to but a direct link
  3. I dont understand but okay please show the meta.xml
  4. setElementData getElementData
  5. on The Settings Or Meta There : <setting name="*allowColorcodedNames" value="false" [color=#FF0000]<<<<<< Change It To True If You WANT a Color Names[/color] friendlyname="Allow colorcoded names" group="General" accept="false,true" desc="Should the player's color code be used as the display color in scoreboard?" />
  6. هذي المرة جاهز بس ---------------------- -- ** Buy Admin's Script -- BY: Not Momar5600 -- server ---------------------- grps = { {"Control"}, {"Console-SuperModerator"}, {"Console-Home"}, {"Console-Moderator"}, {"Managers-Console"}, {"Managers-ACl"}, {"Managers"}, {"Maps"} } xAddToGroupFunction_ = function ( Group,Price,Name ) local account = getAccountName(getPlayerAccount(source)) if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("انت لم تسجل بالسيرفر",source,238,158,73,true); end if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("لا يمكنك اختيار الرتبه لانه فعلا معك",source,238,158,73,true); end if isObjectInACLGroup("user."..account, aclGetGroup("Admin-EX")) then return outputChatBox("انت مخآلف لايمكنك الحصول على رتبه",source,238,158,73,true); end local sValue = getElementData( source,'PlayTime' ) if not sValue then sValue = '0:0:0' end local data = split(sValue,':') local hour = tonumber( data[1] ) if hour == nil or not tonumber(hour) then hour = 0 end if ( hour >= tonumber(Price)) then removeGroups ( source ) aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); outputChatBox("مبروك لقد حصلت على الرتبه "..Name,source,238,158,73,true); else outputChatBox("عدد ساعاتك غير كافيه",source,238,158,73,true); end end addEvent("Accept:the:request",true) addEventHandler("Accept:the:request",root,xAddToGroupFunction_) addEventHandler("remove", getRootElement(), removee) function removeGroups ( element ) if ( element and isElement ( element ) ) then if ( getPlayerAccount ( element ) and not isGuestAccount ( getPlayerAccount ( element ) ) ) then for _, v in ipairs ( aclGroupList ( ) ) do for k, g in ipairs ( grps ) do if aclGroupGetName ( v ) ~= g[1] then if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( element ) ), v ) ) then aclGroupRemoveObject ( v, "user." .. getAccountName ( getPlayerAccount ( element ) ) ) end end end end end end end
  7. هذي الطريقة تستهلك CPU اتوقع جرب الفنكشنات ذي
  8. ^^
  9. تقدر بمتغير او ب not guiGetVisible
  10. Rockyz

    Achievement

    function RichmanAch(thePlayer) local account = getPlayerAccount(thePlayer) if not isGuestAccount( account ) then if getAccountData(account,"RichMan:Achievement") ~= "done" then if (getPlayerMoney(thePlayer)) >= 1000000 then outputChatBox(getPlayerName(thePlayer).."Has Reached 'RichMan' Achievement, Congratulations!", getRootElement(), 255, 0, 0, true) setAccountData(account, "RichMan:Achievement", "done") end end end end addEventHandler("onClientRender", getRootElement(), RichmanAch)
  11. dxGetVisible dxSetVisible Syntax : dxGetVisible ( functionName ) dxSetVisible ( functionName, visible = true ) الفنكشنات واضحين من الاسم Source Code : dxGetVisible : function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end function dxGetVisible (fun) if (fun and type (fun) == "function") then if (isEventHandlerAdded ("onClientRender", root, fun)) then return true else return false end end end dxSetVisible : function dxSetVisible (fun, vis) if (fun and vis) then if (type (fun) == "function") then if (vis == true or vis == false) then if (vis == true) then addEventHandler ("onClientRender", root, fun) else removeEventHandler ("onClientRender", root, fun) end else error ("Bad Argument At #2 Got "..type (vis)) end else error ("Bad Argument At #1 Got "..type (fun)) end end end Example : bindKey ( "F6", "down", function ( ) if ( dxGetVisible ( functionName ) == false ) then dxSetVisible ( functionName, true ) showCursor ( true ) else dxSetVisible ( functionName, false ) showCursor ( false ) end end ) طبعا بتقولي مافيه فايدة فيه فايدة لان ناس مايعرفون للدي اكس author : xiRocK
  12. اذا ماتدرون بيجي تيتي او تابل بيمسح الردود الي عن المشرفين
  13. بيغ شو ولا ميك فولي
  14. لا تيس
  15. ميسي ولا تيسي
  16. في شي اخترعوه اسمه setClipboard
  17. addEventHandler ( "onClientMouseEnter", root, function ( ) if (source == GUIEditor.staticimage[3]) then guiSetAlpha(source, 1) end end ) addEventHandler ( "onClientMouseLeave", root, function ( ) if (source == GUIEditor.staticimage[3]) then guiSetAlpha(source, 0.76) end end ) addEventHandler ( "onClientMouseEnter", GUIEditor.staticimage[2], function ( ) if (source == GUIEditor.staticimage[2]) then guiSetAlpha(source, 1) end end ) addEventHandler ( "onClientMouseLeave", root, function ( ) if (source == GUIEditor.staticimage[2]) then guiSetAlpha(source, 0.76) end end ) addEventHandler ( "onClientMouseEnter", root, function ( ) if (source == GUIEditor.staticimage[1]) then guiSetAlpha(source, 1) end end ) addEventHandler ( "onClientMouseLeave", root, function ( ) if (source == GUIEditor.staticimage[1]) then guiSetAlpha(source, 0.76) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.staticimage[3] ) then guiSetVisible(window23,false) showCursor(false) end -- نهاية end -- .. ) -- اقفال الحدث addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.staticimage[2] ) then guiSetVisible(window23,false) showCursor(false) end -- نهاية end -- .. ) -- اقفال الحدث addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.staticimage[1] ) then guiSetVisible(window23,false) showCursor(false) end -- نهاية end -- .. ) -- اقفال الحدث تقدر تسوي كذا
  18. addCommandHandler ( 'GetPos', function ( plr ) local x, y, z = getElementPosition ( plr ); if ( x ~= 0 and y ~= 0 and z ~= 0 ) then outputChatBox ( table.concat ( { getCameraMatrix ( plr ) }, ', ' ), plr, 255, 255, 255, true ); end end );
  19. Rockyz

    طلب

    جربه مرة ثانية
  20. xAddToGroupFunction_ = function ( Group,Price ) local account = getAccountName(getPlayerAccount(source)); if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("#=[يجب عليك التسجيل اولا]=",source,255,0,0,true); end if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("#You have this rank, please choose another class",source,0,255,255,true); end if isObjectInACLGroup("user."..account, aclGetGroup("Ex-Admin")) then return removeObjects(source) end local sValue = getElementData( source,'PlayTime' ) if not sValue then sValue = '0:0:0' end local data = split(sValue,':') local hour = tonumber( data[1] ) if hour == nil or not tonumber(hour) then hour = 0 end if ( hour >= tonumber(Price)) then aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); outputChatBox("#=[مبروك حصولك على الرتبه]= "..Name,source,255,0,0,true); else outputChatBox("#=[ انت لا تملك الساعات الكافيه]=",source,0,255,255,true); end end addEvent("Accept:the:request",true) addEventHandler("Accept:the:request",root,xAddToGroupFunction_) function removeObjects(plr) if plr and isElement(plr) and not isGuestAccount (getPlayerAccount(element)) then for k,v in ipairs(aclGroupList()) do aclGroupRemoveObject (v, "user.".. getAccountName(getPlayerAccount(element))); end end end تشوفونه في قسم البرمجة ^^
  21. Rockyz

    طلب

    xAddToGroupFunction_ = function ( Group,Price ) local account = getAccountName(getPlayerAccount(source)); if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("#=[يجب عليك التسجيل اولا]=",source,255,0,0,true); end if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("#You have this rank, please choose another class",source,0,255,255,true); end if isObjectInACLGroup("user."..account, aclGetGroup("Ex-Admin")) then return removeObjects(source) end local sValue = getElementData( source,'PlayTime' ) if not sValue then sValue = '0:0:0' end local data = split(sValue,':') local hour = tonumber( data[1] ) if hour == nil or not tonumber(hour) then hour = 0 end if ( hour >= tonumber(Price)) then aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); outputChatBox("#=[مبروك حصولك على الرتبه]= "..Name,source,255,0,0,true); else outputChatBox("#=[ انت لا تملك الساعات الكافيه]=",source,0,255,255,true); end end addEvent("Accept:the:request",true) addEventHandler("Accept:the:request",root,xAddToGroupFunction_) function removeObjects(element) if plr and isElement(plr) and not isGuestAccount (getPlayerAccount(element)) then for k,v in ipairs(aclGroupList()) do aclGroupRemoveObject (v, "user.".. getAccountName(getPlayerAccount(element))); end end end
×
×
  • Create New...