Andrixx Posted January 27, 2013 Share Posted January 27, 2013 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
Castillo Posted January 27, 2013 Share Posted January 27, 2013 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
Andrixx Posted January 27, 2013 Author Share Posted January 27, 2013 Exelente, muchas gracias de nuevo castillo, si me funciono Link to comment
Recommended Posts