08.02.2013, 15:23
pawn Код:
CMD:mask(playerid, params[])
{
if(maskid[playerid] == 0)
{
maskid[playerid] = 1;
SendClientMessage(playerid, COLOR_WHITE, "You have put on a mask! (/mask again to remove it)");
for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(i, playerid, 0);
}
}
else if(maskid[playerid] == 1)
{
maskid[playerid] = 0;
SendClientMessage(playerid, COLOR_WHITE, "You have removed your mask!");
for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(i, playerid, 1);
}
}
return 1;
}