Jump to content

#|_oskar_|#

Members
  • Posts

    897
  • Joined

  • Last visited

Everything posted by #|_oskar_|#

  1. شغل الديبق وشوف الاخطاء اللى تطلع وصورها
  2. guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,Name .. " : " .. Text , false, false) جرب كذا
  3. وضح مشكلتك اكثر لاني مافهمتك كويس
  4. triggerServerEvent -- #Client عشان ترسل الترايقر للكلنت استخدم triggerClientEvent -- #Server
  5. --#Client function triggerServerEvent_() triggerServerEvent("VehicleColor", localPlayer,r,g,b) r,g,b = math.random(0,255), math.random(0,255), math.random(0,255) end -- addEventHandler("onClientGUIClick", root,function() if guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == true then if not isPedInVehicle(localPlayer) then return outputChatBox("[RentSystem]: يجب ان تكون في السيارة اولا",255, 0, 0, true) end Timer = setTimer (triggerServerEvent_,500,0) outputChatBox('[RentSystem]: لقد تم تشغيل الأوان العشوائية بنجاح ', 0,255,0,true ) elseif guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == false then if isTimer (Timer) then killTimer (Timer) end end end) --#Server addEvent("VehicleColor", true) addEventHandler("VehicleColor", root,function(r,g,b) local vehicle = getPedOccupiedVehicle(source) setVehicleColor(vehicle, r,g,b) end)
  6. يعني انت كل يوم قاعد تطلب واكثر طلباتك ع القريد والى الان مافهمت
  7. اطلب بالقسم العربي احسن هنا مفيش حد هيفهمك https://forum.multitheftauto.com/viewforum.php?f ... 78b9606aec
  8. كلنت local anzar = createMarker (-711,957,12.382266998291, "cylinder", 1.5, 200,100,100,150) createBlipAttachedTo(anzar,56) --- bindKey ("tab","down",function () if isElementWithinMarker(localPlayer, anzar ) then playSound("anzar.mp3") end end) ميتا اسم الصوت anzar المشكله انك ماكنت ضايف الصوت بملف الميتا
  9. اتاكد بملف الميتا انه كلنت وليس سيرفر
  10. شوف مو شغال ما ظبط شوف يقول لي في الدي بق ERROR: Loading script failed: markersound/client.lua:13: ')' expected (to close '(' at line 5) near '' الكود كله 8 سطور من وين جاء سطر 13 ؟
  11. لاتغير في شئ local anzar = createMarker (-711,957,12.382266998291, "cylinder", 1.5, 200,100,100,150) createBlipAttachedTo(anzar,56) --- bindKey ("tab","down",function () if isElementWithinMarker(localPlayer, anzar ) then playSound("anzaar.mp3") end end)
  12. bindKey ("tab","down",function () if isElementWithinMarker(localPlayer, anzar ) then playSound("anzaar.mp3") end end)
  13. وش تبي تسوي بالضبط ؟
  14. GroupsAdmin = { [1] = {Group='Admin'}, [2] = {Group='Console'}, [3] = {Group='Level 5'}, [4] = {Group='Level 6'}, [5] = {Group='Head.Admin'} } addEvent('check',true) addEventHandler('check',root, function ( ) for _, v in ipairs(GroupsAdmin) do if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(source)), aclGetGroup(v.Group)) then outputChatBox( "Yor Group" .. v.Group,source, 255, 255, 0) triggerClientEvent(source,"checkD",source) return false end end end)
  15. xmlCreateFile xmlLoadFile xmlNodeSetValue xmlCreateChild xmlSaveFile xmlNodeGetValue xmlFindChild
  16. Serial = { ["serial"] = true, } bindKey ( "o", "down", function ( ) if Serial[getPlayerSerial(localPlayer)] then guiSetVisible (window,not guiGetVisible (window)) showCursor (guiGetVisible (window)) else outputChatBox(" Access denied ",255, 100, 70 ) end end)
  17. http://up.top4top.net/downloadf-1130wvb1-zip.html
  18. شغال تمام الخطاء من عندك انت
  19. شيل الكلمه اللى ب اول السطر وجرب
  20. --saveweapon addEventHandler('onPlayerQuit',root, function() local vAcc = getPlayerAccount(source) if not vAcc or isGuestAccount(vAcc) then return end setAccountData(vAcc,'Weapon',getPlayerWeapon(source)) end ) addEventHandler('onPlayerLogin',root, function(_,acc) local v_Data = getAccountData(acc,'Weapon') if ( v_Data ) then getPlayerWeapon(source,v_Data) end end) --savemoney function playerLogin (thePreviousAccount, theCurrentAccount, autoLogin) if not (isGuestAccount (getPlayerAccount(source))) then local accountData = getAccountData (theCurrentAccount, "money") if (accountData) then local playerMoney = getAccountData(theCurrentAccount, "money") setPlayerMoney(source, playerMoney) else setPlayerMoney(source, 500) end end end addEventHandler("onPlayerLogin", getRootElement(), playerLogin) function onQuit() if not (isGuestAccount (getPlayerAccount (source))) then account = getPlayerAccount (source) if (account) then setAccountData(account,"money", tostring(getPlayerMoney(source))) end end end addEventHandler("onPlayerQuit", getRootElement(), onQuit) -----saveArmour addEventHandler('onPlayerQuit',root, function() local vAcc = getPlayerAccount(source) if not vAcc or isGuestAccount(vAcc) then return end setAccountData(vAcc,'Armor',getPedArmor(source)) end ) addEventHandler('onPlayerLogin',root, function(_,acc) local v_Data = getAccountData(acc,'Armor') if ( v_Data ) then setPedArmor(source,vData) end end ) --------------------------------------------savehealth---------------------------------- addEventHandler('onPlayerQuit',root, function() local vAcc = getPlayerAccount(source) if not vAcc or isGuestAccount(vAcc) then return end setAccountData(vAcc,'HP',getElementHealth(source)) end ) addEventHandler('onPlayerLogin',root, function(_,acc) local v_Data = getAccountData(acc,'HP') if ( v_Data ) then setPedArmor(source,vData) end end ) -----حفظ المكان ---------------------------------------savepostitioncj------------------------------------- addEventHandler('onPlayerQuit',root, function() local vAcc = getPlayerAccount(source) if not vAcc or isGuestAccount(vAcc) then return end local x,y,z = getElementPosition(source) setAccountData(vAcc,'Position_x',x) setAccountData(vAcc,'Position_y',y) setAccountData(vAcc,'Position_z',z) end ) addEventHandler('onPlayerLogin',root, function(_,acc) local x_Data = getAccountData(acc,'Position_x') local y_Data = getAccountData(acc,'Position_y') local z_Data = getAccountData(acc,'Position_z') setElementPosition(source,x_Data,y_Data,z_Data) end )
  21. بدله بسطر 10 setAccountData(vAcc,'Weapon',getPlayerWeapon(source))
  22. شيل الاند بسطر 13 لانه زياده
  23. https://wiki.multitheftauto.com/wiki/Dx ... tOnElement
×
×
  • Create New...