iMrKaZaNoFa Posted February 13, 2018 Share Posted February 13, 2018 سلام عليكم ورحمة الله وبركاتة لاهنتم يا رجال - كيف اعمل مود انتقال الى سيرفر اخر يكتب الشات مثلآ !ريس !شوتر !حياة وزي كذا لاهنتم يا رجال لحد يبخل علينا الي يعرف " معلومة مهمة " تراني نوب برمجة لو تسوية واعطيك حقك ماعندي مشكلة Link to comment
MrKAREEM Posted February 13, 2018 Share Posted February 13, 2018 شوف السكربت دا ممكن يساعدك مود الانتقال الي السيرفرات Link to comment
Doffy Posted February 13, 2018 Share Posted February 13, 2018 القسم الخطأ @!#NssoR_) 1 Link to comment
KING-ABADY Posted February 19, 2018 Share Posted February 19, 2018 function n8lR(source) redirectPlayer(source,'ip','port') end addCommandHandler("ريس", n8lR) function n8lL(source) redirectPlayer(source,'ip','port') end addCommandHandler("حياه", n8lL) function n8lH(source) redirectPlayer(source,'ip','port') end addCommandHandler("هجوله", n8lH) اتوقع طلبك التقصده Link to comment
yasin0 Posted February 20, 2018 Share Posted February 20, 2018 تفضل function redirecter ( message,type) ip1,ip2,ip3 = 'ip','ip','ip' port1,port2,port3 = 'port','port','port' if message == 'red' and type == 0 then redirectPlayer(source,ip1,port1) if message == 'blue' and type == 0 then redirectPlayer(source,ip2,port2) if message == 'green' and type == 0 then redirectPlayer(source,ip3,port3) end end end end addEventHandler('onPlayerChat',root,redirecter) حط الاي بي الاول وغير كلمة ريد للكلمة التي تبيها ونفس الشيء للباقي ولاتنسى تضيفه قروب ادمن Link to comment
Abdul KariM Posted February 20, 2018 Share Posted February 20, 2018 @yasin0 elseif البورت يكون رقم موب سترنق راجع كودك وتقدر تختصر الكود بأستخدام Link to comment
Rockyz Posted February 20, 2018 Share Posted February 20, 2018 (edited) local what = { ['race'] = {ip = 'ip', port = 'port', password = ''}, ['shooter'] = {ip = 'ip', port = 'port', password = ''}, ['RL'] = {ip = 'ip', port = 'port', password = ''} } addEventHandler('onPlayerCommand', root, function(cmd) if what[cmd] and tostring(what[cmd].ip) and tonumber(what[cmd].port) and tostring(what[cmd].password) then redirectPlayer(source, tostring(what[cmd].ip), tonumber(what[cmd].port), tostring(what[cmd].password)) end end) Edited February 20, 2018 by #,+( _xiRoc[K]; > 3 Link to comment
iMrKaZaNoFa Posted March 5, 2018 Author Share Posted March 5, 2018 مثلا زي كذا يا شباب local what = { ['race'] = {ip = '192.168.1.1', port = '2222', password = ''}, ['shooter'] = {ip = 'ip', port = 'port', password = ''}, ['RL'] = {ip = 'ip', port = 'port', password = ''} } addEventHandler('onPlayerCommand', root, function(cmd) if what[cmd] and tostring(what[cmd].ip) and tonumber(what[cmd].port) and tostring(what[cmd].password) then redirectPlayer(source, tostring(what[cmd].ip), tonumber(what[cmd].port), tostring(what[cmd].password)) end end) Link to comment
#Major . Posted March 8, 2018 Share Posted March 8, 2018 عاجبني ان كل واحد يحط طريقة مختلفه ض2 تتحدون بعض انتم.؟ Link to comment
iMrKaZaNoFa Posted March 8, 2018 Author Share Posted March 8, 2018 بالأخير ماني فاهم شي Link to comment
#Major . Posted March 9, 2018 Share Posted March 9, 2018 4 hours ago, iMrKaZaNoFa said: بالأخير ماني فاهم شي حبيبي شوف وركز معي local what = { ['race'] = {ip = 'ip', port = 'port', password = ''}, -- اول فراغ الكلمه | ثاني فراغ الايبي | ثالث فراغ البورت | رابع فراغ لو موجود رمز حطه ['shooter'] = {ip = 'ip', port = 'port', password = ''},-- ['RL'] = {ip = 'ip', port = 'port', password = ''} } addEventHandler('onPlayerCommand', root, function(cmd) if what[cmd] and tostring(what[cmd].ip) and tonumber(what[cmd].port) and tostring(what[cmd].password) then redirectPlayer(source, tostring(what[cmd].ip), tonumber(what[cmd].port), tostring(what[cmd].password)) end end) -- مثال local what = { ['!ريس'] = {ip = '127.0.0.1', port = '5412', password = ''-- هنا لو فيه رمز حط}, ['!شوتر'] = {ip = '127.4.3.1', port = '5413', password = ''}, ['!حياة'] = {ip = '127.4.4.5', port = '2412', password = ''} } addEventHandler('onPlayerCommand', root, function(cmd) if what[cmd] and tostring(what[cmd].ip) and tonumber(what[cmd].port) and tostring(what[cmd].password) then redirectPlayer(source, tostring(what[cmd].ip), tonumber(what[cmd].port), tostring(what[cmd].password)) end end) Link to comment
Rakan# Posted March 9, 2018 Share Posted March 9, 2018 6 hours ago, *RayaN-Alharbi. said: حبيبي شوف وركز معي local what = { ['race'] = {ip = 'ip', port = 'port', password = ''}, -- اول فراغ الكلمه | ثاني فراغ الايبي | ثالث فراغ البورت | رابع فراغ لو موجود رمز حطه ['shooter'] = {ip = 'ip', port = 'port', password = ''},-- ['RL'] = {ip = 'ip', port = 'port', password = ''} } addEventHandler('onPlayerCommand', root, function(cmd) if what[cmd] and tostring(what[cmd].ip) and tonumber(what[cmd].port) and tostring(what[cmd].password) then redirectPlayer(source, tostring(what[cmd].ip), tonumber(what[cmd].port), tostring(what[cmd].password)) end end) -- مثال local what = { ['!ريس'] = {ip = '127.0.0.1', port = '5412', password = ''-- هنا لو فيه رمز حط}, ['!شوتر'] = {ip = '127.4.3.1', port = '5413', password = ''}, ['!حياة'] = {ip = '127.4.4.5', port = '2412', password = ''} } addEventHandler('onPlayerCommand', root, function(cmd) if what[cmd] and tostring(what[cmd].ip) and tonumber(what[cmd].port) and tostring(what[cmd].password) then redirectPlayer(source, tostring(what[cmd].ip), tonumber(what[cmd].port), tostring(what[cmd].password)) end end) سطر 15 فيه خطا القوس Link to comment
#Major . Posted March 9, 2018 Share Posted March 9, 2018 (edited) 13 minutes ago, Rakan# said: سطر 15 فيه خطا القوس #يب معليش مسحت قوس بالغلط Edited March 9, 2018 by *RayaN-Alharbi. #Edit 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