Abdulelah Posted June 11, 2018 Share Posted June 11, 2018 سلام عليكم ورحمة الله وبركاته لو سمحتم محتاجكم في مساعده ابغى كود احطه في الادمنيه يخليني اقرا شات التيمات كامل مثلا لو اني في تيم 1 اقدر اقرا شات تيم 2 وشكرا Link to comment
N3xT Posted June 12, 2018 Share Posted June 12, 2018 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
#Bangladsh Posted June 12, 2018 Share Posted June 12, 2018 ^ الافضل انك تسوي تحقق ان الرسالة الي جات من التيم ان صاحب السيريال مايكون فيه عشان ماتجي رسالتين . Link to comment
Abdulelah Posted June 12, 2018 Author Share Posted June 12, 2018 (edited) ^ صحيح كلامك الكود حق نيكست شغال ميه ميه بس المسج يجي لونه مثل لون التيم ما جا ابيض + صاحب السريال تجيه رسالتين Edited June 12, 2018 by Abdulelah Link to comment
N3xT Posted June 12, 2018 Share Posted June 12, 2018 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
Abdul KariM Posted June 12, 2018 Share Posted June 12, 2018 @N3xT يكون افضل break لو تضيف على كودك 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