BadBoy Posted October 12, 2013 Share Posted October 12, 2013 السلام عليكم ورحمة الله وبركاته ,, كيف اقدر امنع الكلمات من اف 8 ,, الي هي ,, ( login | register | logout ) ,, اقدر امنعها بكود او شيء ؟ ,, ننتظركم.. Link to comment
iPrestege Posted October 12, 2013 Share Posted October 12, 2013 السلام عليكم ورحمة الله وبركاته ,, كيف اقدر امنع الكلمات من اف 8 ,, الي هي ,, ( login | register | logout ) ,, اقدر امنعها بكود او شيء ؟ ,, ننتظركم.. عليكم السلام onPlayerCommand cancelEvent Link to comment
BadBoy Posted October 12, 2013 Author Share Posted October 12, 2013 السلام عليكم ورحمة الله وبركاته ,, كيف اقدر امنع الكلمات من اف 8 ,, الي هي ,, ( login | register | logout ) ,, اقدر امنعها بكود او شيء ؟ ,, ننتظركم.. عليكم السلام onPlayerCommand cancelEvent ماضبطط المود وهذه هو الكود الي انا سويته ,, addEventHandler("onPlayerCommand",root, function(cmd) if cmd == login then cancelEvent(true) outputChatBox(" disbaled this command",255,0,0,false) elseif cmd == register then cancelEvent(true) outputChatBox(" disbaled this command",255,0,0,false) elseif cmd == logout then cancelEvent(true) outputChatBox(" disbaled this command",255,0,0,false) end end ) Link to comment
AboShanab Posted October 12, 2013 Share Posted October 12, 2013 -- Server Side ! addEventHandler("onPlayerCommand",root, function(cmd) if ( cmd == login ) then cancelEvent() outputChatBox(" disbaled this command",source,255,0,0,false) elseif ( cmd == register ) then cancelEvent() outputChatBox(" disbaled this command",source,255,0,0,false) elseif ( cmd == logout ) then cancelEvent() outputChatBox(" disbaled this command",source,255,0,0,false) end end) Link to comment
BadBoy Posted October 12, 2013 Author Share Posted October 12, 2013 -- Server Side ! addEventHandler("onPlayerCommand",root, function(cmd) if ( cmd == login ) then cancelEvent() outputChatBox(" disbaled this command",source,255,0,0,false) elseif ( cmd == register ) then cancelEvent() outputChatBox(" disbaled this command",source,255,0,0,false) elseif ( cmd == logout ) then cancelEvent() outputChatBox(" disbaled this command",source,255,0,0,false) end end) ماضبط + عادي لو انا خليت true او بدون كذا كذا نفس الشيء ذذ Link to comment
jafar Posted October 12, 2013 Share Posted October 12, 2013 Parameters string command -- addEventHandler ( "onPlayerCommand", root, function ( cmd ) if ( cmd == "login" ) then cancelEvent ( ) outputChatBox ( " disbaled this command", source, 255, 0, 0, false ) elseif ( cmd == "register" ) then cancelEvent ( ) outputChatBox ( " disbaled this command", source, 255, 0, 0, false ) elseif ( cmd == "logout" ) then cancelEvent ( ) outputChatBox ( " disbaled this command", source, 255, 0, 0, false ) end end ) Link to comment
BadBoy Posted October 12, 2013 Author Share Posted October 12, 2013 Parameters string command -- addEventHandler ( "onPlayerCommand", root, function ( cmd ) if ( cmd == "login" ) then cancelEvent ( ) outputChatBox ( " disbaled this command", source, 255, 0, 0, false ) elseif ( cmd == "register" ) then cancelEvent ( ) outputChatBox ( " disbaled this command", source, 255, 0, 0, false ) elseif ( cmd == "logout" ) then cancelEvent ( ) outputChatBox ( " disbaled this command", source, 255, 0, 0, false ) end end ) ماضبط .. Link to comment
BadBoy Posted October 12, 2013 Author Share Posted October 12, 2013 شغال 100 % تسلم كنت مركب الكود حق الي عطيتني اياه الي انت ناسي فيه كم فاصلة,, وقام خرب لي الاكواد الي تحته ض1 ,, Link to comment
#DRAGON!FIRE Posted October 12, 2013 Share Posted October 12, 2013 # تقدر كذا .. addEventHandler ( "onPlayerCommand", root, function ( cmd ) if ( cmd == "login" ) or ( cmd == "register" ) or ( cmd == "logout" ) then cancelEvent ( true ) outputChatBox ( " disbaled this command", source, 255, 0, 0, false ) 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