Dolinho Posted October 19, 2014 Share Posted October 19, 2014 Everyone can see the chat, however what I want is that the outputChatBox appear only for Admin, Admin and who is not not aperecia. I want to make a control accounts using the bank. I want to see everyone but he can not see. " outputChatBox visualization of all but only for admin" sorry bad inglesh. if getPlayerTeam(source) == getTeamFromName("Admin") then theName = getPlayerName ( source ) outputChatBox( "Info: Securit Acont Server Bank balance de: "..theName.." $ " .. tostring( playersAccount[ source ].balance ), root, 255, 255, 0 ) end Link to comment
manawydan Posted October 19, 2014 Share Posted October 19, 2014 try no tested if getPlayerTeam(source) == getTeamFromName("Admin") then local theName = getPlayerName ( source ) outputChatBox( "Info: Securit Acont Server Bank balance de: "..theName.." $ " .. tostring( playersAccount[ source ].balance ), getPlayersInTeam(getTeamFromName("Admin")), 255, 255, 0 ) end Link to comment
Dolinho Posted October 19, 2014 Author Share Posted October 19, 2014 I tried, but this is not working. There are other ways of doing work? Link to comment
n3wage Posted October 19, 2014 Share Posted October 19, 2014 for _,v in ipairs(getPlayersInTeam(getTeamFromName("Admin"))) do local theName = getPlayerName ( source ) outputChatBox( "Info: Securit Acont Server Bank balance de: "..theName.." $ " .. tostring( playersAccount[ source ].balance ), v, 255, 255, 0 ) end Link to comment
Dolinho Posted October 19, 2014 Author Share Posted October 19, 2014 Thank you very, very happy for the help He gave me a big relief 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