Was ist Falsch? trotz /maske wird man nicht unbekannt.
Befehl:
if(strcmp(cmdtext, "/maske", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21 || PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{
if(Maske[playerid] == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(i, playerid, 1);
Maske[playerid] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Du hast deine Maske abgenommen.");
}
else if(Maske[playerid] == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(i, playerid, 0);
Maske[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Du hast deine Maske aufgesetzt.");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Du kannst keine Maske aufsetzen!");
}
return 1;
}
Unbekannt:
Function OnPlayerText(playerid, text[])
{
if(Maske[playerid] >= 1)
{
new string[128], text[64];
format(string,sizeof(string),"Unbekannt:%s",text);
}