Jump to content

' A F .

Members
  • Posts

    2,156
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by ' A F .

  1. العفو حيأك الله ,,
  2. تحريك اللوحة , يمكن هاذا سهل لـك ---- يجيب الاعبين الي بالعالم الوهمي تفضل سويته لك function GetPlayerInDim ( TheDim ) local ThePlayers = { } if ( type ( TheDim ) ~= "number" ) then return false end for Index,Players in ipairs ( getElementsByType ( "player" ) ) do if ( getElementDimension ( Players ) == TheDim ) then table["insert"] ( ThePlayers , Players ) end end return ThePlayers end -- Ex# for i,v in ipairs ( GetPlayerInDim ( 5 ) ) do outputChatBox ( getPlayerName ( v ) ) end
  3. كودك الاول صحيح بس عشانك حاط ( 3.00 ) ء وهو اخر شيء 1 الطلب الثاني مافهمت عليك الطلب الثالث تفضل
  4. addCommandHandler getPlayerAccount isGuestAccount getAccountName isObjectInACLGroup giveWeapon outputChatBox
  5. تفضل addEventHandler("onClientResourceStart", resourceRoot, function() Name = guiCreateButton(243, 298, 114, 23, "Name", false) guiSetProperty(Name, "NormalTextColour", "FFAAAAAA") end ) addEventHandler("onClientGUIClick",root, function ( ) if ( getElementType ( source ) == "gui-button" ) then local TheTime = getRealTime ( ) setElementData ( source , "TimeClicked" , {TheTime["hour"],TheTime["minute"],TheTime["second"]} ) end end ) addCommandHandler("gcb", function ( ) local Data = getElementData ( Name , "TimeClicked" ) if ( Data ) then outputChatBox(Data[1]..":"..Data[2]..":"..Data[3]) end end )
  6. لـو كتب تاريخ الميلاد واليوم والشهر بالي هو ولد فيه يطلع .. لازم تستخدم getAge
  7. لا يجيب كل الاعبين
  8. @taha201100 اقبل سكايب ..
  9. تـم سويته لك .. -- Client GUIEditor = { button = {}, edit = {}, window = {}, gridlist = {}, label = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(245, 103, 323, 413, "لوحة الادارهـ", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1] , false ) GUIEditor.gridlist[1] = guiCreateGridList(9, 21, 303, 305, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "الحساب", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "الاسم", 0.5) guiGridListAddColumn(GUIEditor.gridlist[1], "الرتبة", 0.9) GUIEditor.button[1] = guiCreateButton(0, 307, 154, 47, "", false, GUIEditor.gridlist[1]) GUIEditor.label[1] = guiCreateLabel(111, 313, 100, 31, "", false, GUIEditor.gridlist[1]) GUIEditor.button[2] = guiCreateButton(10, 381, 86, 23, "×", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(102, 385, 144, 26, "Created By KilleR", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 255, 0, 0) end ) addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) outputChatBox('-( منور مود كيلر لمعرفة الادامن )- ',math.random(255),math.random(255),math.random(255),true) end end ) addEvent ( "OpenWindow", true ) addEventHandler ( "OpenWindow", root, function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) guiGridListClear ( GUIEditor.gridlist[1] ) for Index,Players in ipairs ( getElementsByType("player") ) do local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText ( GUIEditor.gridlist[1] , row , 1 , tostring ( getElementData ( Players , "Account_" ) ) , false , false ) guiGridListSetItemText ( GUIEditor.gridlist[1] , row , 2 , tostring ( getPlayerName ( Players ) ) , false , false ) local acl = getElementData ( Players , "Acls_" ) guiGridListSetItemText ( GUIEditor.gridlist[1] , row , 3 , tostring( table.concat(acl, ", ") ) , false , false ) end end ) -- Server function getPlayerGroups(thePlayer) local acls = {} local account = getPlayerAccount(thePlayer) if (account) and not (isGuestAccount(account)) then local accountName = getAccountName(account) for i,group in ipairs(aclGroupList()) do if (isObjectInACLGroup( "user." ..accountName, group)) then local groupName = aclGroupGetName(group) table.insert(acls, groupName) end end end return acls end addEventHandler("onResourceStart",resourceRoot, function ( ) for Index,Players in ipairs ( getElementsByType("player") ) do local Account = getPlayerAccount ( Players ) if ( not isGuestAccount ( Account ) ) then setElementData ( Players , "Account_" , getAccountName ( Account ) ) setElementData ( Players , "Acls_" , getPlayerGroups ( Players ) ) else setElementData ( Players , "Account_" , "N/A") setElementData ( Players , "Acls_" , "N/A") end end end ) addEventHandler("onPlayerJoin",root, function ( ) setElementData ( source , "Account_" , "N/A") setElementData ( source , "Acls_" , "N/A") end ) addEventHandler("onPlayerLogin",root, function ( _ , acc ) setElementData ( Players , "Account_" , getAccountName ( acc ) ) setElementData ( Players , "Acls_" , getPlayerGroups ( source ) ) end ) addEventHandler("onPlayerLogout",root, function ( ) setElementData ( source , "Account_" , "N/A") setElementData ( source , "Acls_" , "N/A") end ) ----- local Groups = { "Level 4", "Level 5", "Level 6", "Head.Admin", "Console", } addCommandHandler ( "KilleR", function ( p ) for _,Server in ipairs ( Groups ) do if ( isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( p ) ), aclGetGroup ( Server ) ) ) then triggerClientEvent ( p, "OpenWindow", p ) end end end )
  10. نسيته يعطيك العافية ..
  11. ' A F .

    طلب

    ^ الكود حقي ؟
  12. شوف هاذا مثآل local mr = math["random"] local rColor,gColor,pColor = mr(0,255),mr(0,255),mr(0,188) outputChatBox("Hello World",rColor,gColor,bColor,true)
  13. getPlayerAccount getAccountName getPlayerName getPlayerAcls
  14. ' A F .

    طلب

    addEventHandler("onClientGUIClick",root, function() if ( source == GUIEditor.button[1] ) then if ( guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 ) then local playerName = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) local amount = guiGetText(GUIEditor.edit[1]) triggerServerEvent("Floos",localPlayer,amount,playerName) else outputChatBox("#ff0000*#ffff00[Admin]#ff0000 Please Select Player!!", 255, 0, 0, true) end end end ) -- Server addEvent("Floos", true) addEventHandler("Floos", root, function( amount,plr ) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Console")) then if ( tonumber ( amount ) ) then if ( getPlayerName ( client ) ~= getPlayerFromName ( plr ) ) then if ( getPlayerFromName( plr ) ) then if ( getPlayerMoney ( source ) >= tonumber ( amount ) ) then takePlayerMoney(source,tonumber(amount)) givePlayerMoney(getPlayerFromName(plr),tonumber(amount)) outputChatBox("#ff0000*#ffff00[Admin]#ff0000 You Has Give #ffff00( " .. getPlayerName(getPlayerFromName(plr))) .. " #00ff00$#ffff00 ) Money ", source, 0, 150, 255, true) outputChatBox("#ff0000*#ffff00[Admin]#ff0000 *".. getPlayerName(source) .. " #ff0000Has Given you #FFFF00( " .. getPlayerName(getPlayerFromName(plr)) .. " #00ff00$#ffff00 ) Money #ff0000 !", getPlayerFromName(plr), 255, 0, 0, true) else outputChatBox("#ff0000*#ffff00[Admin]#ff0000 You Dont Have Money!!", source, 255, 0, 0, true) end end end end end )
  15. @Soking . ليه مآيركب مودات مو مشفرة .. صحيح ان البعض يكون عقلة صغير ويلغم ويشفر .. بسس انت اذا بتركب مشفره ركب وانت وآثق هاذا آهم شيء .. المهم بـ التوفيق لك , واتمنى ان سيرفرك يشتهر بـ معنى الكلمة ..
  16. انت وش دخلك ؟ انا آحب اكثر آسطر وياليت تسوي له نظام وتختصر له بطريقتك .. ي حلو
×
×
  • Create New...