Jump to content

Marker Team


Lalalu

Recommended Posts

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
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 by alex17"
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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