AboShanab
Members-
Posts
1,348 -
Joined
-
Last visited
Everything posted by AboShanab
-
ججرب -- # Client Side addEventHandler("onClientRender", root, function() dxDrawText(text, 4, 380, 290, 399, tocolor(255, 0, 0, 255), 1.00, "sans", "left", "top", false, false, true, false, false) end ) -- addEventHandler('onClientPlayerJoin', getRootElement(), function() local name = getPlayerName(source) text = ""..name .." Welcome To Server" end )
-
اظن يجيب احداثيات شي اسمه BoundingBox روح الويكي اقرا عنه مو متاكد ^^
-
طلعت الارقام لاكن ما تتحرك
-
السسلام عليككم ورحممة الله وبرككاتههه اليومم احاوول اسوي عد تناززلي .. استخدمت الكود اللي سواه حسسن ما ضبط addEventHandler("onClientRender", root, function() dxDrawText("Redirect To New Server In :", 202, 192, 656, 222, tocolor(208, 224, 30, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText(num, 403, 272, 458, 299, tocolor(208, 224, 30, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) end ) local num = 5 function Numper() num = num - 1 if num <= -2 then killTimer(NumberTimer) num = 5 end end NumberTimer = setTimer(Numper,1000,0)
-
ككفو ي ذيب هع هع تم الحل
-
السسلام عليككم ورحمةة الله وبرككاته اخباركم شباب ؟؟ عسساكم بخير .. اليوم معي مششكلة بكود الوزنيات ممادمججت معاه مود الوزنيات b ابيه يسوي import الى مود اسمه hedit function onGuiClick (button, state, absoluteX, absoluteY) if (source == AboShanab1btn) then local Vehicle = getPedOccupiedVehicle(localPlayer) local Handling = "1500 1200 0.1 0 0 -0.05 70 0.5 0.8 0.7 5 800 33 16 4 p 5.4 0.9 false 45 0.95 0.14 0 0.8 -0.25 0.5 0.3 0 0 45000 0 0 1 1 1" if Vehicle then importHandling(getResourceFromName("hedit"),getPedOccupiedVehicle(localPlayer), Handling, "SA") outputChatBox("#80ff40 تم تركيب الوزنية بنجاح .", 0, 255, 0, true) else outputChatBox("أنت لا تملك سيارة لـ تطبيق الوزنية !") end end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) وشككرا
-
مثال على كود تسجيل addEvent("onReg", true) addEventHandler("onReg",root, function ( player, user, pass ) local account = getAccount ( user, pass ) if ( account ~= false ) then if (logIn ( player, account, pass ) == true) then outputChatBox ( "You Registerd and Logged in Sucessfuly!", player, 255, 255, 0 ) triggerClientEvent (source, "HideWindow", source) local res = executeSQLQuery( "SELECT * FROM SaveSystemByAboShanab WHERE NameAccount = ?", tostring( user )) if ( type ( res ) == "table" and #res == 0 ) or not res then executeSQLQuery ( "INSERT INTO SaveSystemByAboShanab ( NameAccount, Password ) VALUES ( ?, ? )", user, pass ) end else outputChatBox ( "You Are Already Logged in !", player, 255, 255, 0 ) end else account = addAccount ( user, pass ) if (logIn ( player, account, pass ) == true) then outputChatBox ( "You Registerd and Logged in Sucessfuly!", player, 255, 255, 0 ) local res = executeSQLQuery( "SELECT * FROM SaveSystemByAboShanab WHERE NameAccount = ?", tostring( user )) if ( type ( res ) == "table" and #res == 0 ) or not res then executeSQLQuery ( "INSERT INTO SaveSystemByAboShanab ( NameAccount, Password ) VALUES ( ?, ? )", user, pass ) end triggerClientEvent (source, "HideWindow", source) else outputChatBox ( "Register Error !", player, 255, 0, 0 ) end end end )
-
dx -- مثل اللبل و هيك القريد ليست مثل اي شي اذا انت مبرمج راح تعرف لها واذا كنت نسخ + لصق هههههه لو تموت ما راح تعرف لها
-
Server Side !! marker = createMarker(-2405,-598,132.6484375,"cylinder",1.5, 150, 0, 0) -- انشاء ماركر addEventHandler ("onMarkerHit",marker, -- عند لمس الماركر function (player) spawnPlayer ( player, 2753.1547851563, -3417.6713867188, 141.5, 0, 285, 0, 0) -- سباون للاعب outputChatBox("#FF0000You is Spown Now",player,255,255,255,true) -- كلامم في الشات end -- اغلاق function ) -- اغلاق الوظيفة
-
جرب حبيبي !! GUIEditor = { button = {}, window = {}, label = {} } addEventHandler ( 'onClientResourceStart', resourceRoot, function ( ) GUIEditor.window[1] = guiCreateWindow(216, 173, 382, 318, "نافذة قوانين اللعبة", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.84) guiSetVisible(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(377, 21, 0, 16, "", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(9, 22, 363, 52, "قوانين السيرفر", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(367, 80, 119, 81, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(14, 85, 348, 149, "قوانين السيرفر:\n1-عدم السب والشتم\n2-عدم إستخدام الهاكات\n3-عدم التخريب\n4-عدم تقليد اسماء الادمن\n5-عدم طلب الآدمنية من صاحب السيرفر\n6-عدم طلب الترقية\n\n*القوانين قابلة للتحديث في اي وقت\n", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(GUIEditor.label[2], "right", false) GUIEditor.label[3] = guiCreateLabel(115, 2, 120, 15, "", false, GUIEditor.window[1]) buttonclose = guiCreateButton(149, 274, 83, 34, "اغلق", false, GUIEditor.window[1]) end ) open = function() guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end bindKey ( "F9", "down", open ) addEventHandler ( "onClientGUIClick",root, function () if source == buttonclose then guiSetVisible ( GUIEditor.window[1], false ) showCursor( false ) end end )
-
الكوودد حقكك كلهه غلطط !! .. Server Side !! MyName = "Bssal" MySerial = "48F4071D08A403AA1B6C37723B43FCB2" addEventHandler("onPlayerJoin", root, function () if getPlayerName(source) == MyName and getPlayerSerial(source) ~= MySerial then outputChatBox("تم تقليد نك نيم الادمن البرنس", root, 255, 0, 0) banPlayer(source, false, false, true, root, "لا تحاول التهكير") else outputChatBox("تم دخول الادمن الحقيقي البرنس ", root, 255, 0, 0) end end) يجب اعطاء المود ادمنية لصك الباند resource.اسم المود مثال resource.NoBssal
-
سمم المود ححقي ذذ Client Side ! GUIEditor = { edit = {}, button = {}, label = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(188, 178, 476, 199, "Window Send Money v1.0 By AboShanab", false) guiSetVisible (GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1],false) guiWindowSetMovable(GUIEditor.window[1],true) GUIEditor.label[1] = guiCreateLabel(9, 31, 197, 15, "Write Money Send To All Players :", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 255, 0, 0) GUIEditor.edit[1] = guiCreateEdit(78, 84, 339, 28, "", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.edit[1], "NormalTextColour", "FF11FE00") GUIEditor.button[2] = guiCreateButton(350, 151, 117, 35, "Facking", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFEF0CF2") GUIEditor.button[3] = guiCreateButton(437, 23, 30, 31, "X", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFFF600") GUIEditor.button[4] = guiCreateButton(9, 151, 117, 35, "Send", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF0035FE") ------------------------------------- addCommandHandler("sa", function (Open) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(GUIEditor.window[1],false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 if guiGetVisible(GUIEditor.window[1]) ~= true then guiSetVisible(GUIEditor.window[1],true) guiSetPosition(GUIEditor.window[1],x,y,false) showCursor(true) else guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end) addEvent("AboShanabWindow",true) addEventHandler("AboShanabWindow",root,Open) ------------------------------------- addCommandHandler("SA", function (Open) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(GUIEditor.window[1],false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 if guiGetVisible(GUIEditor.window[1]) ~= true then guiSetVisible(GUIEditor.window[1],true) guiSetPosition(GUIEditor.window[1],x,y,false) showCursor(true) else guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end) addEvent("AboShanabWindow",true) addEventHandler("AboShanabWindow",root,Open) ------------------------------------- addEventHandler("onClientGUIClick",root, function () local amount = guiGetText(GUIEditor.edit[1]) if ( source == GUIEditor.button[4] ) then if ( string.len(amount) > 0 ) then setElementData(amount) triggerServerEvent("tSend",getLocalPlayer(), amount) else outputChatBox("* Not Write The Money",255,0,0) end end end) ------------------------------------- addEventHandler("onClientGUIClick",root, function () local amount = guiGetText(GUIEditor.edit[1]) if ( source == GUIEditor.button[2] ) then if ( string.len(amount) > 0 ) then triggerServerEvent("tFake",getLocalPlayer(), amount) else outputChatBox("* Not Write The Money",255,0,0) end end end) ------------------------------------- addEventHandler ("onClientGUIClick", root, function() if (source == GUIEditor.button[3]) then guiSetVisible(GUIEditor.window[1], false) showCursor(false) guiSetInputEnabled(false) end end ) Server Side ! function tSend(amount) for id, player in ipairs ( getElementsByType ( "player" ) ) do if tonumber(amount) then givePlayerMoney ( player, tonumber ( amount ) ) outputChatBox("** [ "..getPlayerName(source).."#FFFF1A ] Has Sent [ #00FF00"..amount.." $ #FFFF1A] to All Players **", player, 255,255,0,true) else outputChatBox("Please Enter a Number !",source,255,0,0,true) end end end addEvent("tSend",true) addEventHandler("tSend",root,tSend) function tFake ( amount ) if tonumber(amount) then outputChatBox("** [ "..getPlayerName(source).." #FFFF1A] Has Sent [ #00FF00"..amount.." $ #FFFF1A] to All Players **", root, 255,255,0,true) else outputChatBox("Please Enter a Number !",source,255,0,0,true) end end addEvent("tFake",true) addEventHandler("tFake",root,tFake) جميع الحقوق محفوظة لدى العقرب لبى قلبه
-
Client Side ! addEventHandler('onClientResourceStart', resourceRoot, Label = guiCreateLabel(1,29,215,162,"آهلا بك في السيرفر",false) Label2 = guiCreateLabel(1,55,215,162,"لمعرفه قوانين السيرفر أضغط أف 10",false) guiSetVisible(Label2,false) Label3 = guiCreateLabel(1,100,215,162,"نتمنى لك قضاء وقت رائع بالسيرفر",false) guiSetVisible(Label3,false) button = guiCreateButton(1,133,115,162,"متابعه",false) guiSetProperty(button,"HoverTextColour","FFFF0000") showCursor (true) fadeCamera (false) end ) setTimer(function() guiSetVisible(Label2,true) end,2000,1) setTimer(function() guiSetVisible(Label3,true) end,3000,1) addEventHandler("onClientGUIClick",root, function() if source == button then guiSetVisible(Label,false) guiSetVisible(Label2,false) guiSetVisible(Label3,false) guiSetVisible(button,false) showCursor (false) fadeCamera (true) end end )
-
Client Side ! addEventHandler ( 'onClientGUIClick', root, function () if source == GUIEditor.button[3] then if getPlayerMoney ( localPlayer ) >= 2350 then takePlayerMoney ( localPlayer, 2350 ) triggerServerEvent("nothing2", localPlayer ) guiSetVisible ( GUIEditor.window[2], false ) showCursor ( false ) else outputChatBox('#ff0000You do not have enough money !',255,255,255, true) end end end) Server Side ! addEvent("nothing2",true) addEventHandler("nothing2",root, function() -- Your Code end) اظن هيكك
-
متاككدد انه سيرفر + مجربه بسيرفري
-
السسلام عليككم ورحممة الله وبرككاته .. اخبارككم شباب اليوم مسوي لوحة حق tdma تصويتات حاولة اعدل على بعض اكواد سعد لاكن ما ضبط هذي الاكوادد -- Client Side ! lp = getLocalPlayer() GUIEditor = { gridlist = {}, window = {}, button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(290, 134, 254, 330, "VoteMap DeathMatch v1 By AboShanab", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.gridlist[1] = guiCreateGridList(34, 32, 194, 245, false, GUIEditor.window[1]) guiGridListSetSelectionMode(GUIEditor.gridlist[1],2) guiGridListAddColumn(GUIEditor.gridlist[1], " Tdma- ID ", 0.85) GUIEditor.button[1] = guiCreateButton(76, 292, 105, 28, "Vote", false, GUIEditor.window[1]) end ) ------------ local columns = guiGridListAddColumn(GUIEditor.gridlist[1], " Tdma- ID ", 0.85) addEvent("returnVoteDatas",true) addEventHandler("returnVoteDatas",root, function (resTable) guiGridListClear(GUIEditor.gridlist[1]) for index, resource in pairs(resTable) do if string.find(resource,"tdma",1) then row = guiGridListAddRow(GUIEditor.gridlist[1]) resource = gettok ( resource, 2, string.byte('_') ) guiGridListSetItemText(GUIEditor.gridlist[1],row,columns,tostring(resource),false,false) guiGridListSetItemColor ( GUIEditor.gridlist[1], row, 1, 0, 255, 150, 255 ) end end end) ------------- function onresourceStart () bindKey ("F1", "down", showUserPanel) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onresourceStart) function showUserPanel () local getVisible = guiGetVisible (GUIEditor.window[1]) if (getVisible) then guiSetVisible (GUIEditor.window[1], false) showCursor (false) else guiSetVisible (GUIEditor.window[1], true) showCursor (true) triggerServerEvent("getVoteDatas",localPlayer) end end ------------------------------ --- On Click ------------------------------ function onClick (button, state, absoluteX, absoluteY) selectedRow1, selectedCol1 = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) theMap1 = guiGridListGetItemText( GUIEditor.gridlist[1], selectedRow1, selectedCol1 ) if ( source == GUIEditor.button[1] ) then guiSetVisible(GUIEditor.window[1],false) showCursor (false) if theMap1 then triggerServerEvent("tdma",lp,lp,theMap1) end end end addEventHandler( "onClientGUIClick", root, onClick ) -- Server Side ! addEvent("tdma",true) addEventHandler("tdma",root, function (client, action) executeCommandHandler("votemap", client, "tdma_".. tostring(action)) end) addEvent("getVoteDatas",true) addEventHandler("getVoteDatas",root, function () local theTable = {} for index, resource in ipairs(getResources()) do if getResourceInfo(resource,"type") == "map" then name = getResourceName(resource) result = gettok ( name, 2, string.byte('_') ) if string.find(name,"tdma",1) and not string.find(name,"arena",1) and not string.find(name,"dm",1) then local aname = "tdma_"..result table.insert(theTable,aname) end end end table.sort(theTable) triggerClientEvent(source,"returnVoteDatas",source,theTable) end) المششكلة ما يجي حتى اسماء المابات حق tdma في القريدد ليستت !! و ما يصوووتت .. وشككرا
-
function Search () if ( source == GUIEditor.edit[5] ) then guiGridListClear ( GUIEditor.gridlist[2] ) local row = guiGridListAddRow ( GUIEditor.gridlist[2] ) local column = guiGridListAddColumn(GUIEditor.gridlist[2],"Players List ...", 1) local text = guiGetText ( source ) if ( text == "" ) then for id, player in ipairs ( getElementsByType ( "player" ) ) do guiGridListSetItemText ( GUIEditor.gridlist[2], row, column, getPlayerName ( player ), false, false ) guiGridListSetItemPlayerName ( GUIEditor.gridlist[2], guiGridListAddRow ( GUIEditor.gridlist[2] ), 1, getPlayerName ( player ), false, false ) end else for id, player in ipairs ( getElementsByType ( "player" ) ) do if ( string.find ( string.upper ( getPlayerName ( player ) ), string.upper ( text ), 1, true ) ) then guiGridListSetItemText ( GUIEditor.gridlist[2], row, column, getPlayerName ( player ), false, false ) guiGridListSetItemPlayerName ( GUIEditor.gridlist[2], guiGridListAddRow ( GUIEditor.gridlist[2] ), 1, getPlayerName ( player ), false, false ) end end end end end هيك مضبوط ؟؟
-
لم اجدهه ممكن تضبطه لي ؟؟ تراني عججزت وربي
-
وشو ما فهمت لك بريستيج .. اظن الكود حقي فيه خرابات ممكن تصلحها ؟ او تسوي كود ثاني
-
يسسلمو ع المرور اللي قدرت اسويه .. function Search () if ( source == GUIEditor.edit[5] ) then guiGridListClear ( GUIEditor.gridlist[2] ) local text = guiGetText ( source ) if ( text == "" ) then for id, player in ipairs ( getElementsByType ( "player" ) ) do guiGridListSetItemPlayerName ( GUIEditor.gridlist[2], guiGridListAddRow ( GUIEditor.gridlist[2] ), 1, getPlayerName ( player ), false, false ) end else for id, player in ipairs ( getElementsByType ( "player" ) ) do if ( string.find ( string.upper ( getPlayerName ( player ) ), string.upper ( text ), 1, true ) ) then guiGridListSetItemPlayerName ( GUIEditor.gridlist[2], guiGridListAddRow ( GUIEditor.gridlist[2] ), 1, getPlayerName ( player ), false, false ) end end end end end
-
السسلام عليككم ورحمة الله وبرككاته اخباركم شباب ؟؟ عسساكم بخير .. اليوم محتاج كود الـ Search بحث عن الاعب في الـ Grid List شباب لاحد يجي ويعطيني الايفنت وهيك طلبتكم ابيه جاهز عشان اتعلم اسوي مثله وهيك .. اطيب تحيةة .. ابو شنب ..
