Taken' Posted July 5, 2018 Share Posted July 5, 2018 function preventChatSpam(cmd) if cmd == "say" then if isGuestAccount (getPlayerAccount(source)) then cancelEvent() outputChatBox("Login First", source, 255, 0, 0, true) end end addEventHandler("onPlayerCommand", root, preventChatSpam) أيش الغلط ب الكود ؟! وممكن التصحيح ؟ الوو ! Link to comment
Mr.Mostafa Posted July 5, 2018 Share Posted July 5, 2018 54 minutes ago, Taken' said: function preventChatSpam(cmd) if cmd == "say" then if isGuestAccount (getPlayerAccount(source)) then cancelEvent() outputChatBox("Login First", source, 255, 0, 0, true) end end addEventHandler("onPlayerCommand", root, preventChatSpam) أيش الغلط ب الكود ؟! وممكن التصحيح ؟ الوو ! علي حسب كودك اتوقع تبي تسوي لو شخص زاير ما يقدر يتكلم بس هادي سويها من مود التاجات - وتفضل Command = { ['say'] = true; } addEventHandler( 'onPlayerCommand', root, function (cmd) sourceAccount = getPlayerAccount ( source ) if isGuestAccount ( sourceAccount ) then if Command [cmd] then cancelEvent () outputChatBox("Login First", source, 255, 0, 0, true) end end end ) Link to comment
Taken' Posted July 6, 2018 Author Share Posted July 6, 2018 15 hours ago, Mr.Mostafa said: علي حسب كودك اتوقع تبي تسوي لو شخص زاير ما يقدر يتكلم بس هادي سويها من مود التاجات - وتفضل Command = { ['say'] = true; } addEventHandler( 'onPlayerCommand', root, function (cmd) sourceAccount = getPlayerAccount ( source ) if isGuestAccount ( sourceAccount ) then if Command [cmd] then cancelEvent () outputChatBox("Login First", source, 255, 0, 0, true) end 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