27.06.2012, 01:35
pawn Код:
command(mask, playerid, params[])
{
new number = (100 + random(899)), string[128];
masknumber[playerid] = number;
if(Player[playerid][Masked] == 0)
{
if(Player[playerid][Level] >= 6)
{
for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(i, playerid, false);
format(string, sizeof(string), "Stranger_%d", masknumber[playerid]);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 3.0);
ApplyAnimation(playerid, "goggles", "goggles_put_on", 4.1, 0, 1, 1, 0, 1, 1);
Player[playerid][Masked] = 1;
format(string, sizeof(string), "* Stranger_%d puts on their mask *", masknumber[playerid]);
NearByMessage(playerid, PINK, string);
}
else return SendClientMessage(playerid, GREY, "You must be level 6+ to use a Mask.");
}
else return SendClientMessage(playerid, GREY, "You are already masked.");
return 1;
}