~ĐOšSДЯỷ502 Posted November 18, 2012 Share Posted November 18, 2012 addEventHandler('onPlayerChat', g_Root, function(msg, type) if type == 0 then cancelEvent() if chatTime[source] and chatTime[source] + tonumber(get("*chat/mainChatDelay")) > getTickCount() then outputChatBox("Stop spamming main chat!", source, 255, 0, 0) return else chatTime[source] = getTickCount() end if get("*chat/blockRepeatMessages") == "true" and lastChatMessage[source] and lastChatMessage[source] == msg then outputChatBox("Stop repeating yourself!", source, 255, 0, 0) end end ) وضيفة الكود اذا احد كتب مثلا هلا وكتبها مرا ثانيه ماتطلع في الشات الكود اخذته من الفري روم بس مااضبط Link to comment
~ĐOšSДЯỷ502 Posted November 18, 2012 Author Share Posted November 18, 2012 "Dossary" name="Race shop" version="1.0.1" type="script"/> ضفته معى شوب الملف سيرفر Link to comment
abu5lf Posted November 18, 2012 Share Posted November 18, 2012 منت ضايف الاعدادات في الميتا Link to comment
~ĐOšSДЯỷ502 Posted November 18, 2012 Author Share Posted November 18, 2012 "*chat/mainChatDelay" value="1000" /> -- Miliseconds between each message a player can send through main chat --> "*chat/blockRepeatMessages" value="true" /> -- Prevent a player from saying the same thing twice in a row to spam --> ذي ؟ Link to comment
~ĐOšSДЯỷ502 Posted November 18, 2012 Author Share Posted November 18, 2012 "Dossary" name="Race shop" version="1.0.1" type="script"/> جربت ذي مااشتغل Link to comment
~ĐOšSДЯỷ502 Posted November 18, 2012 Author Share Posted November 18, 2012 الغلط في الميتا بس ماعرفت وش هو Link to comment
~ĐOšSДЯỷ502 Posted November 18, 2012 Author Share Posted November 18, 2012 ERROR: Couldn't parse meta file for resource shop Link to comment
|Mr|-Talal07-| Posted November 18, 2012 Share Posted November 18, 2012 جرب ذا و انصح تركبه مع التاج LastMsg = {} addEventHandler("onPlayerChat",root, function (msg,type) if ( type == 0 ) then if ( LastMsg[source] ~= msg ) then LastMsg[source] = msg else outputChatBox("* Stop Spamming Main Chat",source,255,0,0) end end end ) Link to comment
~ĐOšSДЯỷ502 Posted November 18, 2012 Author Share Posted November 18, 2012 جرب ذا و انصح تركبه مع التاج LastMsg = {} addEventHandler("onPlayerChat",root, function (msg,type) if ( type == 0 ) then if ( LastMsg[source] ~= msg ) then LastMsg[source] = msg else outputChatBox("* Stop Spamming Main Chat",source,255,0,0) end end end ) ابيه مايكتب نفس الكلمه الي كتبها عشان مايتكرر النشر Link to comment
TAPL Posted November 18, 2012 Share Posted November 18, 2012 LastMsg = {} addEventHandler("onPlayerChat",root, function (msg,type) if ( type == 0 ) then if ( LastMsg[source] ~= msg ) then LastMsg[source] = msg else outputChatBox("* Stop Spamming Main Chat",source,255,0,0) cancelEvent() 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