Jump to content

#\_oskar_/#

Members
  • Posts

    570
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by #\_oskar_/#

  1. user .. لاضافة حساب resource ... لاضافة مود
  2. @iyaad اقصد كذا HyperTimer = {} HyperTimer [source]
  3. سوي جدول للتايمر
  4. local s = getTickCount( ) function AnimationGui(x1,y1,z1,x2,y2,z2,speed,Easing) local x,y = interpolateBetween(x1,y1,z1,x2,y2,z2,(getTickCount()-s)/speed,Easing) guiSetPosition (Lo7h,x,y,false) end addEventHandler("onClientRender",root,function() AnimationGui(0,0,0,0,200,0,1000,"Linear") end)
  5. ابحث عن السطر دا وعدل عليه دا يخص حجم ومكان اللوحه wndMain = { 'wnd', text = 'FR GUI', x = 10, -- تحريك اللوحه شمل او يمين y = 150, -- تحريك اللوحه فوق او تحت width = 280, -- حجم اللوحه controls = {
  6. دا كود انشاء الزرر بالفري روم هو تعديله سهل بس يحتاج تفهمه شوي
  7. وتحدد عليها وبتحولك الارقام الي اعشار .. Relative << كل اللي عليك انك تضغط كايك يمين ع اللوحه وبعدين تروح عند كلمة وشوف اخطاء مودك وصلحها debugscript 3 << 8 اكتب ب اف
  8. https://wiki.multitheftauto.com/wiki/CreateRadarArea
  9. window = guiCreateWindow(0.23, 0.23, 0.25, 0.53, "ارسال الفلوس الي اللاعبين", true) guiWindowSetSizable(window, false) guiSetProperty(window, "CaptionColour", "FFD9AB49") gridlist = guiCreateGridList(0.04, 0.04, 0.92, 0.79, true, window) guiGridListAddColumn(gridlist, "#", 0.2) guiGridListAddColumn(gridlist, "إسم اللاعب", 0.9) guiGridListAddColumn(gridlist, "فلوس اللاعب", 0.5) Ammo = guiCreateEdit(0.04, 0.84, 0.31, 0.07,"0", true, window) guiSetProperty(Ammo, "NormalTextColour", "FF007F06") guiEditSetMaxLength(Ammo, 8) Send = guiCreateButton(0.36, 0.84, 0.34, 0.07, "إرسال", true, window) guiSetFont(Send, "default-bold-small") guiSetProperty(Send, "NormalTextColour", "FF7E4D00") Close = guiCreateButton(0.71, 0.84, 0.25, 0.07, "إاغلاق", true, window) guiSetFont(Close, "default-bold-small") guiSetProperty(Close, "NormalTextColour", "FF106C5A") Reason = guiCreateEdit(0.04, 0.92, 0.63, 0.06, "", true, window) guiEditSetMaxLength(Reason, 50) label = guiCreateLabel(0.68, 0.92, 0.28, 0.05, "سبب التوزيع :", true, window) guiSetFont(label, "default-bold-small") guiLabelSetColor(label, 255, 34, 34) guiLabelSetHorizontalAlign(label, "center", false) --///////////////////////////////////////////-- local ss = getRootElement() addEvent("GG", true) addEventHandler("GG", root,function (_,N,M) guiGridListClear( gridlist ) local row = guiGridListAddRow (gridlist ) guiGridListSetItemText ( gridlist , row,1,_ .. " - ", false, false ) guiGridListSetItemText ( gridlist , row,2,N, false, false ) guiGridListSetItemText ( gridlist , row,3,tonumber(M) or '0', false, false ) guiGridListSetItemData ( gridlist , row , 2 , N) guiGridListSetItemColor(gridlist,row,1,255,255,0) guiGridListSetItemColor(gridlist,row,2,255,0,0) guiGridListSetItemColor(gridlist,row,3,0,200,0) end ) CeratePlayers = function (N,M) triggerServerEvent ( "G", localPlayer) end addEventHandler ( "onClientPlayerJoin",ss,CeratePlayers) addEventHandler ( "onClientPlayerQuit",ss,CeratePlayers) addEventHandler ( "onClientPlayerChangeNick",ss,CeratePlayers) --///////////////////////////////////////////-- addEventHandler ( "onClientGUIClick", resourceRoot,function ( ) if source == Send then if guiGridListGetSelectedItem(gridlist) ~= -1 then local N = guiGridListGetItemText ( gridlist ,guiGridListGetSelectedItem ( gridlist ), 2 ) local A,R = guiGetText (Ammo),guiGetText (Reason ) if A > '' then triggerServerEvent ( "S", localPlayer,N,A,R) CeratePlayers () else outputChatBox ( "Please Add Ammount" , 255 , 0 , 0 , true ) end else outputChatBox ( "Please Choose Player ", 255, 0, 0, true ) end elseif source == Close then guiSetVisible(window , false) showCursor (false) end end) --///////////////////////////////////////////-- guiSetVisible(window , false) bindKey ( "F4", "down", function ( ) guiSetVisible (window , not guiGetVisible (window )) showCursor (guiGetVisible (window ) ) guiSetText(Ammo,"0" ) CeratePlayers () end) addEvent ( "S", true ) addEventHandler ( "S", root,function(P,A,R) local T = getPlayerFromName (P) if (T) then if tonumber(A) >= 100 then givePlayerMoney(T,tonumber(A)) outputChatBox("#FFFF00"..R .."#FF0000]#FFFFFF-#FF0000[#00FF00 "..A.." #FF0000] x تم توزيع مبلغ من ميزانية السيرفر" , ThePlayer ,r ,g,b, true ) else outputChatBox("يجب ان يكون المبلغ اكثر من 100" ,source ,255, 100, 100, true ) end else outputChatBox("هذا اللاعب غير موجود" ,source , 255, 100, 100 , true ) end end) addEvent("G", true) addEventHandler("G", root,function() for _, p in ipairs(getElementsByType("player")) do triggerClientEvent("GG",p,_,getPlayerName (p) ,getPlayerMoney (p)) end end)
  10. omg << استخدم المود دا لتحريك الاوبجكت
  11. كل جوله يسوي تحديث وبالتالي اي شئ بتسويه انت بيختفي جرب سوي رندر عليه بس اظن انه راح يسبب لاق
  12. التعديل لازم يكون من المود حقك
  13. -- #Client addEventHandler("onClientGUIClick", root,function() if source == GUIEditor.button[1] then triggerServerEvent ( "Redirect",localPlayer ) end end) -- #Srever addEvent( "Redirect", true ) addEventHandler( "Redirect", root,function () redirectPlayer(source, 'ip', Server Port ) end) ضيفه لقروب ادمن
  14. setPlayerHudComponentVisible -- money سيرفر او كلنت حسب كودك
  15. لا الفنكشن سيرفر فلازم تستخدم ترايقر triggerServerEvent
  16. ماتقدر تستخرجه من كوماند للانتقال الي سيرفر اخر استخدم redirectPlayer
  17. كودك غلط اذا تبي اللي يضغط علي زرين بالكيبورد ينصك كيك getKeyState << استخدم
  18. استخدم الداتا مع التاج حقك
×
×
  • Create New...