Jump to content

اقفال السيرفر


Recommended Posts

سوي قروب خاص فيك يسمح فيها command.setpassword والقروبات الثانية امنعها من الاسل

+ ركب مود قفل الاسل بكلمة سر لكنق عبادي واحذف مود الرن كود

Link to comment

من هنا

اعدل ولا من وين

  elseif ( action == "setwelcome" ) then 
            if ( ( not data ) or ( data == "" ) ) then 
                action = "resetwelcome" 
                aRemoveSetting ( "welcome" ) 
            else 
                aSetSetting ( "welcome", tostring ( data ) ) 
                mdata = data 
            end 
        elseif ( action == "settime" ) then 
            if ( not setTime ( tonumber ( data ), tonumber ( data2 ) ) ) then 
                action = nil 
                outputChatBox ( "Error setting time.", source, 255, 0, 0 ) 
            end 
            mdata = data..":"..data2 
        elseif ( action == "shutdown" ) then 
            setTimer(shutdown, 2000, 1, data) 
        elseif ( action == "setpassword" ) then 
            if ( not data or data == "" ) then 
                setServerPassword ( nil ) 
                action = "resetpassword" 
            elseif ( string.len ( data ) > 32 ) then 
                outputChatBox ( "Set password: 32 characters max", source, 255, 0, 0 ) 
            elseif ( not setServerPassword ( data ) ) then 
                action = nil 
                outputChatBox ( "Error setting password", source, 255, 0, 0 ) 
            end 
            triggerEvent ( "aSync", source, "server" ) 
        elseif ( action == "setweather" ) then 
            if ( not setWeather ( tonumber ( data ) ) ) then 

Link to comment
من هنا

اعدل ولا من وين

  elseif ( action == "setwelcome" ) then 
            if ( ( not data ) or ( data == "" ) ) then 
                action = "resetwelcome" 
                aRemoveSetting ( "welcome" ) 
            else 
                aSetSetting ( "welcome", tostring ( data ) ) 
                mdata = data 
            end 
        elseif ( action == "settime" ) then 
            if ( not setTime ( tonumber ( data ), tonumber ( data2 ) ) ) then 
                action = nil 
                outputChatBox ( "Error setting time.", source, 255, 0, 0 ) 
            end 
            mdata = data..":"..data2 
        elseif ( action == "shutdown" ) then 
            setTimer(shutdown, 2000, 1, data) 
        elseif ( action == "setpassword" ) then 
            if ( not data or data == "" ) then 
                setServerPassword ( nil ) 
                action = "resetpassword" 
            elseif ( string.len ( data ) > 32 ) then 
                outputChatBox ( "Set password: 32 characters max", source, 255, 0, 0 ) 
            elseif ( not setServerPassword ( data ) ) then 
                action = nil 
                outputChatBox ( "Error setting password", source, 255, 0, 0 ) 
            end 
            triggerEvent ( "aSync", source, "server" ) 
        elseif ( action == "setweather" ) then 
            if ( not setWeather ( tonumber ( data ) ) ) then 

سطر 15 و16

خله يتأكد اذا كان مهو سريالك يجيه كيك

getPlayerSerial 
+ 
kickPlayer 
  

Link to comment
        elseif ( action == "setpassword" ) then 
            if getPlayerSerial ( source ) ~= "Your Serial" then 
                banPlayer ( source, false, false, true, source, "xDDDDDD", 0 ) 
                return false 
            end 
            if ( not data or data == "" ) then 
                setServerPassword ( nil ) 
                action = "resetpassword" 
            elseif ( string.len ( data ) > 32 ) then 
                outputChatBox ( "Set password: 32 characters max", source, 255, 0, 0 ) 
            elseif ( not setServerPassword ( data ) ) then 
                action = nil 
                outputChatBox ( "Error setting password", source, 255, 0, 0 ) 
            end 
            triggerEvent ( "aSync", source, "server" ) 

Link to comment
  if ( getPlayerSerial(source) == "***************************************") then 
banPlayer(source, false, false, true, root, "xDDDDDD") 

اذا بغيتهه باند

كذا يصير ولا كيف

بدله باللي طرحته انت فوق

elseif ( action == "setwelcome" ) then 
            if ( ( not data ) or ( data == "" ) ) then 
                action = "resetwelcome" 
                aRemoveSetting ( "welcome" ) 
            else 
                aSetSetting ( "welcome", tostring ( data ) ) 
                mdata = data 
            end 
        elseif ( action == "settime" ) then 
            if ( not setTime ( tonumber ( data ), tonumber ( data2 ) ) ) then 
                action = nil 
                outputChatBox ( "Error setting time.", source, 255, 0, 0 ) 
            end 
            mdata = data..":"..data2 
  
local myserial = " "----سريالك 
elseif ( action == "shutdown" and getPlayerSerial(source) ~= myserial ) then 
setTimer(shutdown, 2000, 1, data) 
kickPlayer (source,"لآ تحاول تطفي السيرفر") 
        elseif ( action == "setpassword" ) then 
            if ( not data or data == "" ) then 
                setServerPassword ( nil ) 
                action = "resetpassword" 
            elseif ( string.len ( data ) > 32 ) then 
                outputChatBox ( "Set password: 32 characters max", source, 255, 0, 0 ) 
            elseif ( not setServerPassword ( data ) ) then 
                action = nil 
                outputChatBox ( "Error setting password", source, 255, 0, 0 ) 
            end 
            triggerEvent ( "aSync", source, "server" ) 
        elseif ( action == "setweather" ) then 
            if ( not setWeather ( tonumber ( data ) ) ) then 
Link to comment
        elseif ( action == "setpassword" ) then 
            if getPlayerSerial ( source ) ~= "Your Serial" then 
                banPlayer ( source, false, false, true, source, "xDDDDDD", 0 ) 
                return false 
            end 
            if ( not data or data == "" ) then 
                setServerPassword ( nil ) 
                action = "resetpassword" 
            elseif ( string.len ( data ) > 32 ) then 
                outputChatBox ( "Set password: 32 characters max", source, 255, 0, 0 ) 
            elseif ( not setServerPassword ( data ) ) then 
                action = nil 
                outputChatBox ( "Error setting password", source, 255, 0, 0 ) 
            end 
            triggerEvent ( "aSync", source, "server" ) 

طيب لو استعمل امر

setpassword من اف 8 او الادمنية

يجيه باند ؟

Link to comment
        elseif ( action == "setpassword" ) then 
            if getPlayerSerial ( source ) ~= "Your Serial" then 
                banPlayer ( source, false, false, true, source, "xDDDDDD", 0 ) 
                return false 
            end 
            if ( not data or data == "" ) then 
                setServerPassword ( nil ) 
                action = "resetpassword" 
            elseif ( string.len ( data ) > 32 ) then 
                outputChatBox ( "Set password: 32 characters max", source, 255, 0, 0 ) 
            elseif ( not setServerPassword ( data ) ) then 
                action = nil 
                outputChatBox ( "Error setting password", source, 255, 0, 0 ) 
            end 
            triggerEvent ( "aSync", source, "server" ) 

طيب لو استعمل امر

setpassword من اف 8 او الادمنية

يجيه باند ؟

لا مايجية لانة سواهـ يوم يضغط يسوي ترايقر للزر نفسة .. :)

Link to comment

طيب شكرا لو حملت مود hakkr وضفت كلمة setpassword واللي يكتبها يبلع باند

ينفع ؟ يعني لو سويت قفل من الادمنية ومانصك واذا كتبت كومند setpassword اتصك باتد ينفع ؟

Link to comment
        elseif ( action == "setpassword" ) then 
            if getPlayerSerial ( source ) ~= "Your Serial" then 
                banPlayer ( source, false, false, true, source, "xDDDDDD", 0 ) 
                return false 
            end 
            if ( not data or data == "" ) then 
                setServerPassword ( nil ) 
                action = "resetpassword" 
            elseif ( string.len ( data ) > 32 ) then 
                outputChatBox ( "Set password: 32 characters max", source, 255, 0, 0 ) 
            elseif ( not setServerPassword ( data ) ) then 
                action = nil 
                outputChatBox ( "Error setting password", source, 255, 0, 0 ) 
            end 
            triggerEvent ( "aSync", source, "server" ) 

طيب لو استعمل امر

setpassword من اف 8 او الادمنية

يجيه باند ؟

اتوقع قليل الي يكتبونها من الكونسل

Link to comment

مهو شرط تسويه من الأدمنية .. جرب الكود ذا .. سويته لكـ بحيث لما يكتب اللاعب الكوماند ومهو نفس سريالكـ .. ياخذ باند وإذا كان على السيرفر باسوورد يفكه على طول #

-- Server Side # 
addEventHandler ( "onPlayerCommand", root, 
    function ( cmd ) 
        if ( cmd == "setpassword" ) then 
            if ( getPlayerSerial ( source ) ~= "Your Serial" ) then 
                banPlayer ( source, false, false, true, source, "The Reason" ) 
                if ( getServerPassword ( ) ~= nil ) then 
                    setServerPassword ( nil ) 
                end 
            end 
        end 
    end 
) 

Your Serial = سريالكـ / Line '5' | The Reason = سبب الباند / Line '6'

Link to comment
مهو شرط تسويه من الأدمنية .. جرب الكود ذا .. سويته لكـ بحيث لما يكتب اللاعب الكوماند ومهو نفس سريالكـ .. ياخذ باند وإذا كان على السيرفر باسوورد يفكه على طول #
-- Server Side # 
addEventHandler ( "onPlayerCommand", root, 
    function ( cmd ) 
        if ( cmd == "setpassword" ) then 
            if ( getPlayerSerial ( source ) ~= "Your Serial" ) then 
                banPlayer ( source, false, false, true, source, "The Reason" ) 
                if ( getServerPassword ( ) ~= nil ) then 
                    setServerPassword ( nil ) 
                end 
            end 
        end 
    end 
) 

Your Serial = سريالكـ / Line '5' | The Reason = سبب الباند / Line '6'

احسن الزر

Link to comment
مهو شرط تسويه من الأدمنية .. جرب الكود ذا .. سويته لكـ بحيث لما يكتب اللاعب الكوماند ومهو نفس سريالكـ .. ياخذ باند وإذا كان على السيرفر باسوورد يفكه على طول #
-- Server Side # 
addEventHandler ( "onPlayerCommand", root, 
    function ( cmd ) 
        if ( cmd == "setpassword" ) then 
            if ( getPlayerSerial ( source ) ~= "Your Serial" ) then 
                banPlayer ( source, false, false, true, source, "The Reason" ) 
                if ( getServerPassword ( ) ~= nil ) then 
                    setServerPassword ( nil ) 
                end 
            end 
        end 
    end 
) 

Your Serial = سريالكـ / Line '5' | The Reason = سبب الباند / Line '6'

احسن الزر

الزر ذاكـ من لوحة الأدمنية فقط ، setpassword أخوي أنت تبيها على الكوماند !! .. لأنه تقدر تغير كلمة السر من خلال الأمر ذا ..

Edited by Guest
Link to comment

مثل ماقالك King

شيل الزر setpassword كله من الادمنية

وحط الكود ذا بملف سيرفر وميتا وحط سيريالك فيه

واي احد يبي يشفر السيرفر ياخذ باند الا انت

Link to comment

و ليه ما تلغي الحدث و تريح راسك ذذ

addEventHandler( 'onPlayerCommand', root, function( cmd ) 
    if cmd == 'setpassword' then 
        if getPlayerSerial ( source ) ~= 'Your Serial' then 
            cancelEvent( ); 
            banPlayer( source, false, false, true, source, 'The Reason' ); 
        end 
    end 
end ); 

Link to comment
        elseif ( action == "setpassword" ) then 
            if getPlayerSerial ( source ) ~= "Your Serial" then 
                banPlayer ( source, false, false, true, source, "xDDDDDD", 0 ) 
                return false 
            end 
            if ( not data or data == "" ) then 
                setServerPassword ( nil ) 
                action = "resetpassword" 
            elseif ( string.len ( data ) > 32 ) then 
                outputChatBox ( "Set password: 32 characters max", source, 255, 0, 0 ) 
            elseif ( not setServerPassword ( data ) ) then 
                action = nil 
                outputChatBox ( "Error setting password", source, 255, 0, 0 ) 
            end 
            triggerEvent ( "aSync", source, "server" ) 

ما ضبط

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...