Hallo..
Wenn man /mask eingibt sieht man den Namen immer noch..
Woran liegts?
CMD:
SQL
if(strcmp(cmd, "/mask", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(mask[playerid]==0)
{
if(PlayerInfo[playerid][pMember] == 8||PlayerInfo[playerid][pLeader] == 8)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(playerid, playerid, 0);
}
}
SendClientMessage(playerid, COLOR_WHITE, " Du setzt deine Maske auf!");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s setzt sich eine Maske auf!", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
mask[playerid] = 1;
}
else
{
SendClientMessage(playerid,COLOR_GRAD2,"Du bist kein Hitman!");
}
}
else if(mask[playerid]==1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(playerid, playerid, 1);
}
}
SendClientMessage(playerid, COLOR_WHITE, "Du hast deine Maske abgesetzt!");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s nimmt seine Maske ab!", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
mask[playerid] = 0;
}
}
return 1;
}
Alles anzeigen