-
Posts
2,259 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Adham
-
سلام عليكم اليوم عملت تاب كبيره ب الغلط ومش لاقيه كلمه اعادات فيه حل؟ http://b.top4top.net/p_95c4621.png
-
سلام عليكم اليوم عملت تاب كبيره ب الغلط ومش لاقيه كلمه اعادات فيه حل؟ http://b.top4top.net/p_95c4621.png
-
شو المشكله طيب؟ ما تظهر الوقت في القري لست changeGridListItemToPlayersName = function ( GridList, Column ) if GridList and Column then -- Check Parematers if getElementType ( GridList ) == "gui-gridlist" then -- Check The Type of ' GridList ' if guiGridListClear ( GridList ) then -- Clear GridList for i, v in next, getElementsByType ( "player" ) do -- Get Everything by Type ' player ' local Row = guiGridListAddRow ( GridList ) -- Add Row guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); -- Set New Values end; -- end of ' for ' end; -- end of ' clear gridlist ' end; -- end of ' check gridlist type ' end; -- end of ' check parematers end; GUIEditor = { gridlist = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(121, 88, 567, 414, ":: Jail Systeam ::", false) guiWindowSetSizable(wnd, false) guiSetVisible(wnd ,false) GUIEditor.button[1] = guiCreateButton(100, 302, 355, 35, "Jail Player", false, wnd) GUIEditor.button[2] = guiCreateButton(100, 347, 355, 35, "X", false, wnd) GUIEditor.label[1] = guiCreateLabel(397, 389, 164, 25, "Created By [L]e3bA | v4.3.1", false, wnd) guiLabelSetColor(GUIEditor.label[1], 255, 0, 0) grid2 = guiCreateGridList(291, 21, 242, 271, false, wnd) guiGridListAddColumn(grid2, "Time", 0.9) grid = guiCreateGridList(9, 21, 278, 271, false, wnd) col3 = guiGridListAddColumn(grid, "Name", 0.9) end ) function OpenWin( ) guiSetVisible ( wnd , not guiGetVisible ( wnd ) ) showCursor ( not isCursorShowing ( ) ) end bindKey ( "x", "down", OpenWin ) JP = { { "1 Min",60000 }, { "2 Min", 120000 }, { "3 Min", 180000 }, { "4 Min", 3000000 }, { "5 Min", 120000 }, { "6 Min", 600000 }, { "6 Min", 900000 }, { "6 Min", 1200000 }, { "6 Min", 1800000 }, { "6 Min", 2400000 }, } for k , v in ipairs ( JP ) do local Row = guiGridListAddRow ( grid2 ) guiGridListSetItemText ( grid2 ,Row , 1, v[1] , false , false ); guiGridListSetItemData ( grid2 , Row , 1, v[2] ) end addEventHandler("onClientGUIClick", GUIEditor.button[1], function ( ) local Sel = guiGridListGetSelectedItem ( grid ) local Sel2 = guiGridListGetSelectedItem ( grid2 ) if Sel ~= -1 and Sel2 ~= -1 then local Player = guiGridListGetItemText ( grid,2 Sel, 1 ) local Jail = guiGridListGetItemData ( grid2 , Sel2 , 1 ) triggerServerEvent ( "Jail_Player",localPlayer,Player,Jail ) end end,false ) ; addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then guiSetVisible(wnd,false) showCursor(false) end end ) سرفر table = { } addEvent("Jail_Player",true) addEventHandler("Jail_Player",root, function ( Player , Time ) local ThePlayer = getPlayerFromName ( Player ) if isTimer ( table[ ThePlayer ] ) then return outputChatBox ("الاعب مسجون",source,255,255,255,true) end setElementPosition ( ThePlayer , 2122.21818, 53121, 10.5141 ) table[ ThePlayer ] = setTimer ( setElementPosition , Time , 1 , ThePlayer , 2122.21338 , 2243.54175 , 10.67188 ) end ) ;
-
طيب والكود دا addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function(Name,Text) local gg = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,Name, false, false) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 2,tostring(Text), false, false) guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1, 35, 254, 0, 255) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : #00FF00"..guiGetText(GUIEditor.edit[1]),255,255,0,true) end end) عاوز اليبعت رساله يكون الون اخضر يعني بيجي الاسم اخضر عادي و Message بتيجي ابيض
-
مشكور طيب بس استفسار تاني انا عاوز الكوا متظهرش لما في القريد لست اسمي مثلن #000000[L]e3bA بيجلي اسمي كدا #0000000[L]e3bA انا عاوز الاسم ميجيش ب الاكواد
-
طيب الكود دا انا عاوز يكون لون اخضر كل اللاعبين حطيط الكود لونو برده ابيض function update () guiGridListClear(GUIEditor.gridlist[2]) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (GUIEditor.gridlist[2]) guiGridListSetItemText (GUIEditor.gridlist[2],rp,1,getPlayerName(v),false,false) guiGridListSetItemColor(GUIEditor.gridlist[2],rp, 2, 35, 254, 0, 255,false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update)
-
شكرا لك. بس لو عاوز اليبعت رساله يضعط send والرساله تيجي في القريد لست تتمسح من الديت
-
player = ماهي معرفه <> @ Sylence # Client addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent("SlapPlayer", localPlayer , localPlayer ) end end ) # Server addEvent("SlapPlayer",true) addEventHandler("SlapPlayer",root, function ( player ) Slapper = getPlayerName ( player ) outputChatBox (getPlayerName( source) .." has Slapped "..Slapper , root , 255,255,255,true ) end ) ; كذا راح يطلع اسم الاعب الي صك سلاب والي انصك سلاب بالشات , راح يشوفه الجميع تمام بس سوال هوا ينفع الكود دا يعني لما حد يصك سلاب للتاني وميحددش اسمه في القريد لست يقولو * pls change name يعني ميقدرش يصك حد وهوا مش محدد اسمه
-
مش بيعمل send ومش شغال لاكن تفتح عادي
-
سلام عليكم عملت لوحه سبورت سيستم لاكن ما شتغلت كلنت
-
ليه؟ هوا لما بضعط وبتك علي الزر مش بيظهر شي ب الشات بيقلي عشان player
-
for _, v in ipairs (JP) do local Row = guiGridListAddRow(grid) guiGridListSetItemText(grid, Row, 1, v[1], false, false) guiGridListSetItemText(grid, Row, 2, v[2], false, false) guiGridListSetItemData(grid, Row,1, v[3], false, false) end تاني شي دا addEventHandler("onClientGUIClick", GUIEditor.button[1], function ( ) local sel = guiGridListGetSelectedItem(grid) local sel2 = guiGridListGetSelectedItem(grid2) local Jail = unpack(guiGridListGetItemData ( grid,sel,1 )) local Mk = setElementPosition ( 2122.21818, 53121, 10.5141 ) setElementPosition ( 2122.21338, 2243.54175, 10.67188 ) if sel ~= -1 and sel2 ~= -1 and getElementType(player) == "player" then setTimer ( Jail , Mk ) end end) لو ما ظبت اطرج اكوادك
-
addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent("SlapPlayer", localPlayer) outputChatBox(getPlayerName(source).." Your text here "..getPlayerName(player),root,255,0,0) end end) ما ظبت