-
Posts
897 -
Joined
-
Last visited
Everything posted by #|_oskar_|#
-
addCommandHandler("vip",function() local accName = getAccountName ( getPlayerAccount ( source) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then triggerClientEvent (source,"open",source) end end)
-
addEventHandler("onClientPreRender", root,function() setTime(0,0) -- الساعه setWeather (6) -- الطقس end)
-
bindKey ( "k", "down", function ( ) if isPlayerGroupName("support") then guiSetVisible (supportsystem,not guiGetVisible (supportsystem)) showCursor (guiGetVisible (supportsystem)) end end)
-
addEvent("Out",true) addEventHandler("Out", root, function ( msg ) outputChatBox(getPlayerName(client)..": "..msg.." ",root, 255, 0, 0,true) end )
-
addEventHandler ( "onClientGUIClick", resourceRoot,function () if ( source == GUIEditor.button[1] ) then if guiGetText(edit) ~= '' then outputChatBox(" "..guiGetText(edit).." ", 255, 0, 0) end end end)
-
addEventHandler ( "onClientGUIClick", resourceRoot,function () if ( source == OK ) then outputChatBox(" "..guiGetText(edit).." ", 255, 0, 0) end end) ال if كانت زياده
-
عادي نفس الشئ كل اللى عليك انك تحط اسم الزر + الايديت باللوحه الثانيه
-
GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(211, 190, 361, 301, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) grid = guiCreateGridList(10, 21, 245, 163, false, GUIEditor.window[1]) local clom = guiGridListAddColumn(grid, "مخالفاتي", 0.9) GUIEditor.button[1] = guiCreateButton(26, 213, 219, 35, "OK", false, GUIEditor.window[1]) edit = guiCreateEdit(28, 188, 217, 25, "", false, GUIEditor.window[1]) function Strong ( ) guiSetVisible ( GUIEditor.window[1],true ) showCursor ( true ) -- اظهار الماوس end addCommandHandler ( "Teams",Strong ) addEventHandler ( "onClientGUIClick", resourceRoot,function () if ( source == GUIEditor.button[1] ) then local row = guiGridListAddRow (grid) if guiGetText(edit) ~= '' then guiGridListSetItemText (grid, row,clom,guiGetText(edit), false, false) end end end) end )
-
كودك صح بس كان زايد قوس addEventHandler ( "onClientGUIClick", resourceRoot,function () if ( source == button ) then local row = guiGridListAddRow (grid) if guiGetText(edit) ~= '' then guiGridListSetItemText (grid, row,clom,guiGetText(edit), false, false) end end end)
-
getRealTime -- استخدم ذا الكود عشان تجيب الوقت الحقيقي والتاريخ
-
ضيفه مع التاج function Data(element,string,value,string1,value1,string2,value2) setElementData(element,string,value) setElementData(element,string1,value1) setElementData(element,string2,value2) end button = { GUI = {} } label = { GUI = {} } edit = { GUI = {} } local screenW, screenH = guiGetScreenSize() window = guiCreateWindow((screenW - 215) / 2, (screenH - 135) / 2, 215, 135, "color name", false) guiWindowSetSizable(window, false) guiSetAlpha(window, 1.00) guiSetProperty(window, "CaptionColour", "FFBDB341") button.GUI['setcolor'] = guiCreateButton(10, 93, 195, 32, "Set Color", false, window) guiSetFont(button.GUI['setcolor'], "default-bold-small") guiSetProperty(button.GUI['setcolor'], "NormalTextColour", "FFD02D2D") edit.GUI['red'] = guiCreateEdit(10, 56, 65, 33, "255", false, window) guiSetProperty(edit.GUI['red'], "NormalTextColour", "FFFF0000") guiEditSetMaxLength(edit.GUI['red'], 3) edit.GUI['green'] = guiCreateEdit(75, 56, 65, 33, "255", false, window) guiSetProperty(edit.GUI['green'], "NormalTextColour", "FF008913") guiEditSetMaxLength(edit.GUI['green'], 3) edit.GUI['blue'] = guiCreateEdit(140, 56, 65, 33, "255", false, window) guiSetProperty(edit.GUI['blue'], "NormalTextColour", "FF001688") guiEditSetMaxLength(edit.GUI['blue'], 3) label.GUI['red'] = guiCreateLabel(10, 38, 60, 18, "Red", false, window) guiSetFont(label.GUI['red'], "default-bold-small") guiLabelSetColor(label.GUI['red'], 255, 0, 0) guiLabelSetHorizontalAlign(label.GUI['red'], "center", false) label.GUI['green'] = guiCreateLabel(75, 38, 60, 18, "Green", false, window) guiSetFont(label.GUI['green'], "default-bold-small") guiLabelSetColor(label.GUI['green'], 0, 255, 0) guiLabelSetHorizontalAlign(label.GUI['green'], "center", false) label.GUI['blue'] = guiCreateLabel(140, 38, 60, 18, "Blue", false, window) guiSetFont(label.GUI['blue'], "default-bold-small") guiLabelSetColor(label.GUI['blue'], 20, 73, 226) guiLabelSetHorizontalAlign(label.GUI['blue'], "center", false) ------------------------------------- addEventHandler("onClientGUIClick", root,function () if(source == button.GUI['setcolor'] ) then red = guiGetText (edit.GUI['red']) green = guiGetText (edit.GUI['green']) blue = guiGetText (edit.GUI['blue']) if red ~= '' and green ~= '' and blue ~= '' then Data(localPlayer,'red',red,'green',green,'blue',blue) else outputChatBox("يجب ملئ جميع الفراغات") end end end) addEventHandler("onPlayerChat",root,function (msg) cancelEvent() red = getElementData(source,"red") or 255 green = getElementData(source,"green") or 255 blue = getElementData(source,"blue") or 255 string = string.format("#%.2X%.2X%.2X",red,green,blue) outputChatBox(string ..''.. getPlayerName(source):gsub("#%x%x%x%x%x%x", "") .. ' #FFFFFF'.. msg,root, r, g, b, true) end)
-
اقتح الرابط وانت تفهم كل شئ
-
getElementsByType --- سوي لوب لكل اللاعبين
-
احسن من التايمر addEventHandler ("onClientGUIClick",ButtonName,function () local Sound = playSound("sound.mp3") guiSetEnabled(ButtonName,false) end,false) addEventHandler ( "onClientSoundStopped", resourceRoot,function (oskar) if ( oskar == "finished" ) then guiSetEnabled(ButtonName,true) end end)
-
روح المكان اللى تبي تتنقل عليه وبعدين افتح لوحة الادمن شوف الانترو كام لو الانترو 3 حطه setElementInterior ( hitPlayer, 3 ) --- رقم 3 هو رقم الانترو اللى اختارته ولو عايز تغير العالم setElementDimension ( hitPlayer, 1 ) -- رقم 1 هو رقم العالم اللى اخترته وعشان تظهر الماركر بالانترو المحدد setElementInterior (markerExit, 3 ) -- حط رقم الانترو بدل رقم 3 ولو مافهمت قول
-
كدا رح يكرر الصوت لو ضغط ع الزر اكثر من مره
-
bindKey
-
طيب وضح وش تبي تسوي ؟ عاوز لما اضغط علي بطن 1 يفتح مود من لوحة الادمن اسمه localchat-SaedAmer و لما اضغط علي بطن 2 يقفلو لازم تطرح اكواد المود عشان اقدر اساعدك اطرح ملف كلنت فقط