-
Posts
329 -
Joined
-
Last visited
Everything posted by ` Allawi
-
ركزوا شوي يا شباب لانكم جايبين العيد في حدث onElementClicked
-
بالنسبة لطلب الثالث شلون تبيه يروح افك ؟
-
اطرح الجدول عشان نشوف الطريقة المناسبه لك
-
addEventHandler("onClientGUIClick",guiRoot, function() if source == gridlist then row = guiGridListGetSelectedItem(gridlist) if row ~= -1 then skin = guiGridListGetItemText(gridList,row,column) -- استبدل column بالصف اللي تبيه ped = createPed(tonumber(skin),x,y,z) -- استبدل x,y,z بالاحداثيات اللي تبيها end elseif source == button then -- استبدل button بالزر اللي تبيه -- كودك end end )
-
حياك الله .. !
-
addEvent ( "aPlayer", true ) addEventHandler ( "aPlayer", root, function ( player, action, message ) if ( action == "shout" ) then for _,thePlayer in ipairs ( getElementsByType ( "player" ) ) do if ( isGuestAccount ( getPlayerAccount ( thePlayer ) ) == false ) then if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Console" ) ) ) then outputChatBox ( " ( " .. getPlayerName ( source ) .. " ) " .. getPlayerName ( player ) .. " : " .. message, thePlayer, 255, 100, 30 ) end end end end end ) ملاحضة: player: اللاعب المرسل اليه source: اللاعب الذي قام بالإرسال
-
isObjectInACLGroup شف المثال الثاني مشابه لطلبك وتقدر تعدل عليه
-
createRadarArea createObject setElementAlpha
-
الكود غلط يالطيب شلون فهمت التايمر
-
addCommandHandler isTimer getTimerDetails setGameType setTimer setServerPassword طبعا كذا راح تحدث الوقت عند كتابة الامر ^ اما اذا تبيه يتحدث تلقائي استخدم الوظائف التالية setTimer isTimer executeCommandHandler وفي اكثر من طريقة لإستخدام الوظائف ولاكن انا عطيتك اللي اشوفه اسهل لك
-
مثال بسيط على السريع Client: addEvent("example",true) addEvent("examples",true) addEventHandler("onClientResourceStart",resourceRoot, function() example = guiCreateButton(250,250,100,50,"example",false) if example then triggerServerEvent("example",localPlayer) end end ) addEventHandler("onClientGUIClick",guiRoot, function() if source == example then guiSetEnabled(example,false) if guiGetEnabled(example) == false then triggerServerEvent("examples",localPlayer) end end end ) function examples() if eventName == "example" then guiSetEnabled(example,false) elseif eventName == "examples" then guiSetEnabled(example,true) end end addEventHandler("example",root,examples) addEventHandler("examples",root,examples) Server: timer = {} addEvent("example",true) addEventHandler("example",root, function() local serial = getPlayerSerial(source) if timer[serial] then triggerClientEvent(source,"example",source) end end ) addEvent("examples",true) addEventHandler("examples",root, function() local serial = getPlayerSerial(source) timer[serial] = setTimer( function() for index,player in ipairs(getElementsByType("player")) do if getPlayerSerial(player) == serial then triggerClientEvent(player,"examples",player) timer[serial] = nil end end end, 30000, 1 ) end ) تقدر تعدل عليه براحتك واذا تشوف الكود طويل وماتقدر تستخدمه في كل مود تبيه تقدر تسويه وظيفة وتوصل بينها واستخدامها اسهل بالتوفيق
-
اطرح الكود حقك اللي مسويه بالطريقة هذي setTimer guiSetEnabled وانا راح اعدل لك عليه
-
اكيد ماراح تلقاها لانها خاصه لازم تبدع وتسوي لك مهمات بنفسك
-
ابحث عن مودات الـ hud وتعلم منها
-
معقولة ماقدرت تسوي شي من هذي الطلبات
-
لو تبي توزيع مره ثانية لازم اول شي تمسح الداتا بعدين توزع مره ثانية وعشان تمسح الداتا استخدم الوظائف التالية getAccounts -- تجيب جميع الحسابات getAccountData -- تحدد الحسابات اللي فيه داتا setAccountData -- تمسح الداتا من الحسابات
-
هو يقصد كذا وماقال شي غلط setElementDimension(team theTeam,getElementDimension(localPlayer)) setElementInterior(team theTeam,getElementInterior(localPlayer))
-
الجداول راح تكون صعبة عليه بالنسبة لتيمات هي افضله واسهله ولاكن لازم تقول لنا نوع المهمه اللي تبي تسويها لان كل مهمة تختلف عن الاخرى عشان نقدر نساعدك
-
https://forum.multitheftauto.com/viewtopic.php?f=119&t=94462