Hier mal ein Beispiel , das aber unter public onplayerlogin !
if (PlayerInfo[playerid][pAdmin] == 1 ||PlayerInfo[playerid][pAdmin] == 2 || PlayerInfo[playerid][pAdmin] == 3) // Von dem Adminrang 1-1338 wird das 3D angezeigt
{
new GMTEXT1[MAX_PLAYER_NAME];
if (PlayerInfo[playerid][pSex] == 1)
GMTEXT1 = "Supporter";
else if (PlayerInfo[playerid][pSex] == 2)
GMTEXT1 = "Supporterin";
ADMIN1[playerid] = Create3DTextLabel(GMTEXT1,0x779529FF,0,0,0,70.5,1);
Attach3DTextLabelToPlayer(ADMIN1[playerid], playerid, 0.0, 0.0, 0.45);
}
else if (PlayerInfo[playerid][pAdmin] == 4) // Von dem Adminrang 1-1338 wird das 3D angezeigt
{
new GMTEXT2[MAX_PLAYER_NAME];
if (PlayerInfo[playerid][pSex] == 1)
GMTEXT2 = "Administrator";
else if (PlayerInfo[playerid][pSex] == 2)
GMTEXT2 = "Administratorin";
ADMIN2[playerid] = Create3DTextLabel(GMTEXT2,0x46A7BFFF,0,0,0,70.5,1);
Attach3DTextLabelToPlayer(ADMIN2[playerid], playerid, 0.0, 0.0, 0.45);
}
else if (PlayerInfo[playerid][pAdmin] == 1337 || PlayerInfo[playerid][pAdmin] == 1338)
{
new GMTEXT3[MAX_PLAYER_NAME];
if (PlayerInfo[playerid][pSex] == 1)
GMTEXT3 = "SuperAdministrator";
else if (PlayerInfo[playerid][pSex] == 2)
GMTEXT3 = "SuperAdministratorin";
ADMIN3[playerid] = Create3DTextLabel(GMTEXT3,0xC3BE0EFF,0,0,0,70.5,0);
Attach3DTextLabelToPlayer(ADMIN3[playerid], playerid, 0.0, 0.0, 0.45);
}
else if (PlayerInfo[playerid][pAdmin] == 1350) //
{
new GMTEXT4[MAX_PLAYER_NAME];
if (PlayerInfo[playerid][pSex] == 1)
GMTEXT4 = "Server Manager";
else if (PlayerInfo[playerid][pSex] == 2)
GMTEXT4 = "Server Managerin";
ADMIN4[playerid] = Create3DTextLabel(GMTEXT4,0xC3BE0EFF,0,0,0,70.5,1);
Attach3DTextLabelToPlayer(ADMIN4[playerid], playerid, 0.0, 0.0, 0.45);
}