-
Posts
1,336 -
Joined
Everything posted by The Killer
-
triggerClientEvent("sonido",getRootElement()) -- هنا ناقص ارقمنت الي بيظهر له الكلام -- يصير كذا triggerClientEvent(root, "sonido", source)
-
اوه صحيح مشكور ع التعديل هو بس خربطني لأنه حاط اللاعب #
-
Server side # addEventHandler ("onPlayerChat", root, function (plr) local accName = getAccountName (getPlayerAccount (plr)) if isObjectInACLGroup ("user." .. accName, aclGetGroup ("Console")) then triggerClientEvent (root, "PlaySound", plr) end end ) Client side # addEvent ("PlaySound", true) addEventHandler ("PlaySound", root, function () local sound = playSound("chat.mp3", false) setSoundVolume(sound, 0.9) end )
-
هذا صار لأن شكلك حاط الناافذه والقريد ليست تحت الكود المهم سويت لك نافذه جديده حط الكود وجرب ,# local warp = { {"البداية -1", 832.93, -4505.32, 13.87}, } GUIEditor = { gridlist = {}, window = {}, button = {} } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 479) / 2, (screenH - 429) / 2, 479, 429, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.gridlist[1] = guiCreateGridList(10, 29, 459, 340, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "warp", 0.85) GUIEditor.button[1] = guiCreateButton(155, 376, 170, 36, "انتقال", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") for i, mk in ipairs (warp) do local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1], row, 1, mk[1], false, false) guiGridListSetItemData (GUIEditor.gridlist[1], row, 1, {mk[2], mk[3], mk[4]}) guiGridListSetItemColor (GUIEditor.gridlist[1], row, 1, math.random (0, 255), math.random (0, 255), math.random (0, 255)) end addEventHandler ("onClientGUIClick", resourceRoot, function () if (source == GUIEditor.button[1]) then local row = guiGridListGetSelectedItem (GUIEditor.gridlist[1]) local select = guiGridListGetItemText (GUIEditor.gridlist[1], row, 1) if (select and select ~= "") then fadeCamera (false) setTimer (function () for _,v in ipairs (warp) do if (select == v[1]) then setElementPosition (localPlayer, v[2], v[3], v[4]) fadeCamera (true) break end end end, 1000, 1) end end end )
-
ما يشتغل كيف يعني وش مشكلته وش يصير يوم تشغله /debugscript
-
X سيرفر مع كلاينت ---- Event # 'onClientResourceStart' function # -- Loop guiGridListAddRow getPlayerName guiGridListSetItemText[ triggerServerEvent -- Server side # local table = {"Console", "Admin"} -- حط فيه اسماء القروبات function # getPlayerMoney -- Loop isObjectInACLGroup triggerClientEvent -- Client side # function # guiGridListSetItemText ----- لوحة لقروب معين function # bindKey triggerServerEvent -- Server side # function # isObjectInACLGroup triggerClientEvent -- Client side # guiSetVisible guiGetVisible showCursor ----- زر يضغطه 3 مرات ينصك كيك تقدر تسويها عن طريق الفاريبل او المنت داتا Event # 'onClientGUIClick' function # variable triggerServerEvent -- Server side function # kickPlayer
-
طيب جرب كذا Button = guiCreateButton(319,477,173,53,"",false) function Spawn () grid = guiCreateGridList ( 306,161,199,309, false ) local columnA = guiGridListAddColumn ( grid, "Title", 0.85 ) rowA = guiGridListAddRow ( grid ) rowB = guiGridListAddRow ( grid ) guiGridListSetItemText ( grid, rowA, columnA, "Spawn", false, false ) guiGridListSetItemText ( grid, rowB, columnA, "Spawn2", false, false ) local SpawnName = guiGridListGetItemText ( grid, guiGridListGetSelectedItem ( grid ), 1 ) setElementData ( localPlayer, "Spawncite", SpawnName ) end addEventHandler("onClientResourceStart", resourceRoot, Spawn) addEventHandler ("onClientGUIClick", resourceRoot, function () if (source == Button) then local row, col = guiGridListGetSelectedItem (grid) local text = guiGridListGetItemText (grid, row, col) if (text and text ~= "") then setElementData (localPlayer, "Spawncite", text) end end end )
-
Button = guiCreateButton(319,477,173,53,"",false) function Spawn () local grid = guiCreateGridList ( 306,161,199,309, false ) local columnA = guiGridListAddColumn ( grid, "Title", 0.85 ) rowA = guiGridListAddRow ( grid ) rowB = guiGridListAddRow ( grid ) guiGridListSetItemText ( grid, rowA, columnA, "Spawn", false, false ) guiGridListSetItemText ( grid, rowB, columnA, "Spawn2", false, false ) local SpawnName = guiGridListGetItemText ( grid, guiGridListGetSelectedItem ( grid ), 1 ) setElementData ( localPlayer, "Spawncite", SpawnName ) end addEventHandler("onClientResourceStart", resourceRoot, Spawn) addEventHandler ("onClientGUIClick", resourceRoot, function () if (source == Button) then local row, col = guiGridListGetSelectedItem (grid) local text = guiGridListGetItemText (grid, row, col) if (text and text ~= "") then setElementData (localPlayer, "Spawncite", text) end end end )
-
addEventHandler ("onClientGUIClick", resourceRoot, function () if (source == Button) then -- Your code end end )
-
جرب كذا طيب Button = guiCreateButton(319,477,173,53,"",false) function Spawn () grid = guiCreateGridList ( 306,161,199,309, false ) local columnA = guiGridListAddColumn ( grid, "Title", 0.85 ) rowA = guiGridListAddRow ( grid ) rowB = guiGridListAddRow ( grid ) guiGridListSetItemText ( grid, rowA, columnA, "Spawn", false, false ) guiGridListSetItemText ( grid, rowB, columnA, "Spawn2", false, false ) local SpawnName = guiGridListGetItemText ( grid, guiGridListGetSelectedItem ( grid ), 1 ) setElementData ( localPlayer, "Spawncite", SpawnName ) end addEventHandler("onClientResourceStart", resourceRoot, Spawn) addEventHandler ("onClientGUIClick", resourceRoot, function () if (source == Button) then local row, col = guiGridListGetSelectedItem (grid) local text = guiGridListGetItemText (grid, row, col) if (text and text ~= "") then setElementData (localPlayer, "Spawncite", text) end end end )
-
function Spawn () local grid = guiCreateGridList ( 306,161,199,309, false ) local columnA = guiGridListAddColumn ( grid, "Title", 0.85 ) rowA = guiGridListAddRow ( grid ) rowB = guiGridListAddRow ( grid ) guiGridListSetItemText ( grid, rowA, columnA, "Spawn", false, false ) guiGridListSetItemText ( grid, rowB, columnA, "Spawn2", false, false ) local SpawnName = guiGridListGetItemText ( grid, guiGridListGetSelectedItem ( grid ), 1 ) setElementData ( localPlayer, "Spawncite", SpawnName ) end addEventHandler("onClientResourceStart", root, Spawn) function Spawncite ( ) setElementData ( source, "Spawncite", getTickCount() ) local players = getElementsByType ( "player" ) for playerKey, playerValue in ipairs(players) do spawnPlayer ( playerValue, 0.0, 0.0, 5.0, 90.0, 0 ) end end addEventHandler ( "onPlayerWasted", root, Spawncite )
-
function toggleFRWindow() if getElementDimension ( localPlayer ) == 200 then return end if isWindowOpen(wndMain) then showCursor(false) hideAllWindows() colorPicker.closeSelect() else showCursor(true) showAllWindows() end end addCommandHandler('fr', toggleFRWindow)
-
function Spawn () local grid = guiCreateGridList ( 306,161,199,309, false ) local columnA = guiGridListAddColumn ( grid, "Title", 0.85 ) rowA = guiGridListAddRow ( grid ) rowB = guiGridListAddRow ( grid ) guiGridListSetItemText ( grid, rowA, columnA, "Spawn", false, false ) guiGridListSetItemText ( grid, rowB, columnA, "Spawn2", false, false ) local SpawnName = guiGridListGetItemText ( grid, guiGridListGetSelectedItem ( grid ), 1 ) setElementData ( localPlayer, "Spawncite", SpawnName ) end addEventHandler("onClientResourceStart", root, Spawn) function Spawncite ( ) setElementData ( source, "Spawncite", getTickCount() ) local players = getElementsByType ( "player" ) for playerKey, playerValue in ipairs(players) do spawnPlayer ( playerValue, 0.0, 0.0, 5.0, 90.0, 0 ) end end addEventHandler ( "onPlayerWasted", root, Spawncite )
-
طيب اول ما تشغل الجهاز , حط كودك ونساعدك ,# ان شاء الله ,#
-
طيب اطرح كودك
-
اطرح كودك طيب ماني فاهم وش تبي تسوي انت وش القسمه ؟
-
اها تبي مثلا تكتب مليون , ووالمليون تتقسم كل واحد ياخذ 10 الف من المليوون
-
اها يعني لو وزعت 10 الف يضربهم على اللاعبين الي في السيرفر ؟ ويتدبل السعر ؟
-
وضح وش تبي انت ,#
-
وضح كلامك ,#
-
onClientPlayerWasted setElementPosition onPlayerWasted spawnPlayer
-
يب ينفع لاكن انبهك انها بتطلع لك اوامر بعد كثيره منها لو تنقز او تغير السلاح بالأزرار او عندك لوكال شات او تركض بسرعه , كلها بتجيب لك اوامر يعني فيها تكرار ونفس الشي بيمتلي عندك زي ما قالك تابل
