Jump to content

Admin Tag & Team-Tag


itsbaudi

Recommended Posts

Hi, somebody know why my script don´t work 

I was create a script for the chat 

This is the script 

If somebody can help me Thanks!

I want to make a script for the chat that has the function on admin-tag & team tag

 

function Tags (mensaje, tipo)
    local cuenta = getAccountName(getPlayerAccount(source))
	local nombre = getPlayerName(source)
	local rojo, verde, azul = getPlayerNametagColor(source)
	local playerTeam = getPlayerTeam(source)

	if playerTeam,isObjectInACLGroup("user."..cuenta, aclGetGroup("Admin")) then
	    cancelEvent()
		local r, g, b = getPlayerNametagColor(source)
		outputChatBox("[Dueño] "..getPlayerName(source)..": #FFFFFF"..getPlayerNametagColor(source)..message, root, rojo, verde, azul, true )
		outputServerLog("[^Admin^] "..nombre..": "..mensaje)

Link to comment
function Tags (mensaje, tipo)
    local cuenta = getAccountName(getPlayerAccount(source))
	local nombre = getPlayerName(source)
	local rojo, verde, azul = getPlayerNametagColor(source)
	local playerTeam = getPlayerTeam(source)
    local teamName = getTeamName(playerTeam)

	if teamName == your team name here and isObjectInACLGroup("user."..cuenta, aclGetGroup("Admin")) then
	    cancelEvent()
		local r, g, b = getPlayerNametagColor(source)
		outputChatBox("[Dueño] "..getPlayerName(source)..": #FFFFFF"..getPlayerNametagColor(source)..message, root, rojo, verde, azul, true )
		outputServerLog("[^Admin^] "..nombre..": "..mensaje)

 

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