Jump to content

فاّرس

Members
  • Posts

    4,805
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by فاّرس

  1. السياره بلا جدول كـ قط بلا سمكه
  2. على كيفك تقول مو شغال , اكيد لا عشان كذا ما ضبط -__-" Ballas او Grove اول شيء حطيت نفسك في تيم ? Grove,Ballas ثاني شيء قتلت لاعب وانت في واحد من التيمين ثالث شيء اشك انك مسوي التيمين خير شر وبعدين يالبرنس تراك معروف
  3. -- Client Side # local l1 = guiCreateLabel( 0, 246, 124, 75, "",true) local l2 = guiCreateLabel( 0, 246, 80, 75, "",true) addEventHandler('onClientRender',root,function() if guiGetVisible(l1) and guiGetVisible(l2) then local Grove = getElementData(resourceRoot,'GroveKills') or 0 local Ballas = getElementData(resourceRoot,'BallasKills') or 0 guiSetText(l1,'Grove kills : '..Grove..' / 100') guiSetText(l2,'Ballas kills : '..Ballas..' / 100') end end ) -- Server Side # local gKills = {} local bKills = {} addEventHandler('onPlayerWasted',root,function(_,killer) if killer and killer ~= source and getElementType(killer) == 'player' then if getPlayerTeam(killer) and getTeamName(getPlayerTeam(killer)) == 'Grove' then if not gKills[killer] then gKills[killer] = 0 end gKills[killer] = gKills[killer] + 1 setElementData(resourceRoot,'GroveKills',gKills[killer]) elseif getPlayerTeam(killer) and getTeamName(getPlayerTeam(killer)) == 'Ballas' then if not bKills[killer] then bKills[killer] = 0 end bKills[killer] = bKills[killer] + 1 setElementData(resourceRoot,'BallasKills',bKills[killer]) end end end )
  4. ^ * true = يقدر يرمي * false = ما يقدر يرمي
  5. -- Server Side # local weaponsDisable = {[1]=true,[2]=true,[3]=true,[4]=true,[5]=true,[6]=true,[7]=true,[8]=true,[9]=true,[10]=true,[11]=true,[12]=true,[14]=true,[15]=true,[42]=true,[43]=true,[44]=true,[45]=true} local weaponsAllow = {[16]=true,[17]=true,[18]=true,[22]=true,[23]=true,[24]=true,[25]=true,[26]=true,[27]=true,[28]=true,[29]=true,[30]=true,[31]=true,[32]=true,[33]=true,[34]=true,[35]=true,[36]=true,[37]=true,[38]=true,[39]=true,[40]=true,[41]=true,[42]=true} local marker = createMarker(...) addEventHandler('onMarkerHit', marker,function ( plr ) if getElementType ( plr ) == "player" then if weaponsDisable[#getPedWeapons(plr)] or not weaponsDisable[#getPedWeapons(plr)] and weaponsAllow[#getPedWeapons(plr)] then outputChatBox('لديك اسلحة',plr,0,0,255) setElementPosition(plr,x,y,z) else if #getPedWeapons(plr) == 0 or weaponsDisable[#getPedWeapons(plr)] and not weaponsAllow[getPedWeapon(plr)] then outputChatBox('ليس لديك اسلحة',plr,255,0,0) end end end end )
  6. Do you want to open the admin panel? press key 'P' or in the chat /admin.
  7. انت تقول , وانا رديت , وهذا كودي ,
  8. ليه تشوفني حطيت ماركر اصلا؟
  9. onClientGUIClick guiGetText -- Edit 1 guiSetText -- Edit 2
  10. انا ما اشوف انه قال يبي اي المنت يدخل تفتح النافذه , الي واضح من الكود يبي للاعب مو للسياره -__-"
  11. خليته لك اذا ضغطت الزر يسوي داتا للمود وينقلك للمكان الي تبيه واذا متت يرجعك في نفس المكان ذذ -- Client Side# addEventHandler('onClientGUIClick',Button,function() if not getElementData(resourceRoot,'Respawn') then setElementData(resourceRoot,'Respawn',true) end setElementPosition(localPlayer,x,y,z) end,false ) addEventHandler('onClientPlayerSpawn',localPlayer,function() if getElementData(resourceRoot,'Respawn') == true then setElementPosition(localPlayer,x,y,z) end end ) * Button = اسم الزر * resourceRoot = localPlayer داتا للمود نفسه يعني حتى لو طلع ودخل ومات يرجع نفس المكان , اذا ماتبيها كذا بدلها بـ
  12. فيه طريقه طويله شوي تحتاج جدولين ذذ,جرب, -- Server Side # local weaponsDisable = {[1]=true,[2]=true,[3]=true,[4]=true,[5]=true,[6]=true,[7]=true,[8]=true,[9]=true,[10]=true,[11]=true,[12]=true,[14]=true,[15]=true,[42]=true,[43]=true,[44]=true,[45]=true} local weaponsAllow = {[16]=true,[17]=true,[18]=true,[22]=true,[23]=true,[24]=true,[25]=true,[26]=true,[27]=true,[28]=true,[29]=true,[30]=true,[31]=true,[32]=true,[33]=true,[34]=true,[35]=true,[36]=true,[37]=true,[38]=true,[39]=true,[40]=true,[41]=true,[42]=true} local marker = createMarker(...) addEventHandler('onMarkerHit', marker,function ( plr ) if getElementType ( plr ) == "player" then if #getPedWeapons(plr) == 0 or weaponsDisable[#getPedWeapons(plr)] and not weaponsAllow[#getPedWeapons(plr)] then outputChatBox('ليس لديك اسلحة',plr,255,0,0) end if weaponsDisable[#getPedWeapons(plr)] or not weaponsDisable[#getPedWeapons(plr)] and weaponsAllow[#getPedWeapons(plr)] then outputChatBox('لديك اسلحة',plr,0,0,255) setElementPosition(plr,x,y,z) end end end ) function getPedWeapons(ped) local playerWeapons = {} if ped and isElement(ped) and getElementType(ped) == "ped" or getElementType(ped) == "player" then for i=2,9 do local wep = getPedWeapon(ped,i) if wep and wep ~= 0 then table.insert(playerWeapons,wep) end end else return false end return playerWeapons end
  13. جرب ذا , -- Server Side # local gCount = {} addEventHandler('onBan',root,function() if not gCount[source] then gCount[source] = 0 end gCount[source] = gCount[source] + 1 if gCount[source] == 3 then banPlayer(source,false,false,true,root,'The reason') end end ) addEventHandler('onPlayerQuit',root,function() if ( gCount[source] ) then gCount[source] = nil end end ) ضيف المود لقروب الادمن *
  14. القصه مو قصه اننا ما نعرف , بس في رد يكفي عن كل الردود الثانيه وهو : يعني لو تسوي مثل ما قالك بيضبط وضعك ذذ سوي جدول للاسلحه المسموحه والاسلحه الممنوعه وسوي تحققات بسيطه واذا ما عرفت اطرح المحاوله ,,
  15. شكله يحب كرتون ترانسفورمرز برايم
  16. جرب سوي جدول وكل مايبند احد زيد له العدد وتحقق اذا وصل 3 يعطيه باند ,, onBan table -- او بالداتا < setElementData - getElementData banPlayer
  17. onPlayerChat onMarkerHit setTimer -- وقت عشان يطلع الكتابه outputChatBox -- نص في الشات table -- تسوي جدول عشان الي يكتب بالشات يكون بالجدول تجنبا للمشاكل setElementData -- تسوي داتا للاعب عشان تعرف انه مشترك او لا , وعشان تسوي داتا اذا اللعبه بدأت ولا لا getElementData -- تتحقق يوم يكتب بالشات هل هو مشترك او لا , وعشان تتحقق هل اللعبه بدأت و لا لا setElementPosition -- ينقل اللاعب , وعشان تنقل الكل createMarker -- تسوي ماركر getElementType -- تتحقق من الي لمس الماركر انه لاعب givePlayerMoney -- يعطيه فلوس getElementsByType -- عشان تنقل كل اللاعبين
  18. الكول شيب او الماركر تقدر تستخدمهم مع منطقه معينه تؤدي وظيفه معينه, يعني مثلا لو دخلت الكول شيب يعطيك سياره لو طلعت منه يسحبها , ونفس الشيء مع الماركر https://wiki.multitheftauto.com/wiki/colshape ^ ادخل واقرأ وانزل آخر شيء وشوف وظائفه , وادخل عليها وبتشوف امثله اذا ما فهمتها جربتها وبتفهم إن شاء الله بالنسبه للكول شيب هو له اشكال مثل الدائره , والماركر له اشكال بعد مثل الدائره, الماركر تقدر تخليه مخفي وتقدر تخليه مرئي بعكس الكول شيب يكون دائما مخفي,
  19. ^ ليه الماركر سيرفر بما انه يجي كلينت اصلا -__-" + تحتاج تتحقق من اللاعب max-mohammed @ تأكد انك بدلت الاحداثيات الجديده local Object = createObject ( 2951, 2462.8999023438, -1656.6999511719, 12.300000190735, 0, 0, 88.75) function moveop() moveObject (Object, 1000, 2462.8999023438, -1662.0999755859, 12.300000190735) setTimer(moveObject,2000,1,Object,1000,x,y,z) end addEvent("mvmarker", true ) addEventHandler("mvmarker", root, moveop) x,y,z = الاحداثيات الي تبي الاوبجكت يروح لها
  20. داخل الوظيفه تخليه, Object = createObject ( 2951, 2462.8999023438, -1656.6999511719, 12.300000190735, 0, 0, 88.75) function moveop() moveObject (Object, 1000, 2462.8999023438, -1662.0999755859, 12.300000190735) setTimer(moveObject,2000,1,Object,1000,2500.8999023438,-1662.0999755859,12.300000190735) end addEvent("mvmarker", true ) addEventHandler("mvmarker", root, moveop)
  21. انت وش تقصد الي تصير سوده بشويش وبعدين ترجع ؟ صوره ولا تقصد الزر؟
  22. function(player) player = ماله داعي + اصلا مافي برامتر + كيف مسوي تيمين بنفس الاسم -__-"
  23. شف بالنسبه للدوران فيه طريقه سهله تقدر تسويها بإستخدام onClientRender dxDrawImage getTickCount math.sin بانسبه يوم تضغط زر , onClientGUIClick setTimer guiGetAlpha guiSetAlpha
  24. سوي تايمر يرجع الاوبجكت, setTimer moveObject
×
×
  • Create New...