Jump to content

outputChatBox solo se mande a un team?


Andrixx

Recommended Posts

Hola.

Estaba complementando un script pero el mensaje se enviaba para todos.. y yo solo queria para un team, entonces...

¿como hago para que outputChatBox solo se mande a un team?

Server:

  
teamTaxistas = createTeam ( "Taxistas", 255, 255, 0 ) 
  
function taxiCommand ( thePlayer, command ) 
  taxiOphaalBlip = createBlipAttachedTo ( thePlayer, 48, 1, 255, 0, 0, 0, 0, 99999.0, getRootElement() ) 
  outputChatBox ("textoasdasd1.", thePlayer, 255, 190, 0, false ) 
  outputChatBox ("textoasdasd.",getTeamFromName("Taxistas",0,255,0,true)) 
end 
addCommandHandler ( "taxi", taxiCommand ) 

Como lo haria?

Gracias.

Link to comment
teamTaxistas = createTeam ( "Taxistas", 255, 255, 0 ) 
  
function taxiCommand ( thePlayer, command ) 
    taxiOphaalBlip = createBlipAttachedTo ( thePlayer, 48, 1, 255, 0, 0, 0, 0, 99999.0, getRootElement() ) 
    outputChatBox ("textoasdasd1.", thePlayer, 255, 190, 0, false ) 
    for _, player in ipairs ( getPlayersInTeam ( teamTaxistas ) ) do 
        outputChatBox ("textoasdasd.",player,0,255,0,true) 
    end 
end 
addCommandHandler ( "taxi", taxiCommand ) 

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...