Tokio Posted September 23, 2017 Share Posted September 23, 2017 (edited) this is the code: (not the full code): outputChatBox("#01AC41[SuperFun#aeaeae - Segítségkérés]#FFffFF A gondod#FFffFF: #01AC41"..helpkell..".", thePlayer, 0, 200, 0, true) outputChatBox("#01AC41[SuperFun#aeaeae - Segítségkérés]#FFffFF Ezt az üzenetet megkapták az adminok!", thePlayer, 0, 200, 0, true) local accName = getAccountName( getPlayerAccount( thePlayer ) ) if isObjectInACLGroup( "user."..accName, aclGetGroup( "Admin" ) ) then outputChatBox("#01AC41[SuperFun#aeaeae - Segítségkérés]#FFffFF "..pname.."#FFffFF: #01AC41"..helpkell, thePlayer, 0, 200, 0, true) end in the full script, when the player press 'u' and write anything, this output to player, and admins. but the admin output does not working, the player see the first 2 line, but admins not see the five line. how to fix? sorry for my bad english :c Edited September 23, 2017 by 50cent Link to comment
itHyperoX Posted September 23, 2017 Share Posted September 23, 2017 (edited) test this addCommandHandler("helpme",function(source,cmd,...) local message = table.concat({ ... }, " ") if #message > 0 then outputChatBox("A gondod: "..message,source) end for k,v in ipairs(getElementsByType("player")) do local accName = getAccountName(getPlayerAccount(v)) if isObjectInACLGroup( "user."..accName, aclGetGroup( "Admin" ) ) then outputChatBox("[Segítségkérelem]: (Játékos: "..getPlayerName(source)..") :"..message, v, 255, 255, 255, true) end end end) Edited September 23, 2017 by TheMOG 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