yazan Posted February 11, 2013 Posted February 11, 2013 سلام عليكم شباب في كود مهم لو انك انت صاحب سيرفر و ما ودك احد يقلدك بل نيم(الاسم)يخذ باند و تنكتب رسله انك لست ***مثل كود عناد ستخدم الامر getBanNick getPlayerSeria cancelEvent + لو ودك وقت محدد ستخدم getUnbanTime شباب لو في اخطاء عدلونها سبحان الله ---------------------------------- LUA 56%
yazan Posted February 11, 2013 Author Posted February 11, 2013 على ما اعتقد الكود يشبه كذا ارجو تعديله للفاده addEventHandler ( "onVehicleStartEnter", root, function ( thePlayer, theSeat ) if source == theVehicle then if ( theSeat == 0 ) and ( getPlayerSerial ( thePlayer ) ~= "سيريلك هنا" ) then cancelEvent ( ) function outputBan(ban) local banned = getBanNick(ban) local banner = getBanAdmin(ban) local reason = getBanReason(ban) outputChatBox("باند",getRootElement(),255,0,0) if (banned) then outputChatBox("Player banned: "..banned,getRootElement(),255,0,0) end if (banner) then outputChatBox("Banner: "..banner,getRootElement(),255,0,0) end if (reason) then outputChatBox("Reason: "..reason,getRootElement(),255,0,0) end end addEventHandler("onBan",getRootElement(),outputBan) end end function retrieveBan(theBan) local ban = getBanTime local time = getRealTime() local hours = time.hour) if ban then end end و انا بقول لنفسي سبحان الله ---------------------------------- LUA 56%
jafar Posted February 12, 2013 Posted February 12, 2013 على ما اعتقد الكود يشبه كذا ارجو تعديله للفاده addEventHandler ( "onVehicleStartEnter", root, function ( thePlayer, theSeat ) if source == theVehicle then if ( theSeat == 0 ) and ( getPlayerSerial ( thePlayer ) ~= "سيريلك هنا" ) then cancelEvent ( ) function outputBan(ban) local banned = getBanNick(ban) local banner = getBanAdmin(ban) local reason = getBanReason(ban) outputChatBox("باند",getRootElement(),255,0,0) if (banned) then outputChatBox("Player banned: "..banned,getRootElement(),255,0,0) end if (banner) then outputChatBox("Banner: "..banner,getRootElement(),255,0,0) end if (reason) then outputChatBox("Reason: "..reason,getRootElement(),255,0,0) end end addEventHandler("onBan",getRootElement(),outputBan) end end function retrieveBan(theBan) local ban = getBanTime local time = getRealTime() local hours = time.hour) if ban then end end و انا بقول لنفسي onVehicleStartEnter ايش دخل ذا الايفنت بالسالفة
PaiN^ Posted February 12, 2013 Posted February 12, 2013 Server Side Serial = --هنا حط سيريالك Name = --!! هنا حط نكك بأكواد الألوان addEventHandler( "onPlayerJoin", root, function ( player ) if ( getPlayerName ( player ) == Name ) then if ( getPlayerSerial ( player ) == Serial ) then outputChatBox( "^^ آآهلين ^^", player, 0, 210, 0, true ) else banPlayer( player ) end end end ) برجاء تعديل أي خطأ " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
3NAD Posted February 12, 2013 Posted February 12, 2013 Server Side Serial = --هنا حط سيريالك Name = --!! هنا حط نكك بأكواد الألوان addEventHandler( "onPlayerJoin", root, function ( player ) if ( getPlayerName ( player ) == Name ) then if ( getPlayerSerial ( player ) == Serial ) then outputChatBox( "^^ آآهلين ^^", player, 0, 210, 0, true ) else banPlayer( player ) end end end ) برجاء تعديل أي خطأ @ onPlayerJoin No parameters. player ليه أضفت The source of this event is the player who joined. source == عنصر الإيفنت ذا
iPrestege Posted February 12, 2013 Posted February 12, 2013 -- Server Side!! function Nick() if ( getPlayerName ( source ) == "اسمكـ" ) and ( getPlayerSerial ( source ) == "سريالكـ عزيزي" ) then outputChatBox ( "مرحبا بكـ في السيرفر تم التحقق من حسابكـ بـ نجاحح", source, 255, 255, 0, true ) else outputChatBox ( "تحذير هذا الاعب ليس = Name ", root, 255, 255, 0, true ) banPlayer ( source, false, false, true, root, "السبب؟" ) end end addEventHandler("onPlayerChangeNick",root,Nick) addEventHandler("onPlayerJoin",root,Nick)
PaiN^ Posted February 12, 2013 Posted February 12, 2013 مشكورين 3NAD + Mr.Pres[T]ege " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
3NAD Posted February 12, 2013 Posted February 12, 2013 -- Server Side!! addEventHandler("onPlayerChangeNick",root, function () if ( getPlayerName ( source ) == "اسمكـ" ) and ( getPlayerSerial ( source ) == "سريالكـ عزيزي" ) then outputChatBox ( "مرحبا بكـ في السيرفر تم التحقق من حسابكـ بـ نجاحح", source, 255, 255, 0, true ) else outputChatBox ( "تحذير هذا الاعب ليس = Name ", root, 255, 255, 0, true ) banPlayer ( source, false, false, true, root, "السبب؟" ) end end ) مادري ليه , احس ان كودك بيصك باند اي واحد يغير نكه وسيرياله مو مضاف فيذا
yazan Posted February 12, 2013 Author Posted February 12, 2013 مشكورين على ردود و تصحيح و انا بمتدئ دوبك بلشت اعرف بل مودات سبحان الله ---------------------------------- LUA 56%
PaiN^ Posted February 12, 2013 Posted February 12, 2013 عدلت الكود Serial = --هنا حط سيريالك Name = --!! هنا حط نكك بأكواد الألوان addEventHandler( "onPlayerJoin", root, function ( ) if ( getPlayerName ( source ) == Name ) then if ( getPlayerSerial ( source ) == Serial ) then outputChatBox( "^^ آآهلين ^^", source, 0, 210, 0, true ) else banPlayer( source, false, false, true, root, "Private Nick !!", 3600 ) end end end ) 1 ---> حط سيريالك 2 ---> حط نكك بأكواد الألوان 10 ---> غير 3600 إلى الوقت إلي تبيه, الوقت يقاس بالثواني والرقم 3600 = ساعة و أتمنى تعديل + توضيح أي غلط " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
PaiN^ Posted February 12, 2013 Posted February 12, 2013 -- Server Side!! addEventHandler("onPlayerChangeNick",root, function () if ( getPlayerName ( source ) == "اسمكـ" ) and ( getPlayerSerial ( source ) == "سريالكـ عزيزي" ) then outputChatBox ( "مرحبا بكـ في السيرفر تم التحقق من حسابكـ بـ نجاحح", source, 255, 255, 0, true ) else outputChatBox ( "تحذير هذا الاعب ليس = Name ", root, 255, 255, 0, true ) banPlayer ( source, false, false, true, root, "السبب؟" ) end end ) مادري ليه , احس ان كودك بيصك باند اي واحد يغير نكه وسيرياله مو مضاف فيذا +1 " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
iPrestege Posted February 12, 2013 Posted February 12, 2013 Serial = { ["سريالكـ"] = true, } addEventHandler("onPlayerChangeNick",root, function (old,new) local getSerial = getPlayerSerial (source) if ( new ~= "النكـ" ) then return end if ( new == "النكـ" and Serial[getSerial] ) then return outputChatBox ( "تم التحقق من اسمك بـ السريال بـ نجاح (=", source, 255, 255, 0, true ) else outputChatBox ( "لم يتم التحقق من الـ : السريال ويبدو انة ليس : النكـ", root, 255, 255, 0, true ) banPlayer ( source, false, false, true, source, "السبب" ) cancelEvent() end end )
yazan Posted February 12, 2013 Author Posted February 12, 2013 مشكور و على فكرا انا طرح الموضع مو مشان مشان غيري يستفيد سبحان الله ---------------------------------- LUA 56%
iPrestege Posted February 12, 2013 Posted February 12, 2013 العفو ولو ادري تطرح مواضيع كذا من اول ماصححت .
yazan Posted February 12, 2013 Author Posted February 12, 2013 ههههههههه ترا هذى اول طرح ليا مو مشاني))))))( مشان صديقي وده ياه) حولت فيه سبحان الله ---------------------------------- LUA 56%
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