28.09.2010, 13:09
Alright, I was able to make it work, but there is a bug, when people use the mask, and a player logs in the mask won't work, the user who uses the mask will have to use /mask again to cover his Tagname.
How can I add it ?
This is my command :
How can I add it ?
This is my command :
PHP код:
if(strcmp(cmdtext,"/mask",true) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
ShowPlayerNameTagForPlayer(i,playerid,0);
if(Mask == 0)return SendClientMessage(playerid,0xFF6C6CFF,"You don't have a mask !");
DisableNameTagLOS();
GameTextForPlayer(playerid, "~W~You have put mask ~g~ on", 5000, 5);
return 1;
}