if(strcmp(cmd, "/noob", true) == 0 || strcmp(cmd, "/n", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new Admins;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] > 0)
{
Admins ++;
}
}
}
if(Admins < 1)
{
ShowInfoDialog(playerid,"Information","Diese Funktion ist zurzeit nicht möglich!");
return 1;
}
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, "{0033FF}INFO:{0033FF} Du bist noch nicht Eingeloggt!");
return 1;
}
if(PlayerInfo[playerid][pLevel] > 1 || PlayerInfo[playerid][pAdmin] == 0)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "{0033FF}INFO:{0033FF} Du bist kein Neuling!");
return 1;
}
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "{0033FF}INFO:{0033FF} Du bist gemutet!");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "NUTZUNG: (/n) [Neuling chat]");
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 1)
{
format(string, sizeof(string), "{99FF99}**(([NCHAT]Supporter %s: %s ))**{99FF99}", sendername, result);
}
if(PlayerInfo[playerid][pAdmin] == 2)
{
format(string, sizeof(string), "{99FF99}**(([NCHAT]Super Supporter %s: %s ))**{99FF99}", sendername, result);
}
else if(PlayerInfo[playerid][pAdmin] == 3)
{
format(string, sizeof(string), "{99FF99}**(([NCHAT]Moderator %s: %s ))**{99FF99}", sendername, result);
}
else if(PlayerInfo[playerid][pAdmin] == 4)
{
format(string, sizeof(string), "{99FF99}**(([NCHAT]Super Moderator %s: %s ))**{99FF99}", sendername, result);
}
else if(PlayerInfo[playerid][pAdmin] == 5)
{
format(string, sizeof(string), "{99FF99}**(([NCHAT]Administrator %s: %s ))**{99FF99}", sendername, result);
}
else if(PlayerInfo[playerid][pAdmin] == 6)
{
format(string, sizeof(string), "{99FF99}**(([NCHAT]Head-Admin %s: %s ))**{99FF99}", sendername, result);
}
else if(PlayerInfo[playerid][pAdmin] == 7)
{
format(string, sizeof(string), "{99FF99}**(([NCHAT]Projektleiter %s: %s ))**{99FF99}", sendername, result);
}
else if(PlayerInfo[playerid][pDonateRank] > 0)
{
format(string, sizeof(string), "{99FF99}**(([NCHAT]Premium %s: %s ))**{99FF99}", sendername, result);
}
else if(PlayerInfo[playerid][pLevel] == 1)
{
format(string, sizeof(string), "{99FF99}**(([NCHAT]Neuling %s: %s ))**{99FF99}", sendername, result);
}
else if(PlayerInfo[playerid][pLevel] > 1)
{
format(string, sizeof(string), "{99FF99}**(([NCHAT]Bürger %s: %s ))**{99FF99}", sendername, result);
}
else if(PlayerInfo[playerid][pAdmin] == 0 && (poooc))
{
format(string, sizeof(string), "{99FF99}**(([NCHAT] %s: %s ))**{99FF99}", sendername, result);
}
else return 1;
OOCOff(0xE0CA5EFF,string);
}
return 1;
}
Hallo,
Ich bin gerade an einem Noobchat am schreiben und habe das Problem wen ein Admin Über Level 1 ist kommt das er kein Neuling mehr ist.
Er sollte egal mit welchen Level in Noobchat schreiben können!
Vielen Dank ihm Vorraus!