Ich wollte ein 3D text über Admins einblenden lassen
aber aus welchen grund immer wird bei /aaa nichts angezeigt
if(strcmp(cmd,"/aaa",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] == 1339)
{
Owner = "ServerOwner";
SendClientMessage(playerid,COLOR_GREY,"ServerOwner");
ServerOwner[playerid] = Create3DTextLabel(Owner,0xB9FF00FF,0,0,0,70.5,1);
Attach3DTextLabelToPlayer(ServerOwner[playerid], playerid, 0.0, 0.0, 0.45);
}
if(PlayerInfo[playerid][pAdmin] == 1)
{
modd = "Moderator]";
SendClientMessage(playerid,COLOR_GREY,"Moderator");
Moderator[playerid] = Create3DTextLabel(modd,0xFFFF59FF,0,0,0,70.5,1);
Attach3DTextLabelToPlayer(Moderator[playerid], playerid, 0.0, 0.0, 0.45);
}
if(PlayerInfo[playerid][pAdmin] == 1337)
{
adm = "Administratorr";
SendClientMessage(playerid,COLOR_GREY,"Administratorr");
Administratorr[playerid] = Create3DTextLabel(adm,0xFFB000FF,0,0,0,70.5,1);
Attach3DTextLabelToPlayer(Administratorr[playerid], playerid, 0.0, 0.0, 0.45);
}
if(PlayerInfo[playerid][pAdmin] == 1338)
{
sup = "SuperAdmin";
SendClientMessage(playerid,COLOR_GREY,"SuperAdmin");
SuperAdmin[playerid] = Create3DTextLabel(sup,0xFF0000FF,0,0,0,70.5,1);
Attach3DTextLabelToPlayer(SuperAdmin[playerid], playerid, 0.0, 0.0, 0.45);
}
return 1;
}
new sup[MAX_PLAYER_NAME];
new Owner[MAX_PLAYER_NAME];
new modd[MAX_PLAYER_NAME];
new adm[MAX_PLAYER_NAME];
new Text3D:ServerOwner[MAX_PLAYERS];
new Text3D:SuperAdmin[MAX_PLAYERS];
new Text3D:Administratorr[MAX_PLAYERS];
new Text3D:Moderator[MAX_PLAYERS];