Basic admin essentials help

hello! is there any way to send a PM to a specific set of people (people in the same team as the executor) thanks!

i believe you’d use :pm %team (message)

let me know if this works!

No like I mean in a script, like when a command is run the people in the team get it. the command runs a hint that is meant to go to the executors team members.

Yes there is a way, but this scripting support channel isn’t for feeding but for getting help.

Yes I just need help with it, I already have the script and all I just need the hint to send to the team members.

Event:FireClient((I NEED THIS PART), "Hint", "Message", "Message", {})
1 Like

Have you tried looking in the plugins examples?

1 Like

Yes, I’ve looked everywhere

Can you send me a plugins example?



	local Data = {...}

	-- Included Functions and Info
	local Event = Data[1][1]
	local Prefix = Data[1][5]
	local returnPermissions = Data[1][3]
	local ReturnPlayers = Data[1][7]

	-- Plugin Configuration
	local pluginName = "dm"
	local pluginPrefix = ":"
	local pluginLevel = 1
	local pluginUsage = "<Message>"
	local pluginDescription = "Sends a message to your team members."
	
	local function pluginFunction(Args)
		local Player = Args[1]
			
		if Args[3] then 
			Event:FireClient(Player, 'Message', 'Verde Assistant', Args[3])
		else
			Event:FireClient(Player, "Hint", "Error", "No message to send.", {})
		end
		end
			
	-- Return Everything to the MainModule
	local descToReturn = pluginUsage == "" and pluginPrefix .. pluginName .. "\n" .. pluginDescription or pluginPrefix .. pluginName .. " " .. pluginUsage .. "\n" .. pluginDescription

	return pluginName, pluginFunction, pluginLevel, pluginPrefix, {pluginName, pluginUsage, pluginDescription}
end

return Plugin ```

I think this part will be custom to who you’re trying to send the hint to.

its meant to be all the team members of the team that the executor is in

Show me all of your code please


	-- Included Functions and Info
	local Event = Data[1][1]
	local Prefix = Data[1][5]
	local returnPermissions = Data[1][3]
	local ReturnPlayers = Data[1][7]

	-- Plugin Configuration
	local pluginName = "dm"
	local pluginPrefix = ":"
	local pluginLevel = 1
	local pluginUsage = "<Message>"
	local pluginDescription = "Sends a message to your team members."
	
	local function pluginFunction(Args)
		local Player = Args[1]
			
		if Args[3] then 
			Event:FireClient(Player, 'Message', 'Verde Assistant', Args[3])
		else
			Event:FireClient(Player, "Hint", "Error", "No message to send.", {})
		end
		end
			
	-- Return Everything to the MainModule
	local descToReturn = pluginUsage == "" and pluginPrefix .. pluginName .. "\n" .. pluginDescription or pluginPrefix .. pluginName .. " " .. pluginUsage .. "\n" .. pluginDescription

	return pluginName, pluginFunction, pluginLevel, pluginPrefix, {pluginName, pluginUsage, pluginDescription}
end

return Plugin ```

Couldn’t you use :pm ?

No since it would be a message. not a PM

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.