Jump to content

iMr.SFA7

Members
  • Posts

    2,013
  • Joined

  • Last visited

Everything posted by iMr.SFA7

  1. أساسا من البداية وكود صاحب الموضوع صحيح تحول الأرقام الى سترنق تلقائيا outputChatBox وبالنسبة للي حاطين توسترينق الوظيفة
  2. ماله داعي تحطه سويت ترايقر من كلنت للسيرفر وما سويت شيء ماله داعي الترايقر 'Game' ايه متأكد .. بس عندك ترايقر اسمه
  3. بجانب الكلنت فـ السرعة بتصير للاعب بس اما بجانب السيرفر بتصير للكل setGameSpeed دامك حاط الوظيفة
  4. . "Game" أنا ما أشوف أي خطأ بكودك بس أحذف الترايقر الي اسمه
  5. addEvent("onWeaponShopAction", true) addEventHandler("onWeaponShopAction", root, function(value) if value[1] == 16 or value[1] == 17 or value[1] == "Launcher" then if tonumber(value[1]) then if (getPedTotalAmmo(client, getSlotFromWeapon(value[1])) or 0) >= 5 then return end elseif value[1] == "Launcher" then if (getElementData(client, value[1]) or 0) >= 5 then return end end end if ( getPlayerMoney(client) >= tonumber(value[3]) ) then setPlayerMoney(client, getPlayerMoney (client) - value[3]) if tonumber(value[1]) then giveWeapon(client, value[1], value[2], true) setPedStat(client, 73, 1000) setPedStat(client, 75, 1000) exports["guimessages"]:outputServer(client, "You bought Weapons for $"..value[3]..".", 0, 255, 0) else if value[1] == "Launcher" then setElementData(client, value[1], (getElementData(client, value[1]) or 0) + value[2]) elseif value[1] == "Armor" then if getPedArmor(client) < 100 then setPedArmor(client, value[2]) exports["guimessages"]:outputServer(client, "You bought Weapons for $"..value[3]..".", 0, 255, 0) else exports["guimessages"]:outputServer(client, "Your armor is full", 255, 0, 0) end end end else exports["guimessages"]:outputServer(client, "You don't have enough money to buy weapons!", 255, 0, 0) end end)
  6. سكربت جميل يالعقرب بالتوفيق في سكربتات ثانية = ))
  7. بالتـوفيق يالعـقرب تـم وضع السيرفر بالمفضلة وبـانتظار الافتتاح
  8. . ناقصكـ قوس بالسطر 19
  9. أكوادكـ ماهيب صحيحة !! createVehicle هو يقصد يسحب سيارة اللاعب مهيب سيارة مسويها بالوظيفة والمفروض بوظيفة فتح اللوحة تحط له الماوس ع العموم أكوادكـ تصير كذا -- Client Side ; addEventHandler("onClientGUIClick",root,function( ) if source == button then if not isPedInVehicle(localPlayer) then return end destroyElement ( getPedOccupiedVehicle(localPlayer) ) end end ) bindKey("m","down",function( ) if guiGetVisible (window) == true then guiSetVisible(window,false) showCursor(false) else guiSetVisible(window,true) showCursor(true) end end )
  10. سكربت جميل بالتوفيق وعساهـ نشوفك من كبار المبرمجين هنا !!
  11. أطرح أكوادككـ !!
  12. أنا عطيتك مثال حآول في طلبكك اذا ما عرفت أطرح أكوادككـ !! لاكن حاول على الأقل = )
  13. -- Example / مثال ; -- Server Side ; addCommandHandler("setAllClipboard", function(player,cmd,...) local Text = table.concat({...}," ") triggerClientEvent(root,"setAllClipboard",root,Text) end ) -- Client Side ; addEvent("setAllClipboard", true) addEventHandler("setAllClipboard", root,function(Text) setClipboard(Text) end )
  14. iMr.SFA7

    خطأء

    function convertNumber ( number ) local formatted = number while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if ( k==0 ) then break end end return formatted end exports.scoreboard:addScoreboardColumn('Money',3) function updatePlayersMoney ( ) for index, player in ipairs ( getElementsByType "player" ) do setElementData ( player, "Money", "$"..convertNumber ( getPlayerMoney( player ) )) end end setTimer ( updatePlayersMoney, 500, 0 )
  15. أنت ليه مسوي الترايقر لجميع الالمنتات؟ عدل أكواد الضغط على الزر بهذا addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then triggerServerEvent("onLogin",localPlayer,localPlayer,guiGetText(GUIEditor.edit[1]),guiGetText(GUIEditor.edit[2]) ) elseif source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) showChat(true) fadeCamera(true,5) elseif source == GUIEditor.button[2] then triggerServerEvent("onReg",localPlayer,localPlayer,guiGetText(GUIEditor.edit[1]),guiGetText(GUIEditor.edit[2]) ) end end ) addAccount ; للمعلومية وظيفة اضافة حساب تحتاج صلاحيات فـ هذا يعني أنك تضيف السكربت لقروب الأدمن أو الكونسل
  16. --[[------------------------------------------------- Notes: > This code is using a relative image filepath. This will only work as long as the location it is from always exists, and the resource it is part of is running. To ensure it does not break, it is highly encouraged to move images into your local resource and reference them there. --]]------------------------------------------------- GUIEditor = { staticimage = {}, edit = {}, button = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(60, 103, 705, 421, ":: Login Systeam ::", false) guiWindowSetSizable(GUIEditor.window[1], false) showCursor(true) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 22, 675, 189, ":Shop/images/adham.png", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(184, 217, 328, 15, "Welcome @ To Server, Please Login to Enter the game", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(170, 246, 93, 24, "Username:", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(232, 242, 239, 28, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(232, 280, 239, 28, "", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(170, 280, 93, 24, "Password:", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(127, 314, 173, 47, "Login", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(372, 318, 173, 47, "Register", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "sa-header") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.label[4] = guiCreateLabel(522, 396, 355, 15, "#Created By #[L]e3bA | v3.4.1", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 255, 0, 0) end ) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then triggerServerEvent("onLogin",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor.edit[1]),guiGetText(GUIEditor.edit[2]) ) elseif source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) showChat(true) fadeCamera(true,5) elseif source == GUIEditor.button[2] then triggerServerEvent("onReg",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor.edit[1]),guiGetText(GUIEditor.edit[2]) ) end end ) addEvent("Hidewindow",true) addEventHandler("Hidewindow",root, function () guiSetVisible(GUIEditor.window[1],false) showCursor(false) showChat(true) fadeCamera(true,5) end )
  17. وأنت متى تبيها تجي؟ = )
  18. سطر 53 سيرفر مع كلنت؟ ( =
  19. function Plus( Message ) local theAcc = getPlayerAccount ( source ) if Message == "Plus" then local Data = getAccountData ( TheAcc, "Level" ) if Data == "1" or Data == "2" or Data == "3" or Data == "4" or Data == "5" or Data == "6" or Data == "7" or Data == "8" or Data == "9" or Data == "10" then triggerClientEvent ( source,"Plus", source ) end end end addEventHandler ( "onPlayerChat", root, Plus )
  20. شرح جميل بالتوفيق ذذ
  21. "iMr#Nice" version="1.3" type="script" name="Groups System" /> تمت التجربة#
  22. "iMr#Nice" version="1.3" type="script" name="Groups System" />
  23. resetHealthArmy setHealthAndArmor AddPlayer الوظائف هذي ما أشوف لها أي تعريف بالكود حقك والوظيفة الثالثة ما فهمت مقصدها؟ -- # Server Side ; local Group1 = get("GroupName1") local Group2 = get("GroupName2") addCommandHandler ("cjoin", function (plr) if ( getElementData(plr, "Join") == false ) then if getElementData( plr, "Group" ) and getElementData( plr, "Group" ) == Group1 and getPlayerTeam( plr ) and getTeamName( getPlayerTeam( plr ) ) == "Mafia" then if getElementData(plr, "Stats") >= 2 then return end if getElementDimension(plr) >= 1 then return end setElementDimension(plr, 0) setElementPosition(plr, 2214.5,-3136.3999023438,36.5) setElementHealth (plr,200) setPedArmor (plr,100) setElementData(plr,"Join",true) end end end ) addCommandHandler ("cjoin1", function (plr) if ( getElementData(plr, "Join") == false ) then if getElementData( plr, "Group" ) == Group2 and getPlayerTeam( plr ) and getTeamName( getPlayerTeam( plr ) ) == "Rifa" then if getElementData(plr, "Stats") >= 2 then return end if getElementDimension(plr) >= 1 then return end setElementDimension(plr, 0) setElementPosition(plr, 1892.3000488281,-2989.1999511719,36.5) setElementHealth (plr,200) setPedArmor (plr,100) setElementData(plr,"Join",true) end end end )
  24. ماتقدر تفك تشفيرها !! بعد ذا أنا ما أحس أنا متأكد أن نيتك ماهي طيبة ممكن سؤال؟ ليه تبي باسورد واحد عنده ادمنية؟
×
×
  • Create New...