Ja[B]er[X]Pro Posted January 26, 2016 Share Posted January 26, 2016 (edited) اسف طلباتي كتيرة اليوم ابي فنكشنات عندما الاعب يتكلم بالشات وهو غير مسجل ما يقدر يتكلم وكيف اوقف التسجيل من اف8 اخليه فقط من لوحة التسجيل Edited January 27, 2016 by Guest Link to comment
' A F . Posted January 26, 2016 Share Posted January 26, 2016 'onPlayerChat' 'onPlayerCommand' isGuestAccount getPlayerAccount cancelEvent Link to comment
#|_oskar_|# Posted January 26, 2016 Share Posted January 26, 2016 'onPlayerChat' 'onPlayerCommand' isGuestAccount getPlayerAccount cancelEvent مايحتاج الحدث حق الكوماند Link to comment
Jupi Posted January 27, 2016 Share Posted January 27, 2016 'onPlayerChat' 'onPlayerCommand' isGuestAccount getPlayerAccount cancelEvent مايحتاج الحدث حق الكوماند الا يحتاج يقولك كيف يوقف التسجيل بيستعمل onPlayerCommand و اذا كان الكوماند logout يكنسل الايفينت و بكذا يوقف التسجيل Link to comment
SycroX Posted January 27, 2016 Share Posted January 27, 2016 addEventHandler("onPlayerChat", root, function () if ( isGuestAccount ( getPlayerAccount ( source ) ) ) then cancelEvent() outputChatBox ( "Please Login First !!", source, 255, 0, 0, true ) end end) addEventHandler("onPlayerCommand", root, function( cmd ) if cmd == "register" then cancelEvent() end end) Link to comment
Ja[B]er[X]Pro Posted January 27, 2016 Author Share Posted January 27, 2016 addEventHandler("onPlayerChat", root, function () if ( isGuestAccount ( getPlayerAccount ( source ) ) ) then cancelEvent() outputChatBox ( "Please Login First !!", source, 255, 0, 0, true ) end end) addEventHandler("onPlayerCommand", root, function( cmd ) if cmd == "register" then cancelEvent() 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