Elcker Posted February 10, 2012 Posted February 10, 2012 Claro que es posible.... 1º podrias crear varios Gui´s y darles comandos diferentes para cada clan y comandos protegidos claro... 2º podrias crear un Gui de inicio para seleccionar el Gui a abrir
ghost050 Posted February 10, 2012 Posted February 10, 2012 Algo asi mira: team1 = createTeam... team2 = createTeam... ventana1 = guiCreateWindow... ventana2 = guiCreateWindow... addCommandHandler("abrir", function (playerSource) local team = getPlayerTeam(playerSource) if team then if team == team1 then guiSetVisible(ventana1 ,true) showCursor(true) elseif team == team2 then guiSetVisible(ventana2 ,true) showCursor(true) end end end )
-Gus- Posted February 10, 2012 Posted February 10, 2012 en vez de showCursor es mejor guiSetInputEnabled Scripts made by me: Killcam : http://forum.mtasa.com/viewtopic.php?f=108&t=46385 Positionsaver(Race-DM) http://community.mtasa.com/index.php?p=resources&s=details&id=3850
Soren Posted February 10, 2012 Author Posted February 10, 2012 Gracias a todos pero a eso no me refiero Modifique 2 shop scripts pero quiero que si estas en un team salga 1 y si estas en otro salga otro
Castillo Posted February 10, 2012 Posted February 10, 2012 Postea tus scripts. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
-Gus- Posted February 10, 2012 Posted February 10, 2012 tenes que poner una condicion, si el jugador esta en el team, entonces "triggerClientEvent" para abrir el gui y si esta en otro team, trigeas el evento pero de el otro gui... Scripts made by me: Killcam : http://forum.mtasa.com/viewtopic.php?f=108&t=46385 Positionsaver(Race-DM) http://community.mtasa.com/index.php?p=resources&s=details&id=3850
Soren Posted February 11, 2012 Author Posted February 11, 2012 tenes que poner una condicion, si el jugador esta en el team, entonces "triggerClientEvent" para abrir el gui y si esta en otro team, trigeas el evento pero de el otro gui... ok ya sirvio gracias gus
Recommended Posts