pawn Код:
public OnPlayerConnect(playerid)
{
new Text3D:label[MAX_PLAYERS];
new Float:X, Float:Y, Float:Z;
GetPlayerPos( playerid, X, Y, Z );
if(Informacion[playerid][Nivel] == 1)
{
label[playerid] = Create3DTextLabel("Administrador",0x008080FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
}
else if(Informacion[playerid][Nivel] == 2)
{
label[playerid] = Create3DTextLabel("Administrador",0x008080FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
}
else if(IsPlayerNPC(playerid))
{
new Text3D:Oficial = Create3DTextLabel("Guardia de Seguridad", 0x008080FF, 30.0, 30.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(Oficial, playerid, 0.0, 0.0, 0.7);
}
return 1;
}