
jafar
Members-
Posts
1,434 -
Joined
-
Last visited
Everything posted by jafar
-
لا لا مشيت على كود تابل وما ركزت على الي فوق واحمد جاب العيد معاي
-
الامر بسيط ^^ كل الي عليك تسوي استخراج للوظيفة اسم الوظيفة outputMessage واستخدامها مطابق ل outputChatBox
-
انا قلت مثال ^^ تره اهو الكود المطلوب + يضيف حدث onResourceStart ويسوي لوب للاعبين
-
مثال : addEventHandler( 'onPlayerJoin', root, function ( ) setElementDimension ( source, 10 ) end )
-
addEventHandler ( 'onResourceStart', resourceRoot, function ( res ) if not isObjectInACLGroup ( 'resource.' .. getResourceName ( res ), aclGetGroup ( 'Admin' ) ) then cancelEvent ( ) outputChatBox("mode - not started add it to group Admin",root,0,255,0,true) end end )
-
والله انك شنب ابن شنب ابن شنب ههههههه يعطيك العاافيه صح المشكله من حجم الماركر >< الله يعافيك
-
اممم الكود مابه أي خطأ اتوقع من حجم الماركر بعض الأحيان اذا صار صغير ماينفع معاه الحدث
-
جرب تحذف ذا السطر if not guiGetVisible ( GUIEditor.window[1] ) then والاند تبعها
-
الأرقمنت الثآني weaponSkill: Either: "pro", "std" or "poor". The player must have this skill level set to have the effect.
-
-- Server veh = createMarker ( 890.19921875,-1053.5,30.60000038147, "cylinder", 1, 0, 0, 255, 170 ) addEventHandler("onMarkerHit", veh, function (player) if (getElementType (player) == "player") then local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user."..accName, aclGetGroup("admin")) then triggerClientEvent(player,"hit", player) end end end,false) -- Client addEvent("hit",true) addEventHandler("hit",root, function() if not guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible(GUIEditor.window[1], true) showCursor(true) end end)
-
لازم الجدول السبب : عشان يصير لكل لاعب ماركر بدون جدول كل اللاعبين ماركر واحد
-
أخوات ؟ ما أظن فيه أخوات أهنا ^^
-
@ بشر آهو يقصد يطلع الكلام ف السكوربورد اذا كمل تحميله او لا ^^
-
لم يتم التجربة -- Server exports.scoreboard:addScoreboardColumn('Download') function onJoin() setElementData ( source, "Download", "Waiting" ) end addEventHandler("onPlayerJoin",root,onJoin) function onDownloadFinish() setElementData ( client, "Download", "DownloadFinish" ) end addEvent("onDownloadFinish",true) addEventHandler("onDownloadFinish",root,onDownloadFinish) -- Client addEventHandler("onClientResourceStart",resourceRoot, function() triggerServerEvent("onDownloadFinish",localPlayer) end )
-
guiGridListSetItemColor + ممنوع المشاركات المزدوجة
-
اللون الأحمر على الوظيفة = كلنت اللون البرتقالي على الوظيفة = سيرفر اللون الأزرق على الوظيفة = كلنت & سيرفر
-
client - server نفس الشيء بس الاختلاف مابينهم انه الوظايف في بعض الاحيان تجي كلنت فقط وفي بعض الاحيان تجي سيرفر فقط وفي بعض الاحيان تصلح للكلنت والسيرفر
-
متأكد انت مسونه ! هههههه انت حتى اسم الترايقر ما بدلته
-
تقدر تسويه بـ GUIEditor guiGridListAddColumn مثال من الويكي : function clientsideResourceStart () local playerList = guiCreateGridList ( 0.80, 0.10, 0.15, 0.60, true ) -- Create the grid list local column = guiGridListAddColumn( playerList, "Player", 0.85 ) -- Create a 'players' column in the list if ( column ) then -- If the column was successfully created for id, playeritem in ipairs(getElementsByType("player")) do --Loop through all the players, adding them to the table local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), false, false ) end end end addEventHandler ( "onClientResourceStart", getRootElement(), clientsideResourceStart )
-
function list() guiGridListClear(grid) for id, players in ipairs (getElementsByType("player")) do local column = guiGridListAddColumn( grid, "Player Name", 0.89 ) local row = guiGridListAddRow(grid) guiGridListSetItemText(grid, row, 1, getPlayerName(players), false, false) guiGridListSetItemColor ( grid, row, 1, 0, 250, 154, 255 ) end end addEventHandler("onClientResourceStart", resourceRoot, list) addEventHandler("onClientPlayerJoin", getRootElement(), list) addEventHandler("onClientPlayerQuit", getRootElement(), list) addEventHandler("onClientPlayerChangeNick", getRootElement(), list) addEventHandler ( "onClientGUIClick", root, function () if source == GUIEditor.button[1] then -- اسم الزر , اذا مب نفسه استبدله بالموجود local name = guiGridListGetItemText(grid, guiGridListGetSelectedItem(grid), 1) local amount = guiGetText (edit) -- استبدله بالايدت الموجود عندك triggerServerEvent( "GiveMoney", getLocalPlayer ( ), name, amount ) end end) عليك تكمل ملف السيرفر