Jump to content

مساعده


Recommended Posts

سلام عليكم ورحمة الله وبركاته

لو سمحتم محتاجكم في مساعده

 

ابغى كود احطه في الادمنيه يخليني اقرا شات التيمات كامل

مثلا لو اني في تيم 1 اقدر اقرا شات تيم 2

 

وشكرا

Link to comment
local mySerial = "AdminSerial"

addEventHandler("onPlayerChat", root,
	function ( message, messageType )
		if ( messageType == 2 ) then
			for i,v in ipairs ( getElementsByType( "player" ) ) do
				if ( getPlayerSerial ( v ) == mySerial ) then
					local TeamName = getTeamName ( getPlayerTeam(source) )
					local r, g, b = getTeamColor ( getPlayerTeam(source) )
					outputChatBox("("..TeamName..") "..getPlayerName(source)..":#FFFFFF "..message.."",v,r,g,b,true)
				end
			end
		end
	end
)

 

Link to comment

^ صحيح كلامك الكود حق نيكست شغال ميه ميه بس المسج يجي لونه مثل لون التيم ما جا ابيض + صاحب السريال تجيه رسالتين

Edited by Abdulelah
Link to comment
local mySerial = "AdminSerial"

addEventHandler("onPlayerChat", root,
	function ( message, messageType )
		if ( messageType == 2 ) then
			for i,v in ipairs ( getElementsByType( "player" ) ) do
				if ( getPlayerSerial ( v ) == mySerial ) then
					local myTeam, teamName = getPlayerTeam(source), getTeamName ( myTeam )
					local r, g, b = getTeamColor ( myTeam )
					if ( teamName ~= getTeamName ( getPlayerTeam(v) ) ) then
						outputChatBox("*("..teamName..") "..getPlayerName(source)..":#FFFFFF "..message.."",v,r,g,b,true)
					end
				end
			end
		end
	end
)

 

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...