Also immer wenn ich /maskon mache dann ist mein name für 1 Sekunde weg, und ist dann wieder da..
BITTE UM HILFE!!!
if(strcmp(cmd, "/maskon", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
{
SetNameTagDrawDistance(0.0);
PlayerInfo[playerid][pMaskuse] = 1;
SendClientMessage(playerid, COLOR_WHITE, " Du ziehst deine Maske auf [/maskoff um sie wieder aus zu ziehen].");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s zieht seine Maske auf.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
maskiert = Create3DTextLabel("Maskiert",0x00FF00FF,0,0,0,70.5,1);
Attach3DTextLabelToPlayer(maskiert, playerid, 0.0, 0.0, 0.45);
for(new i = 0; i < MAX_PLAYERS; i++)
{
for(new f = 0; f < MAX_PLAYERS; f++)
{
ShowPlayerNameTagForPlayer(f, i, false);
}
}
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/maskoff", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
{
SetNameTagDrawDistance(20.0);
PlayerInfo[playerid][pMaskuse] = 0;
SendClientMessage(playerid, COLOR_WHITE, "Du ziehst deine Maske aus [/maskon um sie wieder an zu ziehen].");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s zieht seine Maske aus.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
Delete3DTextLabel(maskiert);
for(new i = 0; i < MAX_PLAYERS; i++)
{
for(new f = 0; f < MAX_PLAYERS; f++)
{
ShowPlayerNameTagForPlayer(f, i, true);
}
}
return 1;
}
}
return 1;
}