-
Posts
569 -
Joined
-
Last visited
Everything posted by ☠ RaZeR ☠
-
حطيتها لوكل بلير , نفس المشكله #
-
lvel = guiCreateLabel(989, 690, 146, 15, "انت في المستوى 2", false) function ttt3( ) triggerServerEvent ( "foxfixx123", root, guiGetText ( lvel ) ) end setTimer(ttt3, 500, 0) addEvent ( 'foxfixx2', true ) addEventHandler ( 'foxfixx2', root, function ( ttxtt3 ) if ( ttxtt3 == "انت في المستوى 2" ) then outputChatBox ( 'انت في المستوى الثاني#', 255,255,255,true ) else outputChatBox ( '# لست في المستوى الثاني', 255,255,255,true ) end) addEvent ( 'foxfixx123', true ) addEventHandler ( 'foxfixx123',root, function ( ttxtt3 ) triggerClientEvent ( root, 'foxfixx2', root, ttxtt3 ) end )
-
لا القوس حق الاغلاق انا حاطه بس نسيت احطه هنا نفس المشكلة !
-
سلام عليكم ورحمة الله وبركاته عندي مشكله بالديبوق client : function ttt3( ) triggerServerEvent ( "foxfixx123", root, guiGetText ( lvel ) ) end setTimer(ttt3, 500, 0) addEvent ( 'foxfixx2', true ) addEventHandler ( 'foxfixx2', root, function ( ttxtt3 ) guiSetVisible (Wndanswr, false) end Server : addEvent ( 'foxfixx123', true ) addEventHandler ( 'foxfixx123',root, function ( ttxtt3 ) triggerClientEvent ( root, 'foxfixx2', root, ttxtt3 ) end )
-
تم حل المشكلة شكرا @#,+( _xiRoc[K]; > والباقي
-
done = guiCreateButton(558, 162, 118, 37, "Done", false) edit2 = guiCreateEdit(348, 82, 143, 39, "2", false) edit3 = guiCreateEdit(322, 139, 174, 60, "3", false) edit1 = guiCreateEdit(558, 101, 116, 37, "1", false) local screenWidth, screenHeight = guiGetScreenSize ( ) LVL3 = guiCreateLabel(989, screenHeight - 120, screenWidth, screenHeight, "goooooooooooooooooood", false) addEventHandler ( 'onClientGUIClick', root, function ( ) if ( source == done ) then triggerServerEvent ( "but55lvl1", root ) LVL1N ( ) end end ) addEvent ( '1but55lvl1', true ) function LVL1N ( ) if ( guiGetText ( edit2 ) == guiGetText ( edit3 ) ) then if ( guiGetText ( edit1 ) == "1" ) then guiSetVisible (done, false) guiLabelSetColor(LVL3, 0, 255, 0) outputChatBox( "#0099CC[ ACEEPTED] ] : #ff0000" , 255 , 0 , 0 , true ) else ----------- قصدي هنا على افــ الاولى guiSetVisible (done, true) guiLabelSetColor(LVL3, 255, 0, 0) outputChatBox( "#0099CC[ REFUSED] ] : #ff0000" , 255 , 0 , 0 , true ) end end addEventHandler ( '1but55lvl1', root, LVL1N ) هذا الاختصار
-
سويت تعديل وحطيت كل شي !
-
المشكلة الشرط ذا مب شغال if ( guiGetText ( edit2 ) == guiGetText ( edit3 ) ) then outputChatBox( "#0099CC[ ACEEPTED] number1 ] : #ff0000" , 255 , 0 , 0 , true ) مايطلع شي في الشات او يتنفذ الفنكشن كلنت done = guiCreateButton(558, 162, 118, 37, "Done", false) edit2 = guiCreateEdit(348, 82, 143, 39, "2", false) edit3 = guiCreateEdit(322, 139, 174, 60, "3", false) edit1 = guiCreateEdit(558, 101, 116, 37, "1", false) local screenWidth, screenHeight = guiGetScreenSize ( ) LVL3 = guiCreateLabel(989, screenHeight - 120, screenWidth, screenHeight, "goooooooooooooooooood", false) addEventHandler ( 'onClientGUIClick', root, function ( ) if ( source == done ) then triggerServerEvent ( "but55lvl1", root ) LVL1N ( ) end end ) addEvent ( '1but55lvl1', true ) function LVL1N ( ) if ( guiGetText ( edit2 ) == guiGetText ( edit3 ) ) then LVL1T( ) outputChatBox( "#0099CC[ ACEEPTED] number1 ] : #ff0000" , 255 , 0 , 0 , true ) else LVL1F( ) end end addEventHandler ( '1but55lvl1', root, LVL1N ) function LVL1T ( ) if ( guiGetText ( edit1 ) == "1" ) then triggerServerEvent ( 'TRUE11', localPlayer ) LVL1TT( ) else cancelEvent () end end function LVL1TT( ) guiSetVisible (done, false) guiLabelSetColor(LVL3, 0, 255, 0) outputChatBox( "#0099CC[ ACEEPTED] ] : #ff0000" , 255 , 0 , 0 , true ) end addEvent ( 'TRUE1', true ) addEventHandler ( 'TRUE1', root, LVL1TT ) function LVL1F( ) if ( guiGetText ( edit1 ) == "1" ) then LVL1FF( ) else cancelEvent () end end function LVL1FF( ) guiSetVisible (done, true) guiLabelSetColor(LVL3, 255, 0, 0) outputChatBox( "#0099CC[ REFUSED] ] : #ff0000" , 255 , 0 , 0 , true ) end سيرفر local lvlchhhh12 = {"Team1", "Team2", "Team3"} addEvent('but55lvl1',true) addEventHandler('but55lvl1', root , function ( ) for i=1, #lvlchhhh12 do local team88 = getTeamFromName(lvlchhhh12[i]) -- teams[i] means, teams[1], teams[2], teams[3], teams[4] (returns the value for each) if team88 then for _,v in ipairs ( getPlayersInTeam ( getTeamFromName(lvlchhhh12[i]) ) ) do triggerClientEvent(v,'1but55lvl1',v) end end end end) addEvent ( 'TRUE11', true ) addEventHandler ( 'TRUE11', root, function ( ) triggerClientEvent ( root, 'TRUE1', root ) end )
-
المشكلة الكودد مرهه طويل !
-
شايف setElementData(root, "lvls11", false) setElementData(root, "lvls22", true) guiSetVisible (LVL1, true) guiSetAlpha ( LVL1, 1 ) guiLabelSetColor(LVL1, 0, 255, 0) outputChatBox( "#0099CC[ ACEEPTED] ] : #ff0000" , 255 , 0 , 0 , true ) triggerServerEvent ( "lvlv", root ) setElementData(root, "lvls11ss", true) ابيهم يتسوووا اذا الكلام اللي في الاديت الاول يساوي الكلام اللي في الاديت الثاني لتيمات معينة
-
سويت وما اشتغل ! كلنت ! function LVL1T ( ) if ( guiGetText ( lvel ) == "1" ) then triggerServerEvent ( 'TRUE11', localPlayer ) else cancelEvent () end end addEvent ( 'TRUE1', true ) function LVL1TT( ) setElementData(root, "lvls11", false) setElementData(root, "lvls22", true) guiSetVisible (LVL1, true) guiSetAlpha ( LVL1, 1 ) guiLabelSetColor(LVL1, 0, 255, 0) outputChatBox( "#0099CC[ ACEEPTED] ] : #ff0000" , 255 , 0 , 0 , true ) triggerServerEvent ( "lvlv", root ) setElementData(root, "lvls11ss", true) end addEventHandler ( 'TRUE1', root, LVL1TT ) سيرفر هنا ماحطيت كل اللاعبين انا حطيت الي في تيم محدد ! local lvlchhhh22 = {"Team1", "Team2", "Team3"} addEvent ( 'TRUE11', true ) addEventHandler ( 'TRUE11', root, function ( ) for i=1, #lvlchhhh22 do local team88 = getTeamFromName(lvlchhhh22[i]) if team88 then for _,v in ipairs ( getPlayersInTeam ( getTeamFromName(lvlchhhh22[i]) ) ) do triggerClientEvent ( root, 'TRUE1', root ) end end end end )
-
ابي اخفي الزر عند الكل ! .....
-
setPlayerMoney ( source, mmm ) لو ابي احط مكانها guiSetVisible (Done, false) وتظهر لكل الاعبين
-
شوف في زر اوك ابي اذا اي لاعب ضغط عليه يسوي تحقق او شرط اللي هو if اذا الكلام اللي في الديت الاول = الكلام في الديت الثاني اذا تحقق الشرط يطلب فنكشن معين واذا ما تحقق يطلب فنكشن ثاني
-
الشرح واضح ويفهم المطلوب !
-
عندي زر اذا ضغط عليه يستدعي الفنكشن LVL10s() وفي الفنكشن فيه شرط او تحقق معرف local getfromplayer = guiGetText(edit2) local getfromadmin = guiGetText(edit3) if getfromadmin == getfromplayer then المشكلة الشرط ذا مب راضي يشتغل انا حاطه اذا تم استدعاء LVL10s() وان if getfromadmin == getfromplayer then يستدعي LVL10sss() وكذا لو فهمت الكود فوق بتفهم الوضع
-
المشكلة هنا if getfromadmin == getfromplayer then الشرط مب شغال وابيه يظهر لكل الناس وش الحل ؟ edit1 = guiCreateEdit(558, 101, 116, 37, "1", false) edit2 = guiCreateEdit(348, 82, 143, 39, "2", false) edit3 = guiCreateEdit(322, 139, 174, 60, "3", false) done = guiCreateButton(558, 162, 118, 37, "Done", false) local getfromplayer = guiGetText(edit2) local getfromadmin = guiGetText(edit3) addEventHandler ( 'onClientGUIClick', root, function ( ) if ( source == done ) then LVL10s() end end ) function LVL10s() if getfromadmin == getfromplayer then LVL10sss() else LVL10sssss() end end function LVL10sss() local getlvl = guiGetText(edit1) if getlvl == "1" then setPlayerMoney ( 999 ) end end function LVL10sssss() local getlvl2 = guiGetText(edit1) if getlvl2 == "1" then setPlayerMoney ( 200 ) end end
-
والله يسعدك ربي مشكور ! واظفت شي جديد اتعلمته ! # تمت الافاده يغلق !
-
اشتغل وشكرا بس ابي اعرف ايش سويت !
-
سلام عليكم عندي اديت بوكس GEDIT = guiCreateEdit(489, 359, 48, 29, "", false) وعندي ليبل anr = guiCreateLabel(801, 329, 34, 25, "", false) ابيه اذا ضغط على زر يطلع الكلام اللي مكتوب في الاديت بوكس في الليبل # هذي محاولتي " مشكلتها" اذا ضغط اللاعب يظهر عنده بس مايظهر عند كل اللاعبين كلنت ! addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[6] then triggerServerEvent ( "2", localPlayer ) end end) addEvent('22',true) addEventHandler('22',root, function () local Get = guiGetText(GEDIT) guiSetText(anr,Get) end) سيرفر addEvent( "2",true ) addEventHandler( "2",root, function () triggerClientEvent( source,"22",source ) end ) واستخدمت الداتا ومانفع setElementData(localPlayer, "show", true) if ( getElementData ( localPlayer, "show" ) == true ) then
-
سلام عليكم ورحمة الله وبركاته شباب انا سويت ماركر اذا اللاعب لمس الماركر يجيه مبلغ موجود انا احط قيمته في لوحة " " edit المشكلة الفلوس ماتيجي اعتقد في شي غلط ! client ! ? sett = guiCreateButton(507, 278, 64, 37, "Set The Money", true) money = guiCreateEdit(448, 225, 166, 45, "", true) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == sett ) then local amount = guiGetText ( money ) triggerServerEvent( "SendMoney", localPlayer, amount ) end end ) server ! ? addEvent ( "SendMoney", true ) addEventHandler ( "SendMoney", root, Money ) addEventHandler ( "onMarkerHit", resourceRoot, function ( element, amount ) if ( source == myMarker1 ) thenif ( getElementType ( element ) == "player" ) then setMarkerSize( myMarker1, 0 ) givePlayerMoney(source, tonumber(amount)) sendClientMessage ( '- ' .. getPlayerName(element) .. ' money', root, 255, 23, 23, top, 15 ) outputChatBox(" ", root, 183, 92, 38) end end end))
-
`NOT working
-
hello guys i want to set money in edit box then if i went to the marker i get the money in edit box i do it but doesnt work client ! sett = guiCreateButton(507, 278, 64, 37, "Set The Money", true) money = guiCreateEdit(448, 225, 166, 45, "", true) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == sett ) then local amount = guiGetText ( money ) triggerServerEvent( "SendMoney", localPlayer, amount ) end end ) server ! addEvent ( "SendMoney", true ) addEventHandler ( "SendMoney", root, Money ) addEventHandler ( "onMarkerHit", resourceRoot, function ( element, amount ) if ( source == myMarker1 ) then if ( getElementType ( element ) == "player" ) then destroyElement ( gold ) setMarkerSize( myMarker1, 0 ) givePlayerMoney(source, tonumber(amount)) sendClientMessage ( '- ' .. getPlayerName(element) .. ' money', root, 255, 23, 23, top, 15 ) outputChatBox(" ", root, 183, 92, 38) end end end))
-
مثل ماقالوا الشباب نبي خيار اختيار الاستايل ( قديم او جديد )