MR.Mosa Posted December 11, 2016 Share Posted December 11, 2016 (edited) السلام عليكم شو مشكلة هذا الكود ---- سيرفر addEventHandler('onPlayerJoin', root, function(plr) if getElementType ( plr ) == "player" then redirectPlayer (plr, "46.105.250.205",tonumber(25006)) end end ) @iPrestege Edited December 11, 2016 by MR.Mosa Link to comment
!#NssoR_) Posted December 11, 2016 Share Posted December 11, 2016 ماله داعي تسوي تحقق ان الي خش لاعب لأن من اسم الحدث مبين ان اذا اللاعب خش source الي plr غير Link to comment
F_F Posted December 11, 2016 Share Posted December 11, 2016 Not test addEventHandler('onPlayerJoin', root, function a ( pl ) redirectPlayer ( pl, "ip server you", tonumber ) end ); Link to comment
iPrestege Posted December 11, 2016 Share Posted December 11, 2016 Just now, F_F said: Not test addEventHandler('onPlayerJoin', root, function a ( pl ) redirectPlayer ( pl, "ip server you", tonumber ) end ); خطأ السورس في الحدث هو الاعب مثل ماقال نصور ؟ Link to comment
Adham Posted December 11, 2016 Share Posted December 11, 2016 (edited) addEventHandler ( 'onPlayerJoin', root, function ( ) redirectPlayer ( source "46.105.250.205",tonumber(25006) ) end ) Edited December 11, 2016 by Le3bA Link to comment
MR.Mosa Posted December 11, 2016 Author Share Posted December 11, 2016 1 hour ago, Le3bA said: addEventHandler ( 'onPlayerJoin', root, function ( ) redirectPlayer ( source "46.105.250.205",tonumber(25006) ) end ) مش شغال Link to comment
ميدوح Posted December 11, 2016 Share Posted December 11, 2016 (edited) This example rediercts any player joins to the server automatically to any other server, add the script for admin group. اضفة قروب ادمن مودتحت Edited December 11, 2016 by medo7 u kick ! Link to comment
MR.Mosa Posted December 11, 2016 Author Share Posted December 11, 2016 5 minutes ago, medo7 said: function Redirect()redirectPlayer (source, "server ip", "server port")end --End functionaddEventHandler("onPlayerJoin", getRootElement(), Redirect) مش شغال Link to comment
#DRAGON!FIRE Posted December 11, 2016 Share Posted December 11, 2016 لا تنسى تتاكد من صحة الايبي والبورت . addEventHandler ( 'onPlayerJoin', root, function ( ) redirectPlayer ( source, "46.105.250.205", 25006 ) end ) Link to comment
iPrestege Posted December 11, 2016 Share Posted December 11, 2016 addEventHandler ( 'onPlayerJoin',root, function ( ) if hasObjectPermissionTo ( getThisResource ( ),'function.redirectPlayer',true ) then redirectPlayer ( source,'46.105.250.205',25006 ) else outputChatBox ('* The resource is not able to redirect the player!',root ) end end ) اذا طلعت لك رسالة الخطأ معناتة السكربت ماله صلاحية تحويل الاعبين لذلك ضيفة في قروب يقدر يحول الاعبين Link to comment
MR.Mosa Posted December 11, 2016 Author Share Posted December 11, 2016 34 minutes ago, iPrestege said: addEventHandler ( 'onPlayerJoin',root, function ( ) if hasObjectPermissionTo ( getThisResource ( ),'function.redirectPlayer',true ) then redirectPlayer ( source,'46.105.250.205',25006 ) else outputChatBox ('* The resource is not able to redirect the player!',root ) end end ) اذا طلعت لك رسالة الخطأ معناتة السكربت ماله صلاحية تحويل الاعبين لذلك ضيفة في قروب يقدر يحول الاعبين تم الافادة شكرا 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