Guest Posted June 14, 2018 Share Posted June 14, 2018 شباب لما اشغل تاج في سيرفر تكتيك تبعي لما أكتب بالشات تضهر ورتين الكتابة ليش؟ و شكرا Link to comment
+Source|> Posted June 14, 2018 Share Posted June 14, 2018 47 minutes ago, Hyper2 said: شباب لما اشغل تاج في سيرفر تكتيك تبعي لما أكتب بالشات تضهر ورتين الكتابة ليش؟ و شكرا تأكد من اقفال مود الفريروم او مو التكتبك حقك سوي فيه كود يمنع التكرار Link to comment
Guest Posted June 14, 2018 Share Posted June 14, 2018 (edited) قيم مود التكتيك مشفر مش فاهم منه اي شي و الفريروم مقفول Edited June 14, 2018 by Guest Link to comment
SycroX Posted June 14, 2018 Share Posted June 14, 2018 3 hours ago, Hyper2 said: قيم مود التكتيك مشفر مش فاهم منه اي شي و الفريروم مقفول اعتقد ان جيم مود التكتيك يكون به شات خاص به لهيك استعمل getEventHandlers removeEventHandler Link to comment
Guest Posted June 14, 2018 Share Posted June 14, 2018 الأكواد دي احطها في مود التكتيك صح؟ Link to comment
+Source|> Posted June 14, 2018 Share Posted June 14, 2018 50 minutes ago, Hyper2 said: الأكواد دي احطها في مود التكتيك صح؟ شوي ملف في مود التكتيك وعرفه في الميتا وحط الأكواد ذي ان لما اللاعب يكتب بالشات يسوي كنسل Link to comment
SycroX Posted June 14, 2018 Share Posted June 14, 2018 (edited) for _,functions in ipairs(getEventHandlers("onPlayerChat", root)) do for i,value in ipairs(functions) do removeEventHandler("onPlayerChat", root, value) end end local Tags = { --Group, tag, rankColor {"Console", "#FF0000[Console]", "#00ff00"}, {"Admin", "#FF0000[Admin]", "#ffff00"} } addEventHandler("onPlayerChat", root, function(message) local playerTag = nil local tagColor = nil local account = getPlayerAccount(source) if account and not isGuestAccount(account) then for _,value in ipairs(Tags) do if aclGetGroup(value[1]) then if isObjectInACLGroup("user."..getAccountName(account), aclGetGroup(value[1])) then playerTag, tagColor = value[2], value[3] break end end end end if playerTag then outputChatBox(playerTag.." "..getPlayerName(source).." : "..tagColor..""..string.gsub(message, "#%x%x%x%x%x%x", ""), root, 255, 0, 0, true) else outputChatBox(getPlayerName(source).." : #ffffff"..string.gsub(message, "#%x%x%x%x%x%x", ""), root, 255, 0, 0, true) end end ) لقيت نفسي فاضي شوي Edited June 14, 2018 by #َxLysandeR 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