16.12.2009, 23:45
I'm having a problem with this code,it shows the player's name!
Is there another way to hide it? is it still working on 0.3?
Thank you.
Is there another way to hide it? is it still working on 0.3?
pawn Код:
if(strcmp(cmd, "/maskon", true) == 0) // by Ellis
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMask] == 0)
{
SendClientMessage(playerid, COLOR_GRAD1, " You don't have a mask");
return 1;
}
if(PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_GRAD1, " You can't use it.");
return 1;
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(playerid,i, 0);
}
}
PlayerInfo[playerid][pMaskuse] = 1;
SendClientMessage(playerid, COLOR_WHITE, " You have put your mask on [/maskoff to put it away].");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s puts a mask on.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
return 1;
}