Lalalu Posted September 10, 2019 Share Posted September 10, 2019 Hola, cree un marker que muestra una ventana GUI sólo a un Team en específico, el problema es que si activo el script y no estoy en el team y me seteo debo reiniciar el script nuevamente para que compruebe que si estoy en el team, no hay alguna forma para detectar cuando el jugador cambie de team? O algo para que cuando este este en otro team y se setee al team del marker este reconozca que está en el team sin reiniciar el script, no se si me di a entender Link to comment
alex17" Posted September 10, 2019 Share Posted September 10, 2019 (edited) 3 hours ago, Lalalu said: Hola, cree un marker que muestra una ventana GUI sólo a un Team en específico, el problema es que si activo el script y no estoy en el team y me seteo debo reiniciar el script nuevamente para que compruebe que si estoy en el team, no hay alguna forma para detectar cuando el jugador cambie de team? O algo para que cuando este este en otro team y se setee al team del marker este reconozca que está en el team sin reiniciar el script, no se si me di a entender local team = "Admin" function MarkerHit ( hitPlayer) local pteam = getPlayerTeam(hitPlayer) local nteam = getTeamName(pteam) if nteam == team then --- --- --- --- --- end end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) Edited September 10, 2019 by alex17" Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now