08.10.2013, 17:04
pawn Код:
CMD:mask(playerid)
{
if(Masked[playerid] == 0)
{
Masked[playerid] = 1;
for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(i, playerid, 0);
ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0);
SetPlayerAttachedObject(playerid, 1, 19037, 2, 10, 4.7, 0.0, 90, 90, 0);
}
SendClientMessage(playerid, COLOR_LIGHTGREEN, "You put your Mask on!");
return 1;
}
else if(Masked[playerid] == 1)
{
Masked[playerid] = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(i, playerid, 1);
}
SendClientMessage(playerid, COLOR_LIGHTGREEN, "You took your Mask off!");
return 1;
}
return 1;
}