Jump to content

[HELP] How to fix this problem in my script?


Tokio

Recommended Posts

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. :S how to fix?

sorry for my bad english :c

Edited by 50cent
Link to comment

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