ocmd:admins(playerid,params[])
{
new longstr[1024];
format(longstr,sizeof(longstr),"Folgende Admins sind online:\n");
for (new i = 0; i<MAX_PLAYERS; i++)
{
if(GetPVarInt(i,"Eingeloggt") == 1)
{
if(GetPVarInt(i,"Adminlevel") == 9)
{
format(longstr,sizeof(longstr),"%s\nServerOwner: %s",longstr,SpielerName(i));
}
if(GetPVarInt(i,"Adminlevel") == 8)
{
format(longstr,sizeof(longstr),"%s\nTechnicker: %s",longstr,SpielerName(i));
}
if(GetPVarInt(i,"Adminlevel") == 7)
{
format(longstr,sizeof(longstr),"%s\nServerManager: %s",longstr,SpielerName(i));
}
if(GetPVarInt(i,"Adminlevel") == 6)
{
format(longstr,sizeof(longstr),"%s\nCommunityManager: %s",longstr,SpielerName(i));
}
if(GetPVarInt(i,"Adminlevel") == 5)
{
format(longstr,sizeof(longstr),"%s\nSuperAdmin: %s",longstr,SpielerName(i));
}
if(GetPVarInt(i,"Adminlevel") == 4)
{
format(longstr,sizeof(longstr),"%s\nAdministrator: %s",longstr,SpielerName(i));
}
if(GetPVarInt(i,"Adminlevel") == 3)
{
format(longstr,sizeof(longstr),"%s\nModerator: %s",longstr,SpielerName(i));
}
if(GetPVarInt(i,"Adminlevel") == 2)
{
format(longstr,sizeof(longstr),"%s\nSupporter: %s",longstr,SpielerName(i));
}
if(GetPVarInt(i,"Adminlevel") == 1)
{
format(longstr,sizeof(longstr),"%s\nProbeSupporter: %s",longstr,SpielerName(i));
}
}
}
ShowPlayerDialog(playerid,DIALOG_INFO,DIALOG_STYLE_MSGBOX,"Admins",longstr,"OK","");
return 1;
}
Wie kann ich mich unsichtbar machen ???
ich denke so oder ?
Hier mal ein Beispiel
So muss es doch gehen oder ?
if(GetPVarInt(i,"Adminlevel") == 1)
{
if(willgesehenwerden==0)
{
format(longstr,sizeof(longstr),"%s\nProbeSupporter: %s",longstr,SpielerName(i));
}
else
{
format(longstr,sizeof(longstr),"",longstr,SpielerName(i));
}
}
jetzt noch der Befehl
ocmd:noshowme(playerid,params[])
{
wilgesehenwerden=1;
return 1;
}