Jump to content

EL-JoKeR

Members
  • Posts

    162
  • Joined

  • Last visited

Posts posted by EL-JoKeR

  1. اذا بتشغل السيرفر ضيف ف الكود -d

    بصير

    ./mtaserver -d 
    

    جعفر تكفي تكفي تكفي ابوس اديك

    كيف سويت سيرفرك البورت حقه 22003 هيك ؟

    وخليته مثل المبرمجين والمشهورين

    ابوس اديك علمني

    انا سويت ./mta-server -d

    اشتغل بعد ماشتغل قفلت برنامج putty

    سيرفر قفل

    ابي حل !

  2. guiSetText("الكلام الي تبيه ينحط بالليبل", wrongPassLabel) 
    

    اسم الليبل يجي قبل الكلام

    guiSetText(wrongPassLabel, "الكلام الي تبيه ينحط بالليبل") 
    

    JV8ZDQs.png

    وانا مثل الاهبل اروح على الالمنت حق الجيو نفسه ادور بالفنكشنات عن شي يغير النص

    شكرا تابل

    :lol::lol:

  3. عدل الاعدادات في لوحة الادمنيه

    ادخل على ال resource

    حددد على مود الادمن

    اضغط

    settings

    اختار ال

    mute

    وضيف او نقص الوقت الي تبي تضيفه

    +

    أسمها بالظبط

    Mute durations

    وهذا الوقت

    60,120,300,600,0

    60 \ دقيقة

    120 / دقيقتان

    وتقدر تضيف هكذا مثال

    60,120,300,600,0,500 
    

    تحط ,

    وجنبها الرقم

  4. السلام عليكم ورحمة الله وبركاتة

    بسم الله الرحمن الرحيم

    :) قبل ان اقول اي شيء

    'Micro' احب ان اشكر 'الله' ثم الاخ

    علي مساعدتي ونصائحة و علي استرجاع النقود

    انا شتريت VPS Games

    بس اوجه مشكلة

    مقدر احط لوحة اوبن قيم بانل

    اللي عنده لوحة مجانية وعنده الاكواد اتمني يطرحه

    في سبيل الله

    ---

    الموضوع التاني

    كيف اعمل سيرفر MTA

    مثل سيرفرات المشهور

    [Gta-Pro]

    [Gta-Ar]

    CIT

    ...

    يعني البورت يكون 22003

    ومايكون في لوحة تحكم يعني بمعني صحيح

    سيرفر واحد من خلال putty

    أتمني اللي عنده اي شرح او طريقة يطرحه في سبيل الله

  5. setTeamFriendlyFire(createTeam("Grove",   0, 500, 0   ), false) 
    setTeamFriendlyFire(createTeam("Vagos",   255, 200, 0 ), false) 
    setTeamFriendlyFire(createTeam("Ballas",   128, 0, 128), false) 
    setTeamFriendlyFire(createTeam("Mafia",   154,205,50  ), false) 
    setTeamFriendlyFire(createTeam("Russians",   160,82,45), false) 
    setTeamFriendlyFire(createTeam("Triads",   104,104,104), false) 
    setTeamFriendlyFire(createTeam("Rifa",    250,128,114 ), false) 
    setTeamFriendlyFire(createTeam("Street",    250,128,0 ), false) 
    setTeamFriendlyFire(createTeam("Aztecas", 24, 198, 238), false) 
    setTeamFriendlyFire(createTeam("Medic",  24, 255, 255 ), false) 
    setTeamFriendlyFire(createTeam("Police",    0, 0, 255 ), false) 
    createTeam("No Team", 255, 255, 255) 
      
      
      
    addEvent("spawnMe", true) 
    addEventHandler("spawnMe", root, 
    function(skinID, sX, sY, sZ, sR, team) 
        local team = getTeamFromName(team) 
        spawnPlayer(source, sX, sY, sZ, sR, skinID, 0, 0, team) 
        setCameraTarget(source) 
        showChat(source, true) 
    end) 
      
    addEventHandler("onPlayerSpawn", root, 
    function(_, _, _, _, team) 
        local team = team and getTeamName(team) or "N/A" 
        if team == "Police" then 
            giveWeapon(source, 3, 1) 
            takeWeapon(source, 41) 
        elseif team == "Medic" then 
            giveWeapon(source, 41, 9999) 
            takeWeapon(source, 3) 
        else 
            takeWeapon(source, 3) 
            takeWeapon(source, 41) 
        end 
        local account = getPlayerAccount(source) 
        if account and not isGuestAccount(account) then 
            local wData = getAccountData(account, "newPlayerData")  
            if not wData then 
                givePlayerMoney(source, 2500) 
                giveWeapon(source, 23, 20) 
                giveWeapon(source, 31, 50) 
                setAccountData(account, "newPlayerData", true)  
            end 
        end 
    end) 
      
      
    addEvent("Login-Register", true) 
    addEventHandler("Login-Register", root, 
    function(action, userName, passWord) 
        if (action == "Login") then 
            local account = getAccount(userName, passWord) 
            if account then 
                logIn(source, account, passWord) 
                triggerClientEvent(source, "onLoginSuccess", source) 
            else 
                exports.TopBarChat:sendClientMessage ("Wrong username or password!", source, 255, 255, 0) 
            end 
        elseif (action == "Register") then 
            local serial = getPlayerSerial(source) 
            local TotalAcc = TotalAccounts(serial) or 0 
            if TotalAcc < 3 then 
                if not getAccount(userName) then 
                    local accountAdded = addAccount(userName, passWord) 
                    if accountAdded then 
                        exports.TopBarChat:sendClientMessage("You have successfully registered!, you can now login with your username and password.", source, 0, 255, 50) 
                        setAccountData(accountAdded, "reg-Serial", serial) 
                    else 
                        exports.TopBarChat:sendClientMessage("Error creating account, please contact the admin.", source, 255, 0, 50) 
                    end 
                else 
                    exports.TopBarChat:sendClientMessage("Account with this name already exists!", source, 255, 0, 0) 
                end 
            else 
                exports.TopBarChat:sendClientMessage("You can register up to 3 accounts only!", source, 255, 0, 0) 
            end 
        end 
    end) 
      
    function TotalAccounts(serial) 
        aCount = 0 
        for i, account in ipairs(getAccounts()) do 
            local accSerial = getAccountData(account, "reg-Serial") 
            if accSerial and accSerial == serial then 
                aCount = aCount + 1 
            end 
        end 
        return aCount 
    end 
      
      
    -----------------------------------|Medic|----------------------------------- 
    addEvent("healP", true ) 
    addEventHandler("healP", root, 
    function(healer) 
        local Health = getElementHealth(source) 
        if (Health < 99) then 
            local hp = 2*Health 
            if getPlayerMoney(source) >= hp then 
                setElementHealth(source, Health+15) 
                givePlayerMoney(healer, hp) 
                takePlayerMoney(source, hp) 
                exports.TopBarChat:sendClientMessage("You earned $"..hp, healer, 0, 255, 0) 
            end 
        end 
    end) 
    -----------------------------------|Medic|----------------------------------- 
    

  6. السلام عليكم انا سويت لوحة كاملة علي الشاشة وظبط القياسات بتاعتها

    بـ كتابة علي اللوحة نفسها ازاي ؟ exports.TopBarChat:sendClientMessage انا دلوقتي عايز ابدل

×
×
  • Create New...