iMrKaZaNoFa

طريقة عمل مود انتقال الى سيرفر اخر

Recommended Posts

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

لاهنتم يا رجال - كيف اعمل مود انتقال الى سيرفر اخر يكتب الشات مثلآ

!ريس

!شوتر

!حياة

وزي كذا لاهنتم يا رجال لحد يبخل علينا الي يعرف 

" معلومة مهمة "

تراني نوب برمجة لو تسوية واعطيك حقك ماعندي مشكلة

Share this post


Link to post
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)

اتوقع طلبك التقصده

Share this post


Link to post

تفضل

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)

حط الاي بي الاول وغير كلمة ريد للكلمة التي تبيها ونفس الشيء للباقي ولاتنسى تضيفه قروب ادمن

Share this post


Link to post
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 by #,+( _xiRoc[K]; >
  • Like 3

Share this post


Link to post

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.