
momar5700
Members-
Posts
381 -
Joined
-
Last visited
Everything posted by momar5700
-
تم اصلاحها تمت الافادة GUIEditor = { progressbar = {}, edit = {}, button = {}, window = {}, label = {}, gridlist = {} } local screenW, screenH = guiGetScreenSize() Window2 = guiCreateWindow(189, 144, 446, 336, "لوحة معلومات مانجرس", false) guiWindowSetSizable(Window2, false) guiSetAlpha(Window2, 1.00) guiSetVisible(Window2,false) GUIEditor.progressbar[1] = guiCreateProgressBar(9, 19, 428, 308, false, Window2) GUIEditor.label[1] = guiCreateLabel(7, 8, 417, 33, "mangres server by momar", false, GUIEditor.progressbar[1]) guiSetFont(GUIEditor.label[1], "sa-gothic") guiLabelSetColor(GUIEditor.label[1], 25, 245, 9) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.label[2] = guiCreateLabel(6, 55, 416, 32, "قبل عمل اي شيء يجب اولاتحديد لاعب", false, GUIEditor.progressbar[1]) guiLabelSetColor(GUIEditor.label[2], 243, 81, 10) guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[2], "center") GUIEditor.label[3] = guiCreateLabel(6, 103, 416, 32, "عند سحب مخالفة تاكد ان لاعب ليس عنده مخالفة", false, GUIEditor.progressbar[1]) guiLabelSetColor(GUIEditor.label[3], 243, 81, 10) guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[3], "center") GUIEditor.label[4] = guiCreateLabel(6, 159, 416, 32, "عندما تريد ان تضع للاعب مخالفة يجب عليك تجديد لاعب ثم دوس علي اعطاء مخالفة", false, GUIEditor.progressbar[1]) guiLabelSetColor(GUIEditor.label[4], 243, 81, 10) guiLabelSetHorizontalAlign(GUIEditor.label[4], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[4], "center") GUIEditor.label[5] = guiCreateLabel(5, 205, 416, 32, "قوانين: عدم اعطاء الاعبين اكثر من عشر مخالفات باليوم", false, GUIEditor.progressbar[1]) guiLabelSetColor(GUIEditor.label[5], 243, 81, 10) guiLabelSetHorizontalAlign(GUIEditor.label[5], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[5], "center") GUIEditor.button[4] = guiCreateButton(242, 253, 181, 39, "عوده لي لوحة مخالفات", false, GUIEditor.progressbar[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFA019F") BTN3_close2 = guiCreateButton(18, 255, 170, 39, "اغلاق الوحة تعليمات", false, GUIEditor.progressbar[1]) guiSetProperty(BTN3_close2, "NormalTextColour", "FFFA0000") GppWindow = guiCreateWindow(191, 156, 427, 290, "=[ لوحة مانجرس لاعطاء مخالفات وسحبها ]=", false) guiWindowSetSizable(GppWindow, false) guiSetVisible(GppWindow,false) guiSetProperty(GppWindow, "CaptionColour", "FFFF00CC") GUIEditor.edit[2] = guiCreateEdit(9, 22, 195, 31, "بــحــث ....", false, GppWindow) GUIEditor.button[1] = guiCreateButton(225, 64, 176, 51, "=[اعطاء مخالفة]=", false, GppWindow) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[2] = guiCreateButton(212, 236, 203, 44, "✖ اغلاق لوحة", false, GppWindow) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "HoverTextColour", "FF990909") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFF2929") GUIEditor.button[3] = guiCreateButton(225, 120, 176, 51, "=[سحب مخالفة]=", false, GppWindow) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF01FD60") GUIEditor.button[5] = guiCreateButton(209, 179, 209, 45, "=[ تعليمات ]=", false, GppWindow) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF01FD60") GUIEditor.label[1] = guiCreateLabel(390, 24, 31, 28, "رتبه:", false, GppWindow) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.progressbar[2] = guiCreateProgressBar(221, 20, 169, 38, false, GppWindow) GUIEditor.label[2] = guiCreateLabel(11, 4, 147, 28, "Admin-EX", false, GUIEditor.progressbar[2]) guiLabelSetColor(GUIEditor.label[2], 254, 0, 0) guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[2], "center") -------------------------- ---Grid list ------------------------- addEventHandler("onClientResourceStart",resourceRoot, function() GUIEditor.gridlist[1] = guiCreateGridList(9, 55, 197, 226, false, GppWindow) guiGridListSetSelectionMode(GUIEditor.gridlist[1],2) local column = guiGridListAddColumn( GUIEditor.gridlist[1], "Player Name", 0.5 ) if ( column ) then for id, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText ( GUIEditor.gridlist[1], row, column, getPlayerName(player), false, false ) guiGridListSetItemColor ( GUIEditor.gridlist[1], row, column, 0, 250, 154, 255 ) end addEventHandler ( "onClientGUIClick", GUIEditor.gridlist[1], click ) end end) function click () local playerName = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) guiSetText ( GUIEditor.edit[2], playerName ) end ---------------------------- --Show panel from command -------------------------- function showPanel () guiSetVisible (GppWindow, true) showCursor (true) playSound("open.mp3",false) end addEvent( "showPanel", true ) addEventHandler ( "showPanel", getRootElement(), showPanel) ------------------------ --Event to bindKey ------------------------ function show() if guiGetVisible(GppWindow) == true then guiSetVisible(GppWindow,false) showCursor(false) else guiSetVisible(GppWindow,true) showCursor(true) end end addEvent("show",true) addEventHandler("show",root,show) addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) ----------------------- --GetPermission --------------------- function GetPermission() triggerServerEvent ("OpenPanel", getLocalPlayer(), OpenPanel) end addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[2] then -- هنا يتحققق بأن الشيء اللي نبيه يشتغل عليه الحدث هو الزر حق الاغلاق guiSetVisible(GppWindow,false) showCursor(false) -- هنا يغلق اللوحة ويشيل المؤشر بعد مايتحقق من الشرط end -- نهاية end -- .. ) -- اقفال الحدث addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[5] then -- هنا يتحقق بأن الشيء اللي نبي الحدث يتطبق عليه هو الزر حق فتح لوحة رقم 2 guiSetVisible(Window2,true) showCursor(true) -- هنا يفتح لنا اللوحة guiSetVisible(GppWindow,false) -- إغلاق نافذة 1 end -- نهاية end -- .. ) -- إقفال addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[4] then -- هنا يتحقق بأن الشيء اللي نبي الحدث يتطبق عليه هو الزر حق فتح لوحة رقم 2 guiSetVisible(GppWindow,true) showCursor(true) -- هنا يفتح لنا اللوحة guiSetVisible(Window2,false) -- إغلاق نافذة 1 end -- نهاية end -- .. ) -- إقفال function onGuiClick (button, state, absoluteX, absoluteY) if (source == BTN3_close2) then guiSetVisible (Window2, false) showCursor (false) elseif (source == GUIEditor.button[3]) then local name = guiGetText ( GUIEditor.edit[2] ) local target = getPlayerFromName(name) triggerServerEvent ("remove", getLocalPlayer(), target) elseif (source == GUIEditor.button[1]) then local name = guiGetText ( GUIEditor.edit[2] ) local target = getPlayerFromName(name) triggerServerEvent("Admin-EX", getLocalPlayer(), target) playSound("sec.wav",false) end end function nopsound () playSound("np.mp3",false) end addEvent( "nopsound", true ) addEventHandler ( "nopsound", getRootElement(), nopsound) function removedsound () playSound("removed.wav",false) end addEvent( "removedsound", true ) addEventHandler ( "removedsound", getRootElement(), removedsound) function list() guiGridListClear(GUIEditor.gridlist[1]) for id, players in ipairs (getElementsByType("player")) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, getPlayerName(players), false, false) guiGridListSetItemColor ( GUIEditor.gridlist[1], row, 1, 0, 250, 154, 255 ) end end addEventHandler("onClientPlayerJoin", getRootElement(), list) addEventHandler("onClientPlayerQuit", getRootElement(), list) addEventHandler("onClientPlayerChangeNick", getRootElement(), list)
-
اوف ظهرت مشكله GUIEditor = { progressbar = {}, edit = {}, button = {}, window = {}, label = {}, gridlist = {} } local screenW, screenH = guiGetScreenSize() Window2 = guiCreateWindow(189, 144, 446, 336, "لوحة معلومات مانجرس", false) guiWindowSetSizable(Window2, false) guiSetAlpha(Window2, 1.00) guiSetVisible(Window2,false) GUIEditor.progressbar[1] = guiCreateProgressBar(9, 19, 428, 308, false, Window2) GUIEditor.label[1] = guiCreateLabel(7, 8, 417, 33, "mangres server by momar", false, GUIEditor.progressbar[1]) guiSetFont(GUIEditor.label[1], "sa-gothic") guiLabelSetColor(GUIEditor.label[1], 25, 245, 9) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.label[2] = guiCreateLabel(6, 55, 416, 32, "قبل عمل اي شيء يجب اولاتحديد لاعب", false, GUIEditor.progressbar[1]) guiLabelSetColor(GUIEditor.label[2], 243, 81, 10) guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[2], "center") GUIEditor.label[3] = guiCreateLabel(6, 103, 416, 32, "عند سحب مخالفة تاكد ان لاعب ليس عنده مخالفة", false, GUIEditor.progressbar[1]) guiLabelSetColor(GUIEditor.label[3], 243, 81, 10) guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[3], "center") GUIEditor.label[4] = guiCreateLabel(6, 159, 416, 32, "عندما تريد ان تضع للاعب مخالفة يجب عليك تجديد لاعب ثم دوس علي اعطاء مخالفة", false, GUIEditor.progressbar[1]) guiLabelSetColor(GUIEditor.label[4], 243, 81, 10) guiLabelSetHorizontalAlign(GUIEditor.label[4], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[4], "center") GUIEditor.label[5] = guiCreateLabel(5, 205, 416, 32, "قوانين: عدم اعطاء الاعبين اكثر من عشر مخالفات باليوم", false, GUIEditor.progressbar[1]) guiLabelSetColor(GUIEditor.label[5], 243, 81, 10) guiLabelSetHorizontalAlign(GUIEditor.label[5], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[5], "center") GUIEditor.button[4] = guiCreateButton(242, 253, 181, 39, "عوده لي لوحة مخالفات", false, GUIEditor.progressbar[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFA019F") BTN3_close2 = guiCreateButton(18, 255, 170, 39, "اغلاق الوحة تعليمات", false, GUIEditor.progressbar[1]) guiSetProperty(BTN3_close2, "NormalTextColour", "FFFA0000") GppWindow = guiCreateWindow(191, 156, 427, 290, "=[ لوحة مانجرس لاعطاء مخالفات وسحبها ]=", false) guiWindowSetSizable(GppWindow, false) guiSetVisible(GppWindow,false) guiSetProperty(GppWindow, "CaptionColour", "FFFF00CC") GUIEditor.edit[2] = guiCreateEdit(9, 22, 195, 31, "بــحــث ....", false, GppWindow) GUIEditor.button[1] = guiCreateButton(225, 64, 176, 51, "=[اعطاء مخالفة]=", false, GppWindow) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[2] = guiCreateButton(212, 236, 203, 44, "✖ اغلاق لوحة", false, GppWindow) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "HoverTextColour", "FF990909") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFF2929") GUIEditor.button[3] = guiCreateButton(225, 120, 176, 51, "=[سحب مخالفة]=", false, GppWindow) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF01FD60") GUIEditor.button[5] = guiCreateButton(209, 179, 209, 45, "=[ تعليمات ]=", false, GppWindow) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF01FD60") GUIEditor.label[1] = guiCreateLabel(390, 24, 31, 28, "رتبه:", false, GppWindow) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.progressbar[2] = guiCreateProgressBar(221, 20, 169, 38, false, GppWindow) GUIEditor.label[2] = guiCreateLabel(11, 4, 147, 28, "Admin-EX", false, GUIEditor.progressbar[2]) guiLabelSetColor(GUIEditor.label[2], 254, 0, 0) guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[2], "center") -------------------------- ---Grid list ------------------------- addEventHandler("onClientResourceStart",resourceRoot, function() GUIEditor.gridlist[1] = guiCreateGridList(9, 55, 197, 226, false, GppWindow) guiGridListSetSelectionMode(GUIEditor.gridlist[1],2) local column = guiGridListAddColumn( GUIEditor.gridlist[1], "Player Name", 0.5 ) if ( column ) then for id, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText ( GUIEditor.gridlist[1], row, column, getPlayerName(player), false, false ) guiGridListSetItemColor ( GUIEditor.gridlist[1], row, column, 0, 250, 154, 255 ) end addEventHandler ( "onClientGUIClick", GUIEditor.gridlist[1], click ) end end) function click () local playerName = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) guiSetText ( GUIEditor.edit[2], playerName ) end ---------------------------- --Show panel from command -------------------------- function showPanel () guiSetVisible (GppWindow, true) showCursor (true) playSound("open.mp3",false) end addEvent( "showPanel", true ) addEventHandler ( "showPanel", getRootElement(), showPanel) ------------------------ --Event to bindKey ------------------------ function show() if guiGetVisible(GppWindow) == true then guiSetVisible(GppWindow,false) showCursor(false) else guiSetVisible(GppWindow,true) showCursor(true) end end addEvent("show",true) addEventHandler("show",root,show) addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) ----------------------- --GetPermission --------------------- function GetPermission() triggerServerEvent ("OpenPanel", getLocalPlayer(), OpenPanel) end addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[2] then -- هنا يتحققق بأن الشيء اللي نبيه يشتغل عليه الحدث هو الزر حق الاغلاق guiSetVisible(GppWindow,false) showCursor(false) -- هنا يغلق اللوحة ويشيل المؤشر بعد مايتحقق من الشرط end -- نهاية end -- .. ) -- اقفال الحدث addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[5] then -- هنا يتحقق بأن الشيء اللي نبي الحدث يتطبق عليه هو الزر حق فتح لوحة رقم 2 guiSetVisible(Window2,true) showCursor(true) -- هنا يفتح لنا اللوحة guiSetVisible(GppWindow,false) -- إغلاق نافذة 1 end -- نهاية end -- .. ) -- إقفال addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[4] then -- هنا يتحقق بأن الشيء اللي نبي الحدث يتطبق عليه هو الزر حق فتح لوحة رقم 2 guiSetVisible(GppWindow,true) showCursor(true) -- هنا يفتح لنا اللوحة guiSetVisible(Window2,false) -- إغلاق نافذة 1 end -- نهاية end -- .. ) -- إقفال function onGuiClick (button, state, absoluteX, absoluteY) if (source == BTN3_close2) then guiSetVisible (Window2, false) showCursor (false) elseif (source == GUIEditor.button[3]) then local name = guiGetText ( GUIEditor.edit[2] ) local target = getPlayerFromName(name) triggerServerEvent ("remove", getLocalPlayer(), target) elseif (source == GUIEditor.button[1]) then local name = guiGetText ( GUIEditor.edit[2] ) local target = getPlayerFromName(name) triggerServerEvent("Moderator", getLocalPlayer(), target) playSound("sec.wav",false) end end function nopsound () playSound("np.mp3",false) end addEvent( "nopsound", true ) addEventHandler ( "nopsound", getRootElement(), nopsound) function removedsound () playSound("removed.wav",false) end addEvent( "removedsound", true ) addEventHandler ( "removedsound", getRootElement(), removedsound) function list() guiGridListClear(GUIEditor.gridlist[1]) for id, players in ipairs (getElementsByType("player")) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, getPlayerName(players), false, false) guiGridListSetItemColor ( GUIEditor.gridlist[1], row, 1, 0, 250, 154, 255 ) end end addEventHandler("onClientPlayerJoin", getRootElement(), list) addEventHandler("onClientPlayerQuit", getRootElement(), list) addEventHandler("onClientPlayerChangeNick", getRootElement(), list) سيرفر -- * scripted by |S.s|SoRa -- * please don't remove my Copyrights -- * thanks to MR.S3D for helping me local rootElement = getRootElement() -------------------- ---bindKey i to open panel --only who in Console group can open this panel ------------------- addEventHandler("onPlayerJoin",root, function () bindKey(source,"i","down",show) ----- Change "i" to the key you want end) addEventHandler("onResourceStart",resourceRoot, function () for index, player in ipairs(getElementsByType("player")) do bindKey(player,"i","down",show) ----Change "i" to the key you want end end) function show(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup("Console")) then triggerClientEvent(thePlayer,"showPanel",thePlayer) else outputChatBox ("* GPP: You Don't Have Permission For This Command", source, 255, 0, 0, true) triggerClientEvent ( thePlayer,"nopsound", thePlayer ) end end ------------------------ --Give Admin.Sup,Mod,Remove ----------------------- addEvent("Moderator",true) function Moderator(target) local account = getPlayerAccount ( target ) local group = aclGetGroup ( "Moderator" ) if ( group ) then aclGroupAddObject ( group, "user."..getAccountName ( account ) ) outputChatBox ( "GPP: '"..getAccountName(getPlayerAccount(target)).."' have been given moderator permissions", source, 0, 255 ,0 ) else outputChatBox ( "No account name specified", source, 255, 100 ,100 ) end end addEventHandler("Moderator", getRootElement(), Moderator) addEvent("SuperModerator",true) function SuperModerator(target) local account = getPlayerAccount ( target ) local group = aclGetGroup ( "SuperModerator" ) if ( group ) then aclGroupAddObject ( group, "user."..getAccountName ( account ) ) outputChatBox ( "GPP: '"..getAccountName(getPlayerAccount(target)).."' have been given supermoderator permissions", source, 0, 255 ,0 ) else outputChatBox ( "No account name specified", source, 255, 100 ,100 ) end end addEventHandler("SuperModerator", getRootElement(), SuperModerator) addEvent("Admin",true) function Admin(target) local account = getPlayerAccount ( target ) local group = aclGetGroup ( "Admin" ) if ( group ) then aclGroupAddObject ( group, "user."..getAccountName ( account ) ) outputChatBox ( "GPP: '"..getAccountName(getPlayerAccount(target)).."' have been given admin permissions", source, 0, 255 ,0 ) else outputChatBox ( "No account name specified", source, 255, 100 ,100 ) end end addEventHandler("Admin", getRootElement(), Admin) addEvent("remove",true) function removee(target) local account = getPlayerAccount ( target ) if ( account ) then aclGroupRemoveObject (aclGetGroup("Moderator"), "user."..getAccountName ( account ) ) aclGroupRemoveObject (aclGetGroup("SuperModerator"), "user."..getAccountName ( account ) ) aclGroupRemoveObject (aclGetGroup("Admin"), "user."..getAccountName ( account ) ) outputChatBox ( "GPP: all permissons of '"..getAccountName(getPlayerAccount(target)).."' has been removed !", source, 255, 0 ,0 ) triggerClientEvent ( source,"removedsound", source ) else outputChatBox ( "No account name specified", source, 255, 100 ,100 ) end end addEventHandler("remove", getRootElement(), removee) ---------------------- --Command ---------------------- function OpenPanel ( player ) local player = player or source local accountname = getAccountName( getPlayerAccount( player ) ) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Console" )) then triggerClientEvent ( player,"showPanel", player ) else outputChatBox ("* GPP: You Don't Have Permission For This Command", player, 255, 0, 0, true) triggerClientEvent ( player,"nopsound", player ) end end addEvent( "OpenPanel", true ) addEventHandler ( "OpenPanel", getRootElement(), OpenPanel) addCommandHandler ( "gpp", OpenPanel ) function check() local accountname = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Console" )) then outputChatBox ("Type /gpp or press i to open give permissions panel", source, 255, 0, 0, true) end end addEventHandler("onPlayerLogin",getRootElement(),check ) -- * scripted by |S.s|SoRa -- * please don't remove my Copyrights مشكله هي لما اطغط اعطاء مخالفة مايعضي ولايسجب ليشذ ملاحظه انا طايفة في قروب ادمن والكونسل
-
طيب شكرا بس ابي اعرف كيف اخلي مثل تقدر ترقي لي رتبه انا محدده ورتب تاني علشان ترقي واحد رتب لازم يكون معك رتبت انا محددها كيف اسويها بس كدا ماتبي تقول خلاص بكيفك
-
يعني تبون سيرفر وكلينت ياخونا ابي بجريد رتبه انا محددها مو الاسل كامل سيرفر --[[ // copyrights // Give Permissions Panel by SoRa Notice : needs admin rights // copyrights // --]] -- // Settings // allowedGroup = get("allowedGroup") -- // Settings // -- get groups addEvent("getGroups",true) addEventHandler("getGroups",root, function () groups = {} for i,group in ipairs(aclGroupList()) do -- get all groups table.insert(groups,aclGroupGetName(group)) end for i,v in ipairs(groups) do -- get all groups in table triggerClientEvent(source,"addGroups",source,v) end end ) -- add player to chosen group addEvent("add_g",true) addEventHandler("add_g",root, function (splayer,sgroup) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup(allowedGroup)) then if not isGuestAccount(getPlayerAccount(getPlayerFromName(tostring(splayer)))) then aclGroupAddObject (aclGetGroup(sgroup), "user."..getAccountName(getPlayerAccount(getPlayerFromName(splayer)))) outputChatBox("* "..splayer.." successfully added to "..sgroup.."",source,0,255,0) outputChatBox("* You've been added to "..sgroup.." by "..getPlayerName(source).."",getPlayerFromName(splayer),0,255,0) else outputChatBox("* You can't add "..splayer.." to "..sgroup.." because he is not logged in",source,255,0,0) end else outputChatBox("* You don't have rights to do this.",source,255,0,0) outputDebugString("* "..getPlayerName(source).." had attempted to hack the server",2) end end ) -- remove player from chosen group addEvent("remove_g",true) addEventHandler("remove_g",root, function (splayer,sgroup) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup(allowedGroup)) then if not isGuestAccount(getPlayerAccount(getPlayerFromName(tostring(splayer)))) then aclGroupRemoveObject (aclGetGroup(sgroup), "user."..getAccountName(getPlayerAccount(getPlayerFromName(splayer)))) outputChatBox("* "..splayer.." successfully removed from "..sgroup.."",source,0,255,0) outputChatBox("* You've been removed from "..sgroup.."",getPlayerFromName(splayer),255,0,0) else outputChatBox("* You can't remove "..splayer.." from "..sgroup.." because he is not logged in",source,255,0,0) end else outputChatBox("* You don't have rights to do this.",source,255,0,0) outputDebugString("* "..getPlayerName(source).." had attempted to hack the server",2) end end ) -- give permission panel , open command addCommandHandler("gpp", function (player) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup(allowedGroup)) then triggerClientEvent(player,"show_gpp",player) else outputChatBox ( "ACL: Access denied for 'gpp'", player, 255, 168, 0 ) end end) كلنت --[[ // copyrights // Give Permissions Panel by SoRa Notice : needs admin rights // copyrights // --]] GUIEditor = { gridlist = {}, button = {}, label = {}, window = {}, } gpp = guiCreateWindow(126, 100, 535, 346, "Give Permissions Panel v 1.4 by |S.s|SoRa", false) guiSetVisible(gpp,false) guiWindowSetSizable(gpp, false) guiSetAlpha(gpp, 1.00) pgrid = guiCreateGridList(34, 51, 225, 232, false, gpp) pc = guiGridListAddColumn(pgrid, "Players :", 0.9) GUIEditor.label[1] = guiCreateLabel(42, 25, 121, 19, "1 - Choose player :", false, gpp) ggrid = guiCreateGridList(280, 51, 223, 232, false, gpp) gc = guiGridListAddColumn(ggrid, "Groups :", 0.9) GUIEditor.label[2] = guiCreateLabel(286, 25, 121, 19, "2 - Choose group :", false, gpp) add = guiCreateButton(45, 293, 202, 39, "Add To ", false, gpp) guiSetProperty(add, "NormalTextColour", "FF00FF00") remove = guiCreateButton(286, 293, 202, 39, "Remove From ", false, gpp) guiSetProperty(remove, "NormalTextColour", "FFFF0000") x = guiCreateButton(502, 23, 20, 18, "X", false, gpp) addEvent("show_gpp",true) addEventHandler("show_gpp",root, function () guiSetVisible(gpp,true) showCursor(true) clear() triggerServerEvent ("getGroups", getLocalPlayer()) addPlayers() end ) function clear() guiGridListClear (ggrid) guiGridListClear (pgrid) end addEvent("refreshg",true) addEventHandler("refreshg",root, function () clear() end ) addEvent("addGroups",true) addEventHandler("addGroups",root, function (v) guiGridListSetItemText ( ggrid, guiGridListAddRow ( ggrid ), gc,v, false, false ) end ) function addPlayers() for i,player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow(pgrid) guiGridListSetItemText ( pgrid, row, pc, (string.gsub(getPlayerName(player),'#%x%x%x%x%x%x','') or getPlayerName(player)), false, false) guiGridListSetItemData ( pgrid, row, pc, getPlayerName(player)) end end addEventHandler ( "onClientGUIClick",pgrid, function () splayer = guiGridListGetItemText ( pgrid, guiGridListGetSelectedItem ( pgrid ), 1 ) sgroup = guiGridListGetItemText ( ggrid, guiGridListGetSelectedItem ( ggrid ), 1 ) guiSetText(add,"Add "..splayer.." To "..sgroup.."") guiSetText(remove,"Remove "..splayer.." From "..sgroup.."") end ) addEventHandler ( "onClientGUIClick",ggrid, function () splayer = guiGridListGetItemText ( pgrid, guiGridListGetSelectedItem ( pgrid ), 1 ) sgroup = guiGridListGetItemText ( ggrid, guiGridListGetSelectedItem ( ggrid ), 1 ) guiSetText(add,"Add "..splayer.." To "..sgroup.."") guiSetText(remove,"Remove "..splayer.." From "..sgroup.."") end) function onGuiClick (button, state, absoluteX, absoluteY) if (source == add) then if splayer and sgroup then triggerServerEvent("add_g", getLocalPlayer(), guiGridListGetItemData(pgrid, guiGridListGetSelectedItem ( pgrid ), 1),sgroup) end elseif (source == remove) then if splayer and sgroup then triggerServerEvent("remove_g", getLocalPlayer(), guiGridListGetItemData(pgrid, guiGridListGetSelectedItem ( pgrid ), 1),sgroup) end elseif (source == x) then guiSetVisible(gpp,false) showCursor(false) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick)
-
? اي مشكله ياخي الحين هو يعطني اسماء العبين ويعطني اسل قروبات اسل كلها ياخي كل الي ابي انه يكون في قريد الاول اسماء العبين والقريت الثاني قروبات انا محدده بس كدا صعبه ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟ظظ
-
لا ياخي والله يعطي رتبه ويسحبها وانا توني مجربها خدها حمله https://community.multitheftauto.com/ind ... s&id=12276 وكمان في حد ناشررة وشو http://www.gta-arabs.com/gt/-mta-/117368-a.html
-
سلام عليكم ورحمة الله وبركاته عندي مشكله انا الحين توني لاقي مود الي هو اعطاء وسحب رتب انا ابي احط فيه رتب انا محده ممكن تساعدوني هادا هو كلنت --[[ // copyrights // Give Permissions Panel by SoRa Notice : needs admin rights // copyrights // --]] GUIEditor = { gridlist = {}, button = {}, label = {}, window = {}, } gpp = guiCreateWindow(126, 100, 535, 346, "Give Permissions Panel v 1.4 by |S.s|SoRa", false) guiSetVisible(gpp,false) guiWindowSetSizable(gpp, false) guiSetAlpha(gpp, 1.00) pgrid = guiCreateGridList(34, 51, 225, 232, false, gpp) pc = guiGridListAddColumn(pgrid, "Players :", 0.9) GUIEditor.label[1] = guiCreateLabel(42, 25, 121, 19, "1 - Choose player :", false, gpp) ggrid = guiCreateGridList(280, 51, 223, 232, false, gpp) gc = guiGridListAddColumn(ggrid, "Groups :", 0.9) GUIEditor.label[2] = guiCreateLabel(286, 25, 121, 19, "2 - Choose group :", false, gpp) add = guiCreateButton(45, 293, 202, 39, "Add To ", false, gpp) guiSetProperty(add, "NormalTextColour", "FF00FF00") remove = guiCreateButton(286, 293, 202, 39, "Remove From ", false, gpp) guiSetProperty(remove, "NormalTextColour", "FFFF0000") x = guiCreateButton(502, 23, 20, 18, "X", false, gpp) addEvent("show_gpp",true) addEventHandler("show_gpp",root, function () guiSetVisible(gpp,true) showCursor(true) clear() triggerServerEvent ("getGroups", getLocalPlayer()) addPlayers() end ) function clear() guiGridListClear (ggrid) guiGridListClear (pgrid) end addEvent("refreshg",true) addEventHandler("refreshg",root, function () clear() end ) addEvent("addGroups",true) addEventHandler("addGroups",root, function (v) guiGridListSetItemText ( ggrid, guiGridListAddRow ( ggrid ), gc,v, false, false ) end ) function addPlayers() for i,player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow(pgrid) guiGridListSetItemText ( pgrid, row, pc, (string.gsub(getPlayerName(player),'#%x%x%x%x%x%x','') or getPlayerName(player)), false, false) guiGridListSetItemData ( pgrid, row, pc, getPlayerName(player)) end end addEventHandler ( "onClientGUIClick",pgrid, function () splayer = guiGridListGetItemText ( pgrid, guiGridListGetSelectedItem ( pgrid ), 1 ) sgroup = guiGridListGetItemText ( ggrid, guiGridListGetSelectedItem ( ggrid ), 1 ) guiSetText(add,"Add "..splayer.." To "..sgroup.."") guiSetText(remove,"Remove "..splayer.." From "..sgroup.."") end ) addEventHandler ( "onClientGUIClick",ggrid, function () splayer = guiGridListGetItemText ( pgrid, guiGridListGetSelectedItem ( pgrid ), 1 ) sgroup = guiGridListGetItemText ( ggrid, guiGridListGetSelectedItem ( ggrid ), 1 ) guiSetText(add,"Add "..splayer.." To "..sgroup.."") guiSetText(remove,"Remove "..splayer.." From "..sgroup.."") end) function onGuiClick (button, state, absoluteX, absoluteY) if (source == add) then if splayer and sgroup then triggerServerEvent("add_g", getLocalPlayer(), guiGridListGetItemData(pgrid, guiGridListGetSelectedItem ( pgrid ), 1),sgroup) end elseif (source == remove) then if splayer and sgroup then triggerServerEvent("remove_g", getLocalPlayer(), guiGridListGetItemData(pgrid, guiGridListGetSelectedItem ( pgrid ), 1),sgroup) end elseif (source == x) then guiSetVisible(gpp,false) showCursor(false) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick)
-
اوفففففففففففففففف طلع خطاء من ميتا شكرراااااا انك قلتلي ميتا لك الف شكراااا ساعدننا
-
ايه ادري انه بس الكونسل انا معي كونسل وماينقلني وكل ماجي اغير الاحداثسات يخرب
-
انا اخدت كود ده بس ما شتغل https://forum.multitheftauto.com/viewtopic.php?f ... 84#p655315 local marker = createMarker ( 4224, -1842.80005, 0.5, "cylinder", 2, 255, 255, 0, 0 ); createBlipAttachedTo ( marker, 15 ); function changeLocation ( person ) if getElementType ( person ) == "player" then if isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( person ) ), aclGetGroup ( "Console" ) ) then setElementPosition ( person, 4224.67236, -1829.95642, 4.95625 ); else outputChatBox ( "لا يمكن إلا للأدمن الإنتقال !!!", person, 255, 0, 0, true ); end end end addEventHandler ( "onMarkerHit", marker, changeLocation ); ممكن تشوف وش الخطاء الي فيه ملاحظة انا معي رتبت كونسل
-
addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'ابي سلاب') then killPed (source) outputChatBox("* [KFO]=|> تم إعطائك سلآب بنجاح <|=[KFO]",source,255,0,0,true); end end ) addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'أبي سلاب') then killPed (source) outputChatBox("* [KFO]=|> تم إعطائك سلآب بنجاح <|=[KFO]",source,255,0,0,true); end end ) addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'سلاب لاهنت') then killPed (source) outputChatBox("* [KFO]=|> تم إعطائك سلآب بنجاح <|=[KFO]",source,255,0,0,true); end end )
-
شباب ابي كود ماركر الانتقال انتقال لاعب لما يلمس الماركر يودية لمكان تاني
-
Hello I will, infield registration plate instead of logging to the panel in GameMode login panel : http://up.top4top.net/downloadf-top4top ... 1-zip.html GameMode function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end local sm = {} sm.moov = 0 sm.object1, sm.object2 = nil, nil local function removeCamHandler () if(sm.moov == 1) then sm.moov = 0 removeEventHandler ( "onClientPreRender", getRootElement(), camRender ) end end function anim(tag,animTime,de1,de2,de3,hasta1,hasta2,hasta3,typeAnim) local now = getTickCount() local endTime = tag + animTime local elapsedTime = now - tag local duration = endTime - tag local progress = elapsedTime / duration local a, b, c = interpolateBetween ( de1,de2,de3,hasta1,hasta2,hasta3, progress, typeAnim) return a, b, c end function camRender () if sm.object1 and isElement(sm.object1) then local x1, y1, z1 = getElementPosition ( sm.object1 ) local x2, y2, z2 = getElementPosition ( sm.object2 ) setCameraMatrix ( x1, y1, z1, x2, y2, z2 ) end end function smoothMoveCamera ( x1, y1, z1, x1t, y1t, z1t, x2, y2, z2, x2t, y2t, z2t, time ) if(sm.moov == 1) then return false end sm.object1 = createObject ( 1337, x1, y1, z1 ) sm.object2 = createObject ( 1337, x1t, y1t, z1t ) setElementAlpha ( sm.object1, 0 ) setElementAlpha ( sm.object2, 0 ) setObjectScale(sm.object1, 0.01) setObjectScale(sm.object2, 0.01) moveObject ( sm.object1, time, x2, y2, z2, 0, 0, 0, "InOutQuad" ) moveObject ( sm.object2, time, x2t, y2t, z2t, 0, 0, 0, "InOutQuad" ) addEventHandler ( "onClientPreRender", getRootElement(), camRender ) sm.moov = 1 setTimer ( removeCamHandler, time, 1 ) setTimer ( destroyElement, time, 1, sm.object1 ) setTimer ( destroyElement, time, 1, sm.object2 ) return true end x, y = guiGetScreenSize() font="default-bold" fontTam=5 spcGam=dxGetTextWidth ("server-SH-3",fontTam,font) -- اسم سيرفرك بالنجليزي function intro() ahora = getTickCount() count=ahora-start dxDrawImage(0, 0, x, y, '',0,0,0,tocolor(255,255,255),false) sizeX=64*1.21 sizeY=64*1.21 varX,varY,varZ = anim(start,1000,spcGam,0,0,0,spcGam,150,"OutBack") dxDrawText("server-SH-3",0+x/2-varY/2,y/2-100,varY+x/2-varY/2,y,tocolor(38,205,0,255),fontTam,font,nil,nil,true) ---- اسم سيرفرك dxDrawText("",1+x/-varY/6-dxGetTextWidth ("i",fontTam,font),y/2-100,varY+x/2-varY/2,y,tocolor(255,255,255,255),fontTam,font,nil,nil,false,false,false,true) dxDrawText("♥",x/2+varY/2,y/2-100,varY+x/2-varY/2,y,tocolor(255,255,255,255),fontTam,font,nil,nil,false,false,false,true) if (count>1500) then varX2,varY2,varZ2 = anim(start+1500,1000,0,0,0,200,250,360,"OutBack") dxDrawText("اهلا وسهلا بكم في سيرفر عشاق الوناسة",0+x/2-varY/2,y/2-100+dxGetFontHeight(fontTam,font),varY+x/2-varY/2,y,tocolor(255,255,255,varX2),1.5,font,"center",nil,false,false,false,true) ---- اسم سيرفرك dxDrawText("نتمنا ان ينال السيرفر اعجابكم",0+x/2-varY/2,y/2-80+dxGetFontHeight(fontTam,font),varY+x/2-varY/2,y,tocolor(255,255,255,varX2),1.5,font,"center",nil,false,false,false,true) ---- اسم سيرفرك dxDrawText("Welcome to sever__SH-3 ...",0+x/2-varY/2,y/2-60+dxGetFontHeight(fontTam,font),varY+x/2-varY/2,y,tocolor(255,255,255,varX2),1.5,font,"center",nil,false,false,false,true) end if (count>2000) then varX2,varY3,varZ3 = anim(start+2000,1000*10,0,0,0,200,250,360*5,"Linear") dxDrawImage ( x/2-sizeX/2, y/2+50, sizeX, sizeY, 'img/cargando2.png',180+varZ3) dxDrawText("Loading..",12,y/2+60+sizeY+1,x,y,tocolor(0,0,0,85),1.5,font,"center",nil,false,false,false,true) dxDrawText("Loading..",10,y/2+60+sizeY,x,y,tocolor(255,255,255,255),1.5,font,"center",nil,false,false,false,true) end end function anim(tag,animTime,de1,de2,de3,hasta1,hasta2,hasta3,typeAnim) local now = getTickCount() local endTime = tag + animTime local elapsedTime = now - tag local duration = endTime - tag local progress = elapsedTime / duration local a, b, c = interpolateBetween ( de1,de2,de3,hasta1,hasta2,hasta3, progress, typeAnim) return a, b, c end fileDelete("intro_c.lua") local sx, sy = guiGetScreenSize() alpha = 250 MP = "files/1.png" MX = sx MY = sy function adjIntro(adj) _, times = getTimerDetails(IntroTimer) if adj == "M1" then MX = (MX*0.95)+5 MY = (MY*0.95) if times == 1 then setTimer(function() if (alpha <= 250) and not (alpha <= 0) then alpha = alpha - 10 else IntroTimer = setTimer(adjIntro, 50, 26, "M2") end end, 50, 26) end elseif adj == "M2" then if (alpha < 250) and (alpha >= 0) then alpha = alpha + 10 end MX = (MX/0.95)-5 MY = (MY/0.95) MP = "files/2.png" if times == 1 then setTimer(function() MP = "files/3.png" setTimer(function() IntroTimer = setTimer(adjIntro, 50, 26, "M3") end, 3500, 1) end, 4000, 1) end elseif adj == "M3" then MX = (MX*0.95)+5 MY = (MY*0.95) if times == 1 then MP = "files/4.png" MX = (MX/0.95)-5 MY = (MY/0.95) setTimer(function() setTimer(function() if (alpha <= 250) and not (alpha <= 0) then alpha = alpha - 10 else removeEventHandler("onClientRender", root, drawIntro) fadeCamera(true, 6, 0, 0, 0) setCameraMatrix(-1475.5, 831.18, 65.5, -1487.5, 800.18, 65.5) dx = true showCursor(true) guiSetVisible(wnd, true) end end, 50, 26) end, 3500, 1) end end end function drawIntro() dxDrawImage(sx/2-(MX/2), sy/2-(MY/2), MX, MY, MP, 0, 0, 0, tocolor(255, 255, 255, alpha)) end function main() removeEventHandler ("onClientRender",root,Dx) fadeCamera(false); showChat(false) IntroSong = playSound ("files/Intro.mp3") showPlayerHudComponent("all", false) start = getTickCount() addEventHandler("onClientRender",getRootElement(),intro) setTimer ( function() removeEventHandler("onClientRender",getRootElement(),intro) IntroTimer = setTimer(adjIntro, 50, 26, "M1") addEventHandler("onClientRender", root, drawIntro) triggerEvent("onFinishIntro",getRootElement()) setCameraMatrix(-1475.5, 831.18, 65.5, -1487.5, 800.18, 65.5) guiSetInputEnabled(true) setElementDimension(localPlayer,0) setElementData(localPlayer,"new",false) outputChatBox("#0069c7 ## #ff0000 GameMode By #0069c7[#ff0000MR~#0069c7Mos.[T].aّّّfA~#ff0000] #0069c7##",255,0,0,true) end, 5000, 1 ) end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),main) wnd = guiCreateStaticImage(45, 8, 718, 544, "img.png",false) lojio = guiCreateStaticImage(9, 6, 694, 285, "fondo.png", false, wnd) english = guiCreateButton(0.0231,0.0284,0.0566,0.1082,"En",false,wnd) guiSetFont(english,"default-bold-small") guiSetVisible(wnd,false) setTimer(function() guiSetProperty(english, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) arabic = guiCreateButton(621, 372, 125, 125, "Ar",true,wnd) guiSetFont(arabic,"default-bold-small") setTimer(function() guiSetProperty(arabic, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) user_2 = guiCreateLabel(463, 310, 177, 29, "Username", false, wnd) function Color ( ) guiLabelSetColor (user_2, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 1000, 0 ) guiLabelSetHorizontalAlign(user_2,"center",false) guiSetFont(user_2,"default-bold-small") setElementData(user_2, "tooltip-text", "اسم حسابك", false) -- أضافة الكلام للزر setElementData(user_2, "tooltip-color", "#FFFFFF", false) -- تغيير لون الخط setElementData(user_2, "tooltip-background", "#666666", false) -- تغيير لون الخلفية setElementData(user_2, "default-bold", "bankgothic 0.5", false) -- تغيير نوع الخط و حجم الخط user_l = guiCreateLabel(115, 310, 177, 29, "Username",false,wnd) function Color ( ) guiLabelSetColor (user_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 1000, 0 ) guiLabelSetHorizontalAlign(user_l,"center",false) guiSetFont(user_l,"default-bold-small") setElementData(user_l, "tooltip-text", "اسم حسابك", false) -- أضافة الكلام للزر setElementData(user_l, "tooltip-color", "#FFFFFF", false) -- تغيير لون الخط setElementData(user_l, "tooltip-background", "#666666", false) -- تغيير لون الخلفية setElementData(user_l, "default-bold", "bankgothic 0.5", false) -- تغيير نوع الخط و حجم الخط user1 = guiCreateEdit(476, 345, 159, 28, "", false, wnd) setTimer(function() guiSetProperty(user1, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) user = guiCreateEdit(126, 343, 159, 28, "",false,wnd) setTimer(function() guiSetProperty(user, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) pass_2 = guiCreateLabel(462, 379, 177, 29, "Password", false,wnd) function Color ( ) guiLabelSetColor (pass_2, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end
-
ياخي ناس يسون مود يتعبون عليه واخرتها انت تيجي وتسق مود وكمان تغيرر الحقوق ..............................................................................
-
مشكلة ان ديه لوحة dx مش لوحة gui -- تم عملها واشتغلت بحمد الله
-
ياخي اا قلت لكك حلللللللللللللل بس بكيفك وبعدين مود اليزر مسروق من سيرفر وزارة
-
انا ابي اعدل علي لوحة يعني اغير تصميم حجها
-
بش لوحة مو مظبوطه انا ابي اعرف شيء واحد بس function renderLoginInterface() loginData.switchHover = false local tick = getTickCount() - loginData.animTick local progress = math.min(tick/1000,1) if loginData.animState then loginData.loginAlpha = interpolateBetween(loginData.loginAlpha,0,0,255,0,0,progress,"Linear") else loginData.loginAlpha = interpolateBetween(loginData.loginAlpha,0,0,0,0,0,progress,"Linear") loginData.backgroundAlpha = loginData.loginAlpha end dxDrawImage(0,0,sX,sY,"loginImage/background.jpg",0,0,0,tocolor(255,255,255,loginData.backgroundAlpha)) dxDrawImage(0,sY*0.15,sX*0.3,sX*0.15,"loginImage/logo.png",0,0,0,tocolor(255,255,255,loginData.loginAlpha)) local shadowScale = sX*0.002 local tick = getTickCount() - loginData.loginTick local progress = math.min(tick/500,1) if loginData.loginState == "register" then loginData.loginX = interpolateBetween(loginData.loginX,0,0,sX,0,0,progress,"Linear") if progress >= 0.95 then local progress = math.min(math.abs(tick-450)/500,1) loginData.registerX = interpolateBetween(loginData.registerX,0,0,sX*0.6,0,0,progress,"Linear") end elseif loginData.loginState == "login" then loginData.registerX = interpolateBetween(loginData.registerX,0,0,sX,0,0,progress,"Linear") if progress >= 0.95 then local progress = math.min(math.abs(tick-450)/500,1) loginData.loginX = interpolateBetween(loginData.loginX,0,0,sX*0.6,0,0,progress,"Linear") end end local loginX = loginData.loginX local loginY = sY*0.25 local registerX = loginData.registerX if loginData.loginX < sX*0.99 then dxDrawText("Login",loginX+shadowScale,loginY+shadowScale,loginX+sX*0.3,loginY+sY*0.15,tocolor(0,0,0,loginData.loginAlpha),loginData.fontScale*0.25,loginData.font,"right","center",true,false,false) dxDrawText("Login",loginX,loginY,loginX+sX*0.3,loginY+sY*0.15,tocolor(255,255,255,loginData.loginAlpha),loginData.fontScale*0.25,loginData.font,"right","center",true,false,false) dxLibCreateEdit(loginData.loginEdit,loginX,loginY+sY*0.15,sX*0.32,sY*0.04,"Your username","person",20,20,20,loginData.loginAlpha,false,false) dxLibCreateEdit(loginData.passwordEdit,loginX,loginY+sY*0.2,sX*0.32,sY*0.04,"Your password","password",20,20,20,loginData.loginAlpha,false,true) dxLibCreateButton(loginData.loginButton,loginX+sX*0.2,loginY+sY*0.275,sX*0.1,sY*0.04,"Login now!",loginData.fontScale*0.08,loginData.colorData[1],loginData.colorData[2],loginData.colorData[3],220,220,220,loginData.loginAlpha,false,false) dxLibCreateButton(loginData.registerButton,loginX+sX*0.02,loginY+sY*0.32,sX*0.1,sY*0.035,"Register",loginData.fontScale*0.07,loginData.colorData[1],loginData.colorData[2],loginData.colorData[3],220,220,220,loginData.loginAlpha,false,false) dxLibCreateButton(loginData.guestButton,loginX+sX*0.17,loginY+sY*0.32,sX*0.13,sY*0.035,"Join as guest...",loginData.fontScale*0.07,loginData.colorData[1],loginData.colorData[2],loginData.colorData[3],220,220,220,loginData.loginAlpha,false,false) dxDrawText("OR",loginX+sX*0.12125,loginY+sY*0.32,loginX+sX*0.17,loginY+sY*0.355+sX*0.00125,tocolor(0,0,0,loginData.loginAlpha),loginData.fontScale*0.08,loginData.font,"center","center",true,false,false) dxDrawText("OR",loginX+sX*0.12,loginY+sY*0.32,loginX+sX*0.17,loginY+sY*0.355,tocolor(255,255,255,loginData.loginAlpha),loginData.fontScale*0.08,loginData.font,"center","center",true,false,false) local tick = getTickCount() - loginData.switchTick local progress = math.min(tick/500,1) if loginData.rememberState then loginData.switchColor[1],loginData.switchColor[2],loginData.switchColor[3] = interpolateBetween(loginData.switchColor[1],loginData.switchColor[2],loginData.switchColor[3],0,255,0,progress,"Linear") loginData.switchPosition = interpolateBetween(loginData.switchPosition,0,0,sX*0.041-sY*0.03,0,0,progress,"Linear") else loginData.switchColor[1],loginData.switchColor[2],loginData.switchColor[3] = interpolateBetween(loginData.switchColor[1],loginData.switchColor[2],loginData.switchColor[3],255,0,0,progress,"Linear") loginData.switchPosition = interpolateBetween(loginData.switchPosition,0,0,0,0,0,progress,"Linear") end local switchAlpha = loginData.loginAlpha if isCursorHover(loginX+sX*0.02,loginY+sY*0.275,sX*0.17,sY*0.04) then switchAlpha = switchAlpha * 0.75 loginData.switchHover = true end dxDrawImage(loginX+sX*0.02,loginY+sY*0.275,sX*0.05,sY*0.04,"loginImage/switchBackground.png",0,0,0,tocolor(255,255,255,loginData.loginAlpha)) dxDrawImage(loginX+sX*0.02,loginY+sY*0.275,sX*0.05,sY*0.04,"loginImage/switchCenter.png",0,0,0,tocolor(loginData.switchColor[1],loginData.switchColor[2],loginData.switchColor[3],switchAlpha)) dxDrawImage(loginX+sX*0.023+loginData.switchPosition,loginY+sY*0.28,sY*0.03,sY*0.03,"loginImage/switchSlide.png",0,0,0,tocolor(255,255,255,switchAlpha)) dxDrawText("Remember password?",loginX+sX*0.0706,loginY+sY*0.275+sX*0.0012,loginX+sX*0.19,loginY+sY*0.315,tocolor(0,0,0,switchAlpha),loginData.fontScale*0.05,loginData.font,"left","center",true,false,false) dxDrawText("Remember password?",loginX+sX*0.07,loginY+sY*0.275,loginX+sX*0.19,loginY+sY*0.315,tocolor(255,255,255,switchAlpha),loginData.fontScale*0.05,loginData.font,"left","center",true,false,false) end if registerX < sX*0.99 then local loginX = registerX dxDrawText("Register",loginX+shadowScale,loginY+shadowScale,loginX+sX*0.3,loginY+sY*0.15,tocolor(0,0,0,loginData.loginAlpha),loginData.fontScale*0.25,loginData.font,"right","center",true,false,false) dxDrawText("Register",loginX,loginY,loginX+sX*0.3,loginY+sY*0.15,tocolor(255,255,255,loginData.loginAlpha),loginData.fontScale*0.25,loginData.font,"right","center",true,false,false) dxLibCreateEdit(loginData.loginEdit,loginX,loginY+sY*0.15,sX*0.32,sY*0.04,"Type username","person",20,20,20,loginData.loginAlpha,false,false) dxLibCreateEdit(loginData.passwordEdit,loginX,loginY+sY*0.2,sX*0.32,sY*0.04,"Type password","password",20,20,20,loginData.loginAlpha,false,true) dxLibCreateEdit(loginData.confirmEdit,loginX,loginY+sY*0.25,sX*0.32,sY*0.04,"Confirm your password","password",20,20,20,loginData.loginAlpha,false,true) dxLibCreateButton(loginData.loginButton,loginX+sX*0.02,loginY+sY*0.31,sX*0.2,sY*0.035,"Register new account!",loginData.fontScale*0.08,loginData.colorData[1],loginData.colorData[2],loginData.colorData[3],220,220,220,loginData.loginAlpha,false,false) dxLibCreateButton(loginData.registerButton,loginX+sX*0.23,loginY+sY*0.31,sX*0.07,sY*0.035,"Back",loginData.fontScale*0.07,loginData.colorData[1],loginData.colorData[2],loginData.colorData[3],220,220,220,loginData.loginAlpha,false,false) end end كيف اعدل علي لوحة
-
عدلته ساخي ماصار شيء جرجت ودخلت ماجتني شيء
-
اخوي سويت كل ده بس ماشتغل حمل عندي بس ماجتني لوحة تسجيل كلنت local sX,sY = guiGetScreenSize() local loginData = { loginEdit = false, passwordEdit = false, confirmEdit = false, loginButton = false, registerButton = false, guestButton = false, loginState = "login", loginTick = 0, animState = false, animTick = 0, backgroundAlpha = 255, backgroundAnim = false, font = "default-bold", fontScale = false, colorData = {0,176,255}, rememberState = false, switchTick = 0, switchColor = {255,0,0}, switchPosition = 0, switchHover = false, loginX = sX*0.6, registerX = sX, messagesData = { }, messageTick = 0, } function onLoginResourceStart() loginData.loginEdit = createElement("dxEdit") loginData.passwordEdit = createElement("dxEdit") loginData.confirmEdit = createElement("dxEdit") loginData.loginButton = createElement("dxButton") loginData.registerButton = createElement("dxButton") loginData.guestButton = createElement("dxButton") setElementData(localPlayer,"loginState",false,false) triggerServerEvent("onClientWantCheckHisState",localPlayer) end addEventHandler("onClientResourceStart",resourceRoot,onLoginResourceStart) function renderLoginInterface() loginData.switchHover = false local tick = getTickCount() - loginData.animTick local progress = math.min(tick/1000,1) if loginData.animState then loginData.loginAlpha = interpolateBetween(loginData.loginAlpha,0,0,255,0,0,progress,"Linear") else loginData.loginAlpha = interpolateBetween(loginData.loginAlpha,0,0,0,0,0,progress,"Linear") loginData.backgroundAlpha = loginData.loginAlpha end dxDrawImage(0,0,sX,sY,"loginImage/background.jpg",0,0,0,tocolor(255,255,255,loginData.backgroundAlpha)) dxDrawImage(0,sY*0.15,sX*0.3,sX*0.15,"loginImage/logo.png",0,0,0,tocolor(255,255,255,loginData.loginAlpha)) local shadowScale = sX*0.002 local tick = getTickCount() - loginData.loginTick local progress = math.min(tick/500,1) if loginData.loginState == "register" then loginData.loginX = interpolateBetween(loginData.loginX,0,0,sX,0,0,progress,"Linear") if progress >= 0.95 then local progress = math.min(math.abs(tick-450)/500,1) loginData.registerX = interpolateBetween(loginData.registerX,0,0,sX*0.6,0,0,progress,"Linear") end elseif loginData.loginState == "login" then loginData.registerX = interpolateBetween(loginData.registerX,0,0,sX,0,0,progress,"Linear") if progress >= 0.95 then local progress = math.min(math.abs(tick-450)/500,1) loginData.loginX = interpolateBetween(loginData.loginX,0,0,sX*0.6,0,0,progress,"Linear") end end local loginX = loginData.loginX local loginY = sY*0.25 local registerX = loginData.registerX if loginData.loginX < sX*0.99 then dxDrawText("Login",loginX+shadowScale,loginY+shadowScale,loginX+sX*0.3,loginY+sY*0.15,tocolor(0,0,0,loginData.loginAlpha),loginData.fontScale*0.25,loginData.font,"right","center",true,false,false) dxDrawText("Login",loginX,loginY,loginX+sX*0.3,loginY+sY*0.15,tocolor(255,255,255,loginData.loginAlpha),loginData.fontScale*0.25,loginData.font,"right","center",true,false,false) dxLibCreateEdit(loginData.loginEdit,loginX,loginY+sY*0.15,sX*0.32,sY*0.04,"Your username","person",20,20,20,loginData.loginAlpha,false,false) dxLibCreateEdit(loginData.passwordEdit,loginX,loginY+sY*0.2,sX*0.32,sY*0.04,"Your password","password",20,20,20,loginData.loginAlpha,false,true) dxLibCreateButton(loginData.loginButton,loginX+sX*0.2,loginY+sY*0.275,sX*0.1,sY*0.04,"Login now!",loginData.fontScale*0.08,loginData.colorData[1],loginData.colorData[2],loginData.colorData[3],220,220,220,loginData.loginAlpha,false,false) dxLibCreateButton(loginData.registerButton,loginX+sX*0.02,loginY+sY*0.32,sX*0.1,sY*0.035,"Register",loginData.fontScale*0.07,loginData.colorData[1],loginData.colorData[2],loginData.colorData[3],220,220,220,loginData.loginAlpha,false,false) dxLibCreateButton(loginData.guestButton,loginX+sX*0.17,loginY+sY*0.32,sX*0.13,sY*0.035,"Join as guest...",loginData.fontScale*0.07,loginData.colorData[1],loginData.colorData[2],loginData.colorData[3],220,220,220,loginData.loginAlpha,false,false) dxDrawText("OR",loginX+sX*0.12125,loginY+sY*0.32,loginX+sX*0.17,loginY+sY*0.355+sX*0.00125,tocolor(0,0,0,loginData.loginAlpha),loginData.fontScale*0.08,loginData.font,"center","center",true,false,false) dxDrawText("OR",loginX+sX*0.12,loginY+sY*0.32,loginX+sX*0.17,loginY+sY*0.355,tocolor(255,255,255,loginData.loginAlpha),loginData.fontScale*0.08,loginData.font,"center","center",true,false,false) local tick = getTickCount() - loginData.switchTick local progress = math.min(tick/500,1) if loginData.rememberState then loginData.switchColor[1],loginData.switchColor[2],loginData.switchColor[3] = interpolateBetween(loginData.switchColor[1],loginData.switchColor[2],loginData.switchColor[3],0,255,0,progress,"Linear") loginData.switchPosition = interpolateBetween(loginData.switchPosition,0,0,sX*0.041-sY*0.03,0,0,progress,"Linear") else loginData.switchColor[1],loginData.switchColor[2],loginData.switchColor[3] = interpolateBetween(loginData.switchColor[1],loginData.switchColor[2],loginData.switchColor[3],255,0,0,progress,"Linear") loginData.switchPosition = interpolateBetween(loginData.switchPosition,0,0,0,0,0,progress,"Linear") end local switchAlpha = loginData.loginAlpha if isCursorHover(loginX+sX*0.02,loginY+sY*0.275,sX*0.17,sY*0.04) then switchAlpha = switchAlpha * 0.75 loginData.switchHover = true end dxDrawImage(loginX+sX*0.02,loginY+sY*0.275,sX*0.05,sY*0.04,"loginImage/switchBackground.png",0,0,0,tocolor(255,255,255,loginData.loginAlpha)) dxDrawImage(loginX+sX*0.02,loginY+sY*0.275,sX*0.05,sY*0.04,"loginImage/switchCenter.png",0,0,0,tocolor(loginData.switchColor[1],loginData.switchColor[2],loginData.switchColor[3],switchAlpha)) dxDrawImage(loginX+sX*0.023+loginData.switchPosition,loginY+sY*0.28,sY*0.03,sY*0.03,"loginImage/switchSlide.png",0,0,0,tocolor(255,255,255,switchAlpha)) dxDrawText("Remember password?",loginX+sX*0.0706,loginY+sY*0.275+sX*0.0012,loginX+sX*0.19,loginY+sY*0.315,tocolor(0,0,0,switchAlpha),loginData.fontScale*0.05,loginData.font,"left","center",true,false,false) dxDrawText("Remember password?",loginX+sX*0.07,loginY+sY*0.275,loginX+sX*0.19,loginY+sY*0.315,tocolor(255,255,255,switchAlpha),loginData.fontScale*0.05,loginData.font,"left","center",true,false,false) end if registerX < sX*0.99 then local loginX = registerX dxDrawText("Register",loginX+shadowScale,loginY+shadowScale,loginX+sX*0.3,loginY+sY*0.15,tocolor(0,0,0,loginData.loginAlpha),loginData.fontScale*0.25,loginData.font,"right","center",true,false,false) dxDrawText("Register",loginX,loginY,loginX+sX*0.3,loginY+sY*0.15,tocolor(255,255,255,loginData.loginAlpha),loginData.fontScale*0.25,loginData.font,"right","center",true,false,false) dxLibCreateEdit(loginData.loginEdit,loginX,loginY+sY*0.15,sX*0.32,sY*0.04,"Type username","person",20,20,20,loginData.loginAlpha,false,false) dxLibCreateEdit(loginData.passwordEdit,loginX,loginY+sY*0.2,sX*0.32,sY*0.04,"Type password","password",20,20,20,loginData.loginAlpha,false,true) dxLibCreateEdit(loginData.confirmEdit,loginX,loginY+sY*0.25,sX*0.32,sY*0.04,"Confirm your password","password",20,20,20,loginData.loginAlpha,false,true) dxLibCreateButton(loginData.loginButton,loginX+sX*0.02,loginY+sY*0.31,sX*0.2,sY*0.035,"Register new account!",loginData.fontScale*0.08,loginData.colorData[1],loginData.colorData[2],loginData.colorData[3],220,220,220,loginData.loginAlpha,false,false) dxLibCreateButton(loginData.registerButton,loginX+sX*0.23,loginY+sY*0.31,sX*0.07,sY*0.035,"Back",loginData.fontScale*0.07,loginData.colorData[1],loginData.colorData[2],loginData.colorData[3],220,220,220,loginData.loginAlpha,false,false) end end function onClientRegister() loginData.loginState = "login" dxLibEditSetText(loginData.confirmEdit,"") dxLibEditSetText(loginData.passwordEdit,"") dxLibEditSetText(loginData.loginEdit,"") loginData.loginTick = getTickCount() end addEvent("onClientSuccessfullyRegisterNewAccount",true) addEventHandler("onClientSuccessfullyRegisterNewAccount",getRootElement(),onClientRegister) function openLogin() loginData.loginState = "login" loginData.fontScale = sY/100 dxLib.font = loginData.font dxLibCreateEdit(loginData.loginEdit,0,0,sX*0.1,sY*0.04,"Your username","person",20,20,20,loginData.loginAlpha,false,false) dxLibCreateEdit(loginData.passwordEdit,0,0,sX*0.1,sY*0.04,"Your password","password",20,20,20,loginData.loginAlpha,false,true) loginData.animState = true loginData.animTick = getTickCount() loginData.loginAlpha = 0 loginData.backgroundAlpha = 255 showChat(false) showCursor(true) addEventHandler("onClientRender",getRootElement(),renderLoginInterface) addEventHandler("onClientRender",getRootElement(),renderLoginMessages) loadXMLData() setElementData(localPlayer,"loginState",true,false) end addEvent("onServerWantIniteteLoginPanel",true) addEventHandler("onServerWantIniteteLoginPanel",getRootElement(),openLogin) function closeLogin() loginData.animState = false loginData.animTick = getTickCount() showChat(true) showCursor(false) triggerEvent("onLoginPanelStopRenderInterface",getRootElement()) setElementData(localPlayer,"loginState",false,false) end addEvent("onClientSuccessfullyLogIn",true) addEventHandler("onClientSuccessfullyLogIn",getRootElement(),closeLogin) function addLoginMessage(message,type) table.insert(loginData.messagesData,{message,type or "confirm",getTickCount(),dxGetTextWidth(message,loginData.fontScale*0.08,loginData.font)+sX*0.01,0,0,0}) loginData.messageTick = getTickCount() end addEvent("onServerWantToShowMessage",true) addEventHandler("onServerWantToShowMessage",getRootElement(),addLoginMessage) function renderLoginMessages() local messagesData = loginData.messagesData if #messagesData ~= 0 then local startY = sY*0.5 local i = 1 repeat mData = messagesData[i] local drawThis = true if i~= 1 then startY = startY + sY*0.0425 end if mData[5] == 0 and mData[6] == 0 then mData[5] = -mData[4]-sX*0.015 mData[6] = startY mData[7] = startY end local tick = getTickCount() - mData[3] local posX,posY,alpha if tick < 1000 then local progress = math.min(tick/1000,1) mData[5] = interpolateBetween(mData[5],0,0,0,0,0,progress,"Linear") elseif tick >= 1000 and tick <= 7000 then mData[5] = 0 elseif tick > 7000 then local progress = math.min((tick-7000)/1000,1) mData[5] = interpolateBetween(mData[5],0,0,-mData[4]-mData[4]-sX*0.015,0,0,progress,"Linear") if progress >= 1 then table.remove(messagesData,i) drawThis = false loginData.messageTick = getTickCount() end end local globalTick = getTickCount() - loginData.messageTick if drawThis then mData[7] = startY mData[6] = interpolateBetween(mData[6],0,0,mData[7],0,0,math.min(globalTick/1000,1),"Linear") posX = mData[5] posY = mData[6] alpha = 255 dxDrawRectangle(posX,posY,mData[4],sY*0.04,tocolor(0,0,0,alpha*0.75)) local r,g,b = 0,255,0 if mData[2] == "warning" then r,g,b = 255,0,0 end dxDrawRectangle(posX+mData[4],posY,sX*0.015,sY*0.04,tocolor(r,g,b,alpha*0.85)) dxDrawRectangle(posX+mData[4]+sX*0.005,posY,sX*0.01,sY*0.04,tocolor(0,0,0,alpha)) dxDrawText(mData[1],posX,posY,posX+mData[4],posY+sY*0.04,tocolor(255,255,255,alpha),loginData.fontScale*0.07,loginData.font,"center","center") end i = i + 1 until i>#messagesData loginData.messagesData = messagesData end end function onClientMouseClick(button,state) if button == "left" and state == "down" then if loginData.switchHover then loginData.switchHover = false loginData.switchTick = getTickCount() loginData.rememberState = not loginData.rememberState end end end addEventHandler("onClientClick",getRootElement(),onClientMouseClick) function onClientClickDxLoginButton(theElement) if theElement == loginData.registerButton then if loginData.loginState == "login" then loginData.loginState = "register" dxLibEditSetText(loginData.confirmEdit,"") dxLibEditSetText(loginData.passwordEdit,"") dxLibEditSetText(loginData.loginEdit,"") else loginData.loginState = "login" dxLibEditSetText(loginData.confirmEdit,"") dxLibEditSetText
-
طيب انا كيف اشيل قيم مود ريسي او كيف اشغل ريس؟ هو معضيني 3 مودات Ping-Fps -- http://adf.ly/vigHi Userpanel -- http://adf.ly/vigJE Login Panel -- http://adf.ly/vigLw هادولي لازم يكون في سيرفر انا مش فاهم
-
سلام عليكم انا حملت مود لوحة تسجيل دخول بس ماشتغل ليش هادي هي لوخة تحميل http://up.top4top.net/downloadf-top4top ... 1-zip.html ليش مايشتغل ارجوء رد سريع سورال لييش مايشتغل اف8 يقول لي كدا [13:04:59] startResource: Failed to start resource 'loginpanel' [13:04:59] startResource: Failed to start resource 'loginpanel' [13:05:24] start: Requested by Lolo-shad(omar123) start: Resource 'loginpanel' start was requested (Failed to link to race)
-
خلا تم حل قفل الموضوع _.............................................................................ٍس
-
خلاص سويته اصلا انتم مالكم فايدة طلبي بسيد بس الحمدالله سويته
-
بس في شيء واححد باقي انا ابية لما تيجي تغير سيارة تغيرة انت وراكب لانة علشان اجي للاحمر لازم يكون مو معي سياراة انا مابية كدا ابي يكون معي سيارة فهمت