CRoW,,# Posted May 22, 2013 Share Posted May 22, 2013 السلام عليكم حبيت اعرف وش استخدم اذا بغيت محد يقفل السيرفر الا انا والي يقفله غيري يجيه كيك والسيرفر ما يتقفل Link to comment
Quited Posted May 22, 2013 Share Posted May 22, 2013 سوي قروب خاص فيك يسمح فيها command.setpassword والقروبات الثانية امنعها من الاسل + ركب مود قفل الاسل بكلمة سر لكنق عبادي واحذف مود الرن كود Link to comment
CRoW,,# Posted May 23, 2013 Author Share Posted May 23, 2013 من هنا اعدل ولا من وين 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
iMr.Dawix~# Posted May 23, 2013 Share Posted May 23, 2013 من هنا اعدل ولا من وين 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
CRoW,,# Posted May 23, 2013 Author Share Posted May 23, 2013 if ( getPlayerSerial(source) == "***************************************") then banPlayer(source, false, false, true, root, "xDDDDDD") اذا بغيتهه باند كذا يصير ولا كيف Link to comment
3NAD Posted May 23, 2013 Share Posted May 23, 2013 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
iMr.Dawix~# Posted May 23, 2013 Share Posted May 23, 2013 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
Quited Posted May 23, 2013 Share Posted May 23, 2013 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
iPrestege Posted May 23, 2013 Share Posted May 23, 2013 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
iPrestege Posted May 23, 2013 Share Posted May 23, 2013 يعني ماتصير الا يوم تضغط الزر حق الاقفال من الادمنية غيرهـ لا # Link to comment
Quited Posted May 23, 2013 Share Posted May 23, 2013 طيب شكرا لو حملت مود hakkr وضفت كلمة setpassword واللي يكتبها يبلع باند ينفع ؟ يعني لو سويت قفل من الادمنية ومانصك واذا كتبت كومند setpassword اتصك باتد ينفع ؟ Link to comment
iPrestege Posted May 23, 2013 Share Posted May 23, 2013 على حسب علمي بيتقفل ولا يجية بآند # الا اذا كان الكوماند متصل بـ الترايقر Link to comment
Quited Posted May 23, 2013 Share Posted May 23, 2013 طيب فيه مود يقفل السيرفر بفنكشن ? ومايفتحه الا الكونسول ؟ Link to comment
iPrestege Posted May 23, 2013 Share Posted May 23, 2013 تقدر تبرمج لوحة تفتح للكونسول او كوماند للكونسول او سريال معين او حساب معين او اي بي معين Link to comment
CRoW,,# Posted May 23, 2013 Author Share Posted May 23, 2013 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
K1NG Posted May 23, 2013 Share Posted May 23, 2013 مهو شرط تسويه من الأدمنية .. جرب الكود ذا .. سويته لكـ بحيث لما يكتب اللاعب الكوماند ومهو نفس سريالكـ .. ياخذ باند وإذا كان على السيرفر باسوورد يفكه على طول # -- 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
CRoW,,# Posted May 23, 2013 Author Share Posted May 23, 2013 مهو شرط تسويه من الأدمنية .. جرب الكود ذا .. سويته لكـ بحيث لما يكتب اللاعب الكوماند ومهو نفس سريالكـ .. ياخذ باند وإذا كان على السيرفر باسوورد يفكه على طول # -- 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
K1NG Posted May 23, 2013 Share Posted May 23, 2013 (edited) مهو شرط تسويه من الأدمنية .. جرب الكود ذا .. سويته لكـ بحيث لما يكتب اللاعب الكوماند ومهو نفس سريالكـ .. ياخذ باند وإذا كان على السيرفر باسوورد يفكه على طول # -- 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 May 23, 2013 by Guest Link to comment
Quited Posted May 23, 2013 Share Posted May 23, 2013 مثل ماقالك King شيل الزر setpassword كله من الادمنية وحط الكود ذا بملف سيرفر وميتا وحط سيريالك فيه واي احد يبي يشفر السيرفر ياخذ باند الا انت Link to comment
CRoW,,# Posted May 24, 2013 Author Share Posted May 24, 2013 Thx for Everyone 1- w1w#ALBANDER 2- xXDawiXx 3-3NAD 4-#|=x=|K!NG|=x=|# 5-#Mr.Pres[T]ege (... Link to comment
PaiN^ Posted May 25, 2013 Share Posted May 25, 2013 و ليه ما تلغي الحدث و تريح راسك ذذ 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
CRoW,,# Posted May 29, 2013 Author Share Posted May 29, 2013 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now