-
Posts
206 -
Joined
-
Last visited
Everything posted by salh
-
this is Useful Functions player make this code not me i can't edit make it restart the timer
-
function GuiSetTextCountDown ( guiElement , Text, count ) if not guiElement or not Text or not count then outputDebugString("Bad arugment @ GuiSetTextCountDown ",0,255,0,0) return end guiSetText ( guiElement ,Text..' '..tonumber( count ) ) setTimer( function ( ) if not tonumber ( count ) then return false end count = count -1 guiSetText ( guiElement ,Text..' '..tonumber( count ) ) end , 1000 , count ) end times = guiCreateLabel(4, 255, 250, 53, "", false) GuiSetTextCountDown(times, "Timer", 10) this is Client Side
-
Countdown Text?
-
the code is runing what the problem use the code players = getElementsByType ( "player" ) for playerKey, playerValue in ipairs(players) do setTimer ( function() killPlayer(playerValue) end, 10000, 0 ) end oh the debug use this players = getElementsByType ( "player" ) for playerKey, playerValue in ipairs(players) do setTimer ( function() killPed ( playerValue, playerValue ) end, 10000, 0 ) end the code is serverside not Clientside
-
you want change spawn place?
-
players = getElementsByType ( "player" ) for playerKey, playerValue in ipairs(players) do setTimer ( function() killPlayer(playerValue) end, 10000, 0 ) end this code for 10s you can change the time
-
all player die?
-
you want when player die create timer for like 5s when 5s end respawn player?
-
addEventHandler("onClientRender", root, function dx() dxDrawRectangle(0, 0, x, y, tocolor(1, 1, 1), false) dxDrawRectangle(358, 159, 650, 450, tocolor(0, 0, 0), false) dxDrawRectangle(358, 159, 650, 50, tocolor(187, 255, 51), false) dxDrawText("WELCOM", 358, 159, 1008, 209, tocolor(0, 0, 0), 1, Font, "center", "center") end ) function F_BTN_GO (button) if button == "left" then guiSetVisible(BTN_L_A, false) guiSetVisible(BTN_R, false) triggerServerEvent ("onGreeting", getLocalPlayer()) removeEventHandler("onClientRender",getRootElement(),dx) -- for remove the window dx end end local x,y = guiGetScreenSize() Font = dxCreateFont("fonts/GOTHIC.ttf", 20) function dx() dxDrawRectangle(0, 0, x, y, tocolor(1, 1, 1), false) dxDrawRectangle(358, 159, 650, 450, tocolor(0, 0, 0), false) dxDrawRectangle(358, 159, 650, 50, tocolor(187, 255, 51), false) dxDrawText("WELCOM", 358, 159, 1008, 209, tocolor(0, 0, 0), 1, Font, "center", "center") end addEventHandler("onClientRender",getRootElement(),dx) -- for add the window dx showCursor(true) outputChatBox("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n") BTN_L_A = guiCreateStaticImage(358, 209, 100, 25, "img/btn_l_a.png", false) BTN_R = guiCreateStaticImage(458, 209, 140, 25, "img/btn_r.png", false) BTN_GO = guiCreateStaticImage(608, 544, 150, 40, "img/btn_go.png", false) addEventHandler("onClientGUIClick", root, function() -- event if(source == BTN_GO) then -- if player click button or StaticImage guiSetVisible(BTN_L_A, false) guiSetVisible(BTN_R, false) guiSetVisible(BTN_GO, false) showCursor(false) removeEventHandler("onClientRender",getRootElement(),dx) -- for remove the window dx end -- close if end) -- close function try this
-
you want if click button close button? -- the button button_go = guiCreateStaticImage( 419 , 240 , 185 , 124 , ":gui/images/dx_elements/checkbox_tick.png", false) addEventHandler("onClientGUIClick", root, function() -- event if(source == button_go) then -- if player click button or StaticImage outputChatBox("hi!") -- send in the chat hi! guiSetVisible( button_go, false) -- Make The Button Disappears end -- close if end) -- close function
-
the window you want to close
-
اعرف بس اذا يبي يحدد اوبجيكت يسوي الابجيكت و يسوي فاكشن لتحديده
-
اذا تبي تحدد عى ابوجكت استخدم https://wiki.multitheftauto.com/wiki/CreateObject و سوي له local
-
where the text? the text = /changepw to change your accoutn password?
-
addEventHandler("onClientGUIClick", root,function() if(source == BTN_GO) then outputChatBox("hi!") guiSetVisible(BTN_L_A, false) end end) -- button_go = guiCreateStaticImage(419, 240, 185, 124, ":gui/images/dx_elements/checkbox_tick.png", false) addEventHandler("onClientGUIClick", root,function() if(source == button_go) then outputChatBox("hi!") guiSetVisible(button_go,false) end end) and change your button name guiSetVisible(your window name,false)
-
طيب يوم اسويها جدول كيف اخليها تظهر؟
-
السلام عليكم شباب انا ابي اسوي dx يكون فيه ازرار دي اكس تكون تيجي تحت بعض يعني فيه لاست احط فيها الازرار كل ما اضيف زر يجي تحت بعض اتمنى فهمتني و شكرا
-
يعني في التاب يجي لون بس في الكل مسج ما يجي لون؟
-
-- function createTeamx ( Edit ) local team = createTeam(Edit,255,255,255) -- 255,255,255 = لون التيم , ولون التيم هو الأبيض الحين ! if team then setPlayerTeam(source, team) outputChatBox("Now you create team"..Edit,source,0,0,255,true) end end addEvent( "oncreate", true ) addEventHandler( "oncreate", root, createTeamx )اقدر اضيف عليه اقدر اسوي كذا؟ شكرا والله ما قصرت
-
GUIEditor = { button = {}, window = {}, label = {} } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 506) / 2, (screenH - 314) / 2, 506, 314, "Create Clan System |#| Exw 0.1", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(357, 70, 132, 50, "Create!", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(13, 49, 363, 18, "Set Clan Name!", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) clanname = guiCreateEdit(10, 67, 346, 49, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(15, 266, 361, 30, "Beta Vertion 0.1! & Exw", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 255, 0, 0) فيه ايديت بوكس انا ابي يوم يضغط الزر يسوي تيم ينقل الاعب له يقول لي في غلط في سطر رقم 6 function createTeam ( ) team = createTeam("Test", 0, 255, 0) outputChatBox("New Team: "..team,0,0,255,true) end addEvent( "oncreate", true ) addEventHandler( "oncreate", resourceRoot, createTeam ) + انا ابيها اسم الكلان يكتب في اليديت بوكس و الزر يصنع التيم و ينقل الاعب اذا ما عليك امر (:
-
السلام عليكم ان ابي اسوي كلان سيستيم بس فيه غلط يقولي Element gui-edit at triggerServerEvent ( "oncreate", resourceRoot, اسم الايديت بوكس) المحاولة -- كيلينت addEventHandler("onClientGUIClick", root,function() if(source == GUIEditor.button[1]) then triggerServerEvent ( "oncreate", resourceRoot, clanname ) end end) -- سيرفر function createTeam ( clan ) createTeam(clan) end addEvent( "oncreate", true ) addEventHandler( "oncreate", resourceRoot, createTeam )
-
انا شغال عندي تأكد من اسم الملف