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

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

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

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

/fc

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

jus21rus

Ученик
Здравствуйте,уважаемые пользователи pawno-info.ru
Решил выложить сюда команду /fc (( Включение цвета для каждой фракции ))

Вырезано из SG
​
В public OnPlayerCommandText(playerid, cmdtext[]) вставляем
PHP:
if(strcmp(cmd, "/fc", true) == 0)
	{
		if(IsPlayerConnected(playerid))
		{
			if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1) SetPlayerColor(playerid, 0x0000FF00); 
			if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2) SetPlayerColor(playerid, 0x80008000);
			if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3) SetPlayerColor(playerid, 0x00800000);
			if(PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pMember] == 4) SetPlayerColor(playerid, 0xFF000000);
			if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5) SetPlayerColor(playerid, 0xFF400000);
			if(PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6) SetPlayerColor(playerid, 0x80000000);
			if(PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 7) SetPlayerColor(playerid, 0xFF00BF00);
			if(PlayerInfo[playerid][pLeader] == 9 || PlayerInfo[playerid][pMember] == 9) SetPlayerColor(playerid, 0xFFFFBF00);
			if(PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 10) SetPlayerColor(playerid, 0xFFFF0000);
			if(PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 11) SetPlayerColor(playerid, 0x8080FF00);
			if(PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 12) SetPlayerColor(playerid, 0x8000FF00);
			if(PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 13) SetPlayerColor(playerid, 0xBFBF0000);
			if(PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pMember] == 14) SetPlayerColor(playerid, 0x00008000);
			if(PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 15) SetPlayerColor(playerid, 0x00FF0000);
			if(PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 16) SetPlayerColor(playerid, 0x00FFFF00);
			if(PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17) SetPlayerColor(playerid, 0x00808000);
			if(PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 18) SetPlayerColor(playerid, 0x80400000);
		}
		return true;
	}
0x0000FF00 - сам цвет,можете поменять его на свой.
Найти цвета можно через программу ColorPicker Tool
Ссылка на скачку
Прошу не писать "Было" "Копипаст" "Баян" etc. ибо видел всего 1 тему с этой командой.​
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу