Jump to content

مساعدة مشكل تاج


Guest

Recommended Posts

شباب لما اشغل تاج في سيرفر تكتيك تبعي

لما أكتب بالشات تضهر ورتين الكتابة ليش؟

و شكرا

Link to comment
47 minutes ago, Hyper2 said:

شباب لما اشغل تاج في سيرفر تكتيك تبعي

لما أكتب بالشات تضهر ورتين الكتابة ليش؟

و شكرا

تأكد من اقفال مود الفريروم

او مو التكتبك حقك سوي فيه كود يمنع التكرار

Link to comment
3 hours ago, Hyper2 said:

قيم مود التكتيك مشفر مش فاهم منه اي شي

و الفريروم مقفول

اعتقد ان جيم مود التكتيك يكون به شات خاص به لهيك استعمل

getEventHandlers
removeEventHandler

 

Link to comment
50 minutes ago, Hyper2 said:

الأكواد دي احطها في مود التكتيك صح؟

شوي ملف في مود التكتيك

وعرفه في الميتا

 

وحط الأكواد ذي ان لما اللاعب يكتب بالشات

يسوي كنسل

Link to comment
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 by #َxLysandeR
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...