Andrixx Posted January 27, 2013 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.
Castillo Posted January 27, 2013 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 ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Andrixx Posted January 27, 2013 Author Posted January 27, 2013 Exelente, muchas gracias de nuevo castillo, si me funciono
Castillo Posted January 27, 2013 Posted January 27, 2013 No hay de que. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts