19.03.2012, 04:08
pawn Код:
new Text3D:Equipo[MAX_PLAYERS];
new string [128];
public OnPlayerConnect(playerid)
{
Update3DTextLabelText(Equipo[playerid], 0x008080FF, string); //Actualiza un texto 3D texto de la etiqueta y el color
format(string, sizeof(string), "Entro al Server");
Equipo[playerid] = CreatePlayer3DTextLabel(string, 0x008080FF, 30.0, 40.0, 5.0, 40.0, 1); //Crear una etiqueta de texto en 3D para uno de los jugadores.
Attach3DTextLabelToPlayer(Equipo[playerid], playerid, 0.0, 0.0, 1.1); //Coloca una etiqueta de texto en 3D para el jugador.
return 1;
}
public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == TEAM_1)
{
Update3DTextLabelText(Equipo[playerid], 0x008080FF, string); //Actualiza un texto 3D texto de la etiqueta y el color
format(string, sizeof(string), "Equipo 1");
Equipo[playerid] = CreatePlayer3DTextLabel(string, 0x008080FF, 30.0, 40.0, 5.0, 40.0, 1); //Crear una etiqueta de texto en 3D para uno de los jugadores.
Attach3DTextLabelToPlayer(Equipo[playerid], playerid, 0.0, 0.0, 1.1); //Coloca una etiqueta de texto en 3D para el jugador.
}
if(gTeam[playerid] == TEAM_2)
{
Update3DTextLabelText(Equipo[playerid], 0x008080FF, string); //Actualiza un texto 3D texto de la etiqueta y el color
format(string, sizeof(string), "Equipo 2");
Equipo[playerid] = CreatePlayer3DTextLabel(string, 0x008080FF, 30.0, 40.0, 5.0, 40.0, 1); //Crear una etiqueta de texto en 3D para uno de los jugadores.
Attach3DTextLabelToPlayer(Equipo[playerid], playerid, 0.0, 0.0, 1.1); //Coloca una etiqueta de texto en 3D para el jugador.
}
return 1;
}