Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

Как сделать так, чтобы объект маски давался после анимации?

Статус
В этой теме нельзя размещать новые ответы.

Maks_Fender

Компетентный
Как сделать так, чтобы сначала выполнялась анимация, а потом давалась маска?
PHP:
else if(strcmp(cmd, "/mask", true) == 0)
	{
		if(IsPlayerConnected(playerid))
		{
			if(IsAGang(playerid))
			{
				if(mask[playerid] == 0)
				{
					switch(PINFO[playerid][pMember])
					{
						case 12:
						{
							SetPlayerAttachedObject(playerid, 6, 18915, 2, 0.1, 0.03, -0.005, 90.0, 180.0, 90.0);
							mask[playerid] = 1;
							SetPlayerToTeamColor(playerid);
							format(string,sizeof(string), "надел(а) бандану");
							SetPlayerChatBubble(playerid,string,COLOR_PURPLE,30.0,10000);
							format(string, sizeof(string), "%s надел(а) бандану", GN(playerid));
							ApplyAnimation( playerid, "SHOP", "ROB_shifty", 4.1, 0, 1, 1, 0, 0);
							ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
							usegruz[playerid] = 1;
							return 1;
						}
						case 13:
						{
							SetPlayerAttachedObject(playerid, 6, 18916, 2, 0.1, 0.03, -0.005, 90.0, 180.0, 90.0);
							mask[playerid] = 1;
							SetPlayerToTeamColor(playerid);
							format(string,sizeof(string), "надел(а) бандану");
							SetPlayerChatBubble(playerid,string,COLOR_PURPLE,30.0,10000);
							format(string, sizeof(string), "%s надел(а) бандану", GN(playerid));
							ApplyAnimation( playerid, "SHOP", "ROB_shifty", 4.1, 0, 1, 1, 0, 0);
							ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
							usegruz[playerid] = 1;
							return 1;
						}
						case 18:
						{
							SetPlayerAttachedObject(playerid, 6, 18917, 2, 0.1, 0.03, -0.005, 90.0, 180.0, 90.0);
							mask[playerid] = 1;
							SetPlayerToTeamColor(playerid);
							format(string,sizeof(string), "надел(а) бандану");
							SetPlayerChatBubble(playerid,string,COLOR_PURPLE,30.0,10000);
							format(string, sizeof(string), "%s надел(а) бандану", GN(playerid));
							ApplyAnimation( playerid, "SHOP", "ROB_shifty", 4.1, 0, 1, 1, 0, 0);
							ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
							usegruz[playerid] = 1;
							return 1;
						}
						case 15:
						{
							SetPlayerAttachedObject(playerid, 6, 18918, 2, 0.1, 0.03, -0.005, 90.0, 180.0, 90.0);
							mask[playerid] = 1;
							SetPlayerToTeamColor(playerid);
							format(string,sizeof(string), "надел(а) бандану");
							SetPlayerChatBubble(playerid,string,COLOR_PURPLE,30.0,10000);
							format(string, sizeof(string), "%s надел(а) бандану", GN(playerid));
							ApplyAnimation( playerid, "SHOP", "ROB_shifty", 4.1, 0, 1, 1, 0, 0);
							ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
							usegruz[playerid] = 1;
							return 1;
						}
					}
					SetPlayerAttachedObject(playerid, 6, 18912, 2, 0.1, 0.03, -0.005, 90.0, 180.0, 90.0);
					mask[playerid] = 1;
					SetPlayerToTeamColor(playerid);
					format(string,sizeof(string), "надел(а) бандану");
					SetPlayerChatBubble(playerid,string,COLOR_PURPLE,30.0,10000);
					format(string, sizeof(string), "%s надел(а) бандану", GN(playerid));
					ApplyAnimation( playerid, "SHOP", "ROB_shifty", 4.1, 0, 1, 1, 0, 0);
					ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					usegruz[playerid] = 1;
				}
				else
				{
					if(IsPlayerAttachedObjectSlotUsed(playerid, 6)) RemovePlayerAttachedObject(playerid, 6);
					mask[playerid] = 0;
					SetPlayerColor(playerid, TEAM_HIT_COLOR);
					format(string,sizeof(string), "снял(а) бандану");
					SetPlayerChatBubble(playerid,string,COLOR_PURPLE,30.0,10000);
					format(string, sizeof(string), "%s снял(а) бандану", GN(playerid));
					ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					usegruz[playerid] = 0;
				}
			}
		}
		return 1;
	}
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу