shape1
shape2
shape3
shape4
shape7
shape8

Ошибка 017 .


Mikky

Новичок
Пользователь
15.03.2015
50
0
0
В общем, скачал мод в жанре РПГ и мод вроде бы понравился и был очень даже ничего. Но всё испортила команда /invite . После того как лидер какой-нибудь фракции прописывает команду /invite id - то сервер не даёт запроса игроку на согласие для вступления в ту или иную фракцию, а сразу его берёт во фракцию. Соответственно, в таком сервере лидеры будут тупо издеваться над игроками.

В поисках решения наткнулся на 1 форум и там нашёл тему с решением моей проблемы, один человек написал свой код команды /invite и сказал адаптировать эту команду под свой мод.
8An37JdhnEP8rO.jpg
Я заменил свой код в павно на его и в итоге - вылезли 4 Error,а. 

Код:
C:\Users\Èëüøàò\Desktop\Orion\gamemodes\SkyLine.pwn(8957) : warning 204: symbol is assigned a value that is never used: "coin"
C:\Users\Èëüøàò\Desktop\Orion\gamemodes\SkyLine.pwn(25327) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Èëüøàò\Desktop\Orion\gamemodes\SkyLine.pwn(25382) : error 017: undefined symbol "PlayerInvite"
C:\Users\Èëüøàò\Desktop\Orion\gamemodes\SkyLine.pwn(25382) : warning 215: expression has no effect
C:\Users\Èëüøàò\Desktop\Orion\gamemodes\SkyLine.pwn(25382) : error 001: expected token: ";", but found "]"
C:\Users\Èëüøàò\Desktop\Orion\gamemodes\SkyLine.pwn(25382) : error 029: invalid expression, assumed zero
C:\Users\Èëüøàò\Desktop\Orion\gamemodes\SkyLine.pwn(25382) : fatal error 107: too many error messages on one line


Compilation aborted.Pawn compiler 3.2.3664     Copyright (c) 1997-2006, ITB CompuPhase




4 Errors.
 
Все они были из-за 1 строки, из-за этой - PlayerInvite[para1] = PlayerInfo[playerid][pLeader];
 
Посоветовали сунуть в начало мода новую переменную, вставил в начало new PlayerInvite и только больше ошибок вылезло(видать программист из меня плохой).Прошу помочь, я думаю вы с этой ошибкой уже давно знакомы и знаете как её убирать.
 
Последнее редактирование модератором:

Kostyaev

Магистр
Пользователь
19.07.2014
1 123
274
0
23
Держи команду,подгонишь под свой мод:

Код:
if(strcmp(cmd, "/invite", true) == 0)
	{
		if(IsPlayerConnected(playerid))
		{
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, ".:используй:.: /invite [playerid/PartOfName]");
				return 1;
			}
			new para1;
			new ftext[50];
			para1 = ReturnUser(tmp);
			if (PlayerInfo[playerid][pLeader] >= 1)
			{
				if(IsPlayerConnected(para1))
				{
					if(para1 != INVALID_PLAYER_ID)
					{
						if (PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pLeader] == 0)
						{
							if(PlayerInfo[playerid][pLeader] == 1) { ftext = "ДПС"; }
							else if(PlayerInfo[playerid][pLeader] == 2) { ftext = "ФСБ"; /*ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }*/}
							else if(PlayerInfo[playerid][pLeader] == 3) { ftext = "Армия"; /*ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }*/}
							else if(PlayerInfo[playerid][pLeader] == 4) { ftext = "Министр Здравохранение"; /*ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); }*/}
							else if(PlayerInfo[playerid][pLeader] == 5) { ftext = "La Cosa Nostra"; /*ChosenSkin[para1] = 258; SetPlayerSkin(para1, 258); }*/}
							else if(PlayerInfo[playerid][pLeader] == 6) { ftext = "РЖД"; /*ChosenSkin[para1] = 120; SetPlayerSkin(para1, 120); }*/}
							else if(PlayerInfo[playerid][pLeader] == 7) { ftext = "Правительство"; /*ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59); }*/}
							else if(PlayerInfo[playerid][pLeader] == 8) { ftext = "Зона"; /*ChosenSkin[para1] = 127; SetPlayerSkin(para1, 127); }*/}
							else if(PlayerInfo[playerid][pLeader] == 9) { ftext = "Репортеры"; /*ChosenSkin[para1] = 148; SetPlayerSkin(para1, 148); }*/}
							else if(PlayerInfo[playerid][pLeader] == 10) { ftext = "ТМК Форсаж"; /*ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59); }*/}
							else if(PlayerInfo[playerid][pLeader] == 11) { ftext = "Автошкола"; /*ChosenSkin[para1] = 102; SetPlayerSkin(para1, 102); }*/}
							else if(PlayerInfo[playerid][pLeader] == 12) { ftext = "Итальяянская мафия"; /*ChosenSkin[para1] = 105; SetPlayerSkin(para1, 105); }*/}
							else if(PlayerInfo[playerid][pLeader] == 13) { ftext = "Бродяги"; /*ChosenSkin[para1] = 108; SetPlayerSkin(para1, 108); }*/}
							else if(PlayerInfo[playerid][pLeader] == 14) { ftext = "Пожарная инспекция"; /*ChosenSkin[para1] = 116; SetPlayerSkin(para1, 116); }*/}
							else if(PlayerInfo[playerid][pLeader] == 15) { ftext = "Русская мафия"; /*ChosenSkin[para1] = 174; SetPlayerSkin(para1, 174); }*/}
							else if(PlayerInfo[playerid][pLeader] == 16) { ftext = "Гопники"; /*ChosenSkin[para1] = 126; SetPlayerSkin(para1, 126); }*/}
							else if(PlayerInfo[playerid][pLeader] == 17) { ftext = "Уличные гонщеки"; /*ChosenSkin[para1] = 248; SetPlayerSkin(para1, 248); }*/}
							else if(PlayerInfo[playerid][pLeader] == 18) { ftext = "Прокуратура"; /*ChosenSkin[para1] = 285; SetPlayerSkin(para1, 285); }*/}
							else if(PlayerInfo[playerid][pLeader] == 19) { ftext = "Батыревская Братва"; /*ChosenSkin[para1] = 249; SetPlayerSkin(para1, 249); }*/}
							else if(PlayerInfo[playerid][pLeader] == 20) { ftext = "ППС"; /*ChosenSkin[para1] = 120; SetPlayerSkin(para1, 120); }*/}
							else if(PlayerInfo[playerid][pLeader] == 21) { ftext = "Южная Братва"; /*ChosenSkin[para1] = 143; SetPlayerSkin(para1, 143); }*/}
							else if(PlayerInfo[playerid][pLeader] == 22) { ftext = "Автобусное предприятие"; /*ChosenSkin[para1] = 143; SetPlayerSkin(para1, 143); }*/}
							else if(PlayerInfo[playerid][pLeader] == 23) { ftext = "Спецназ"; /*ChosenSkin[para1] = 143; SetPlayerSkin(para1, 143); }*/}
							else if(PlayerInfo[playerid][pLeader] == 24) { ftext = "Летчики"; /*ChosenSkin[para1] = 143; SetPlayerSkin(para1, 143); }*/}
							else if(PlayerInfo[playerid][pLeader] == 25) { ftext = "Тачка на прокачку"; /*ChosenSkin[para1] = 143; SetPlayerSkin(para1, 143); }*/}
							else { return 1; }
							GetPlayerName(para1, giveplayer, sizeof(giveplayer));
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string,sizeof(string),"__________________Пригглашение_________________ \nВас приглашают вступить во фракцию %s\n______________________________________",ftext);
							ShowPlayerDialog(para1,657,DIALOG_STYLE_MSGBOX,"Приглашение",string,"Согласен","Отказать");
							format(string, sizeof(string), "Игрок %s принял ваше предложение.(%s).", giveplayer,ftext);
							SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
							pInvite[para1] = playerid;
						}
						else
						{
							SendClientMessage(playerid, COLOR_GREY, "Игрок уже состоит в организации");
							return 1;
						}
					}
				}//not connected
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "Команда доступна только лидерам!");
			}
		}
		return 1;
	}
 

Mikky

Новичок
Пользователь
15.03.2015
50
0
0
Держи команду,подгонишь под свой мод:

if(strcmp(cmd, "/invite", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, ".:используй:.: /invite [playerid/PartOfName]");
return 1;
}
new para1;
new ftext[50];
para1 = ReturnUser(tmp);
if (PlayerInfo[playerid][pLeader] >= 1)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
if (PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pLeader] == 0)
{
if(PlayerInfo[playerid][pLeader] == 1) { ftext = "ДПС"; }
else if(PlayerInfo[playerid][pLeader] == 2) { ftext = "ФСБ"; /*ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }*/}
else if(PlayerInfo[playerid][pLeader] == 3) { ftext = "Армия"; /*ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }*/}
else if(PlayerInfo[playerid][pLeader] == 4) { ftext = "Министр Здравохранение"; /*ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); }*/}
else if(PlayerInfo[playerid][pLeader] == 5) { ftext = "La Cosa Nostra"; /*ChosenSkin[para1] = 258; SetPlayerSkin(para1, 258); }*/}
else if(PlayerInfo[playerid][pLeader] == 6) { ftext = "РЖД"; /*ChosenSkin[para1] = 120; SetPlayerSkin(para1, 120); }*/}
else if(PlayerInfo[playerid][pLeader] == 7) { ftext = "Правительство"; /*ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59); }*/}
else if(PlayerInfo[playerid][pLeader] == 8) { ftext = "Зона"; /*ChosenSkin[para1] = 127; SetPlayerSkin(para1, 127); }*/}
else if(PlayerInfo[playerid][pLeader] == 9) { ftext = "Репортеры"; /*ChosenSkin[para1] = 148; SetPlayerSkin(para1, 148); }*/}
else if(PlayerInfo[playerid][pLeader] == 10) { ftext = "ТМК Форсаж"; /*ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59); }*/}
else if(PlayerInfo[playerid][pLeader] == 11) { ftext = "Автошкола"; /*ChosenSkin[para1] = 102; SetPlayerSkin(para1, 102); }*/}
else if(PlayerInfo[playerid][pLeader] == 12) { ftext = "Итальяянская мафия"; /*ChosenSkin[para1] = 105; SetPlayerSkin(para1, 105); }*/}
else if(PlayerInfo[playerid][pLeader] == 13) { ftext = "Бродяги"; /*ChosenSkin[para1] = 108; SetPlayerSkin(para1, 108); }*/}
else if(PlayerInfo[playerid][pLeader] == 14) { ftext = "Пожарная инспекция"; /*ChosenSkin[para1] = 116; SetPlayerSkin(para1, 116); }*/}
else if(PlayerInfo[playerid][pLeader] == 15) { ftext = "Русская мафия"; /*ChosenSkin[para1] = 174; SetPlayerSkin(para1, 174); }*/}
else if(PlayerInfo[playerid][pLeader] == 16) { ftext = "Гопники"; /*ChosenSkin[para1] = 126; SetPlayerSkin(para1, 126); }*/}
else if(PlayerInfo[playerid][pLeader] == 17) { ftext = "Уличные гонщеки"; /*ChosenSkin[para1] = 248; SetPlayerSkin(para1, 248); }*/}
else if(PlayerInfo[playerid][pLeader] == 18) { ftext = "Прокуратура"; /*ChosenSkin[para1] = 285; SetPlayerSkin(para1, 285); }*/}
else if(PlayerInfo[playerid][pLeader] == 19) { ftext = "Батыревская Братва"; /*ChosenSkin[para1] = 249; SetPlayerSkin(para1, 249); }*/}
else if(PlayerInfo[playerid][pLeader] == 20) { ftext = "ППС"; /*ChosenSkin[para1] = 120; SetPlayerSkin(para1, 120); }*/}
else if(PlayerInfo[playerid][pLeader] == 21) { ftext = "Южная Братва"; /*ChosenSkin[para1] = 143; SetPlayerSkin(para1, 143); }*/}
else if(PlayerInfo[playerid][pLeader] == 22) { ftext = "Автобусное предприятие"; /*ChosenSkin[para1] = 143; SetPlayerSkin(para1, 143); }*/}
else if(PlayerInfo[playerid][pLeader] == 23) { ftext = "Спецназ"; /*ChosenSkin[para1] = 143; SetPlayerSkin(para1, 143); }*/}
else if(PlayerInfo[playerid][pLeader] == 24) { ftext = "Летчики"; /*ChosenSkin[para1] = 143; SetPlayerSkin(para1, 143); }*/}
else if(PlayerInfo[playerid][pLeader] == 25) { ftext = "Тачка на прокачку"; /*ChosenSkin[para1] = 143; SetPlayerSkin(para1, 143); }*/}
else { return 1; }
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"__________________Пригглашение_________________ \nВас приглашают вступить во фракцию %s\n______________________________________",ftext);
ShowPlayerDialog(para1,657,DIALOG_STYLE_MSGBOX,"Приглашение",string,"Согласен","Отказать");
format(string, sizeof(string), "Игрок %s принял ваше предложение.(%s).", giveplayer,ftext);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
pInvite[para1] = playerid;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Игрок уже состоит в организации");
return 1;
}
}
}//not connected
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Команда доступна только лидерам!");
}
}
return 1;
}
А как ту ошибку решать надо? Что и куда я там вписать забыл?И + я думаю и тут выйдет ошибка 017, как под мод подгонять?

 
Последнее редактирование модератором:

Mikky

Новичок
Пользователь
15.03.2015
50
0
0
Я так понял мне просто надо обьявить переменные, а как это сделать? Просто подскажите куда что приписать.

 
A

Amfy

Гость
Гость
Скинь стандартную команду с этого мода, посмотрим че там.

 

Mikky

Новичок
Пользователь
15.03.2015
50
0
0
Сообщение было удалено.

 
Последнее редактирование модератором:

Mikky

Новичок
Пользователь
15.03.2015
50
0
0
Скинь стандартную команду с этого мода, посмотрим че там.
Код:
if(strcmp(cmd, "/setint", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_GRAD2, "/setint [interior id]");
            return 1;
        }
        new intid;
        intid = strval(tmp);
        if (PlayerInfo[playerid][pAdmin] >= 1)
        {
            SetPlayerInterior(playerid,intid);
            PlayerInfo[playerid][pInt] = intid;
            format(string, sizeof(string), "Èíòåðüåð èçìåí¸í íà %d.", intid);
            SendClientMessage(playerid, COLOR_GRAD1, string);
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD1, "Íåäîñòàòî÷íî ïðàâ äëÿ èñïîëüçîâàíèÿ êîìàíäû.");
        }
    }
    return 1;
}
if(strcmp(cmd, "/invite", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_GRAD2, "/invite [id èãðîêà]");
            return 1;
        }
        new para1;
        new ftext[150];
        para1 = ReturnUser(tmp);
        if (PlayerInfo[playerid][pLeader] >= 1)
        {
            if(IsPlayerConnected(para1))
            {
                if (PlayerInfo[para1][pJob] >= 1)
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "Ó ýòîãî èãðîêà åñòü ðàáîòà.");
                    return 1;
                }
                if(para1 != INVALID_PLAYER_ID)
                {
                    if (PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pLeader] == 0)
                    {
                        if(PlayerInfo[playerid][pLeader] == 1)
                        {
                            if(PlayerInfo[para1][pHsl] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "îðãàíèçàöèþ LSPD."; ChosenSkin[para1] = 284; SetPlayerSkin(para1, 284);
                            }
                            //Police Force
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 3; gTeam[para1] = 3; ftext = "îðãàíèçàöèþ LSPD."; ChosenSkin[para1] = 93; SetPlayerSkin(para1, 93);
                            }
                            //Police Force
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        if(PlayerInfo[playerid][pLeader] == 2)
                        {
                            if(PlayerInfo[para1][pHsf] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "îðãàíèçàöèþ FBI."; ChosenSkin[para1] = 285; SetPlayerSkin(para1, 285);
                            }
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 3; gTeam[para1] = 3; ftext = "îðãàíèçàöèþ FBI."; ChosenSkin[para1] = 93; SetPlayerSkin(para1, 93);
                            }
                            //Police Force
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        if(PlayerInfo[playerid][pLeader] == 3)
                        {
                            if(PlayerInfo[para1][pHsa] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 3; gTeam[para1] = 3; ftext = "îðãàíèçàöèþ Ìèíèñòåðñòâî îáîðîíû."; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287);
                            }
                            //Police Force
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 3; gTeam[para1] = 3; ftext = "îðãàíèçàöèþ Ìèíèñòåðñòâî îáîðîíû."; ChosenSkin[para1] = 191; SetPlayerSkin(para1, 191);
                            }
                            //Police Force
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        if(PlayerInfo[playerid][pLeader] == 4)
                        {
                            if(PlayerInfo[para1][pHsa] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 4; gTeam[para1] = 4; ftext = "îðãàíèçàöèþ Ì×Ñ."; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70);
                            }
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 4; gTeam[para1] = 4; ftext = "îðãàíèçàöèþ Ì×Ñ."; ChosenSkin[para1] = 219; SetPlayerSkin(para1, 219);
                            }
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        if(PlayerInfo[playerid][pLeader] == 5)
                        {
                            if(PlayerInfo[para1][pHscn] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "ìàôèþ La Cosa Nostra."; ChosenSkin[para1] = 258; SetPlayerSkin(para1, 258);
                            }
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "ìàôèþ La Cosa Nostra."; ChosenSkin[para1] = 216; SetPlayerSkin(para1, 216);
                            }
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        if(PlayerInfo[playerid][pLeader] == 6)
                        {
                            if(PlayerInfo[para1][pHsyak] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 6; gTeam[para1] = 6; ftext = "ìàôèþ Yakuza."; ChosenSkin[para1] = 122; SetPlayerSkin(para1, 122);
                            }
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 6; gTeam[para1] = 6; ftext = "ìàôèþ Yakuza."; ChosenSkin[para1] = 12; SetPlayerSkin(para1, 12);
                            }
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        if(PlayerInfo[playerid][pLeader] == 7)
                        {
                            if(PlayerInfo[para1][pHstr] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 7; gTeam[para1] = 7; ftext = "Triads."; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59);
                            }
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 7; gTeam[para1] = 7; ftext = "Triads."; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59);
                            }
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        if(PlayerInfo[playerid][pLeader] == 8)
                        {
                            if(PlayerInfo[para1][pHsre] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 8; gTeam[para1] = 8; ftext = "îðãàíèçàöèþ Õèòìàíû."; ChosenSkin[para1] = 127; SetPlayerSkin(para1, 127);
                            }
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 8; gTeam[para1] = 8; ftext = "îðãàíèçàöèþ Õèòìàíû."; ChosenSkin[para1] = 141; SetPlayerSkin(para1, 141);
                            }
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        if(PlayerInfo[playerid][pLeader] == 9)
                        {
                            if(PlayerInfo[para1][pHsx] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 9; gTeam[para1] = 9; ftext = "îðãàíèçàöèþ Ðåïîðò¸ðû."; ChosenSkin[para1] = 71; SetPlayerSkin(para1, 71);
                            }
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 9; gTeam[para1] = 9; ftext = "îðãàíèçàöèþ Ðåïîðò¸ðû."; ChosenSkin[para1] = 150; SetPlayerSkin(para1, 150);
                            }
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        if(PlayerInfo[playerid][pLeader] == 10)
                        {
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 10; ftext = "The Cartel."; ChosenSkin[para1] = 66; SetPlayerSkin(para1, 66);
                            }
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 10; ftext = "The Cartel."; ChosenSkin[para1] = 214; SetPlayerSkin(para1, 214);
                            }
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        if(PlayerInfo[playerid][pLeader] == 11)//
                        {
                            if(PlayerInfo[para1][pHsbal] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 11; gTeam[para1] = 11; ftext = "áàíäó East Side Ballas."; ChosenSkin[para1] = 28; SetPlayerSkin(para1, 28);
                            }
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 11; gTeam[para1] = 11; ftext = "áàíäó East Side Ballas."; ChosenSkin[para1] = 13; SetPlayerSkin(para1, 13);
                            }
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        if(PlayerInfo[playerid][pLeader] == 12)
                        {
                            if(PlayerInfo[para1][pHsgrov] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "áàíäó Grove Street Family."; ChosenSkin[para1] = 105; SetPlayerSkin(para1, 105);
                            }
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "áàíäó Grove Street Family."; ChosenSkin[para1] = 195; SetPlayerSkin(para1, 195);
                            }
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        if(PlayerInfo[playerid][pLeader] == 13)
                        {
                            if(PlayerInfo[para1][pHsvag] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 13; gTeam[para1] = 13; ftext = "áàíäó Los Santos Vagos."; ChosenSkin[para1] = 108; SetPlayerSkin(para1, 108);
                            }
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 13; gTeam[para1] = 13; ftext = "áàíäó Los Santos Vagos."; ChosenSkin[para1] = 12; SetPlayerSkin(para1, 12);
                            }
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        if(PlayerInfo[playerid][pLeader] == 14)
                        {
                            if(PlayerInfo[para1][pHscoron] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 14; gTeam[para1] = 14; ftext = "áàíäó El Coronos."; ChosenSkin[para1] = 47; SetPlayerSkin(para1, 47);
                            }
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 14; gTeam[para1] = 14; ftext = "áàíäó El Coronos."; ChosenSkin[para1] = 193; SetPlayerSkin(para1, 193);
                            }
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        if(PlayerInfo[playerid][pLeader] == 15)
                        {
                            if(PlayerInfo[para1][pHsrif] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 15; gTeam[para1] = 15; ftext = "áàíäó San Fierro Rifa."; ChosenSkin[para1] = 174; SetPlayerSkin(para1, 174);
                            }
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 15; gTeam[para1] = 15; ftext = "áàíäó San Fierro Rifa."; ChosenSkin[para1] = 40; SetPlayerSkin(para1, 40);
                            }
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        if(PlayerInfo[playerid][pLeader] == 16)
                        {
                            if(PlayerInfo[para1][pHsrm] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 16; gTeam[para1] = 16; ftext = "ìàôèþ Russian Mafia."; ChosenSkin[para1] = 112; SetPlayerSkin(para1, 112);
                            }
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 16; gTeam[para1] = 16; ftext = "ìàôèþ Russian Mafia."; ChosenSkin[para1] = 216; SetPlayerSkin(para1, 216);
                            }
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        if(PlayerInfo[playerid][pLeader] == 17)
                        {
                            if(PlayerInfo[para1][pHstaxi] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 17; gTeam[para1] = 17; ftext = "îðãàíèçàöèþ Taxi."; ChosenSkin[para1] = 261; SetPlayerSkin(para1, 261);
                            }
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 17; gTeam[para1] = 17; ftext = "îðãàíèçàöèþ Taxi."; ChosenSkin[para1] = 76; SetPlayerSkin(para1, 76);
                            }
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        if(PlayerInfo[playerid][pLeader] == 18)
                        {
                            if(PlayerInfo[para1][pHsstre] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 18; gTeam[para1] = 18; ftext = "áàíäó Street Racers."; ChosenSkin[para1] = 50; SetPlayerSkin(para1, 50);
                            }
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 18; gTeam[para1] = 18; ftext = "áàíäó Street Racers."; ChosenSkin[para1] = 261; SetPlayerSkin(para1, 261);
                            }
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        if(PlayerInfo[playerid][pLeader] == 19)
                        {
                            if(PlayerInfo[para1][pHsstrel] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 19; gTeam[para1] = 19; ftext = "áàíäó Street Racers LV."; ChosenSkin[para1] = 183; SetPlayerSkin(para1, 183);
                            }
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 19; gTeam[para1] = 19; ftext = "áàíäó Street Racers LV."; ChosenSkin[para1] = 183; SetPlayerSkin(para1, 183);
                            }
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        if(PlayerInfo[playerid][pLeader] == 20)
                        {
                            if(PlayerInfo[para1][pHslvpd] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 20; gTeam[para1] = 20; ftext = "îðãàíèçàöèþ LVPD."; ChosenSkin[para1] = 266; SetPlayerSkin(para1, 266);
                            }
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 20; gTeam[para1] = 20; ftext = "îðãàíèçàöèþ LVPD."; ChosenSkin[para1] = 233; SetPlayerSkin(para1, 233);
                            }
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        if(PlayerInfo[playerid][pLeader] == 21)
                        {
                            if(PlayerInfo[para1][pHsbaik] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 21; gTeam[para1] = 21; ftext = "áàíäó Áàéêåðû."; ChosenSkin[para1] = 100; SetPlayerSkin(para1, 100);
                            }
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 21; gTeam[para1] = 21; ftext = "áàíäó Áàéêåðû."; ChosenSkin[para1] = 172; SetPlayerSkin(para1, 172);
                            }
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        if(PlayerInfo[playerid][pLeader] == 22)
                        {
                            if(PlayerInfo[para1][pHsPain] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
                            if(PlayerInfo[para1][pSex] == 1)
                            {
                                PlayerInfo[para1][pTeam] = 22; gTeam[para1] = 22; ftext = "áàíäó LS Convers"; ChosenSkin[para1] = 30; SetPlayerSkin(para1, 30);
                            }
                            else if(PlayerInfo[para1][pSex] == 2)
                            {
                                PlayerInfo[para1][pTeam] = 22; gTeam[para1] = 22; ftext = "áàíäó LS Convers"; ChosenSkin[para1] = 12; SetPlayerSkin(para1, 12);
                            }
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                        }
                        GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
                        PlayerInfo[para1][pRank] = 1;
                        PlayerInfo[playerid][pMaskuse] = 0;
                        format(string, sizeof(string), "Òû áûë(à) ïðèíÿò(à) ëèäåðîì %s â %s", sendername, ftext);
                        SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                        format(string, sizeof(string), "Òû ïðèíÿë(à) èãðîêà %s â %s", giveplayer,ftext);
                        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                        PlayerInfo[para1][pChar] = ChosenSkin[para1];
                        MedicBill[para1] = 0;
                        SpawnPlayer(para1);
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_GREY, "Èãðîê óæå ñîñòîèò â îðãàíèçàöèè");
                        return 1;
                    }
                }
            }
            //not connected
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD1, "Êîìàíäà äîñòóïíà òîëüêî ëèäåðàì!");
        }
    }
    return 1;
}
 

Basis

chto tut doljno bit`!?
Пользователь
24.06.2014
824
271
0
22
что касаемо стринга то просто удали его

 
A

Amfy

Гость
Гость
Короче, вот это убирай с команды:

PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
PlayerInfo[para1][pRank] = 1;
SpawnPlayer(para1);

Вместо этого ставь:

SetPVarInt(para1,"invfrac",PlayerInfo[playerid][pLeader]);
SetPVarInt(para1,"invid",playerid);

Естественно, меняй текст в команде на нужный, мол name приглашает вас в namefrac

В команду или на кнопку, куда душе удобно, ставь код соглашения:

if(GetPVarInt(playerid,"invfrac") != 0)
{
new player = GetPVarInt(playerid,"invid");
new frac = GetPVarInt(playerid,"invfrac");
SendPlayerMessage(playerid,-1,"Вы согласились!");
SendPlayerMessage(player,-1,"Он согласился!");
PlayerInfo[playerid][pMember] = frac;
PlayerInfo[playerid][pRank] = 1;
SpawnPlayer(playerid);
DeletePVar(playerid,"invfrac");
DeletePVar(playerid,"invid");
}

Аналогичное действие делай с отказом вступать в фракцию:

if(GetPVarInt(playerid,"invfrac") != 0)
{
new player = GetPVarInt(playerid,"invid");
SendPlayerMessage(playerid,-1,"Вы отказались!");
SendPlayerMessage(player,-1,"Он отказался!");
DeletePVar(playerid,"invfrac");
DeletePVar(playerid,"invid");
}

[green]invfrac - номер фракции
invid - ид игрока который тебя пригласил[/green]

 
Последнее редактирование:

Mikky

Новичок
Пользователь
15.03.2015
50
0
0
SpawnPlayer(para1);
Эта строка много где повторяется, ее везде удалять да?

 

Mikky

Новичок
Пользователь
15.03.2015
50
0
0
Vm6knOLF7n7R2Z.jpg


Похоже я снова что-то не так сделал, 4 ерора, я что-то не указал?

 
A

Amfy

Гость
Гость
Тьфу, блин  xd

Замени SendPlayerMessage на SendClientMessage

 

Mikky

Новичок
Пользователь
15.03.2015
50
0
0
Тьфу, блин  xd

Замени SendPlayerMessage на SendClientMessage
Ошибок на этот раз не было, но нужного эффекта всё равно не получил  (( . Теперь тоже принимает во фракцию без согласия, просто терь не тпшит новобранца во фракцию сразу, а он остается на месте, но скин уже меняется.

 
A

Amfy

Гость
Гость
Ошибок на этот раз не было, но нужного эффекта всё равно не получил  (( . Теперь тоже принимает во фракцию без согласия, просто терь не тпшит новобранца во фракцию сразу, а он остается на месте, но скин уже меняется.
Значит ты не убрал нужные строки с команды /invite.

Эта строка устанавливает игроку фракцию:

Код:
PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
 

Mikky

Новичок
Пользователь
15.03.2015
50
0
0
if(strcmp(cmd, "/setint", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "/setint [interior id]");
return 1;
}
new intid;
intid = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SetPlayerInterior(playerid,intid);
PlayerInfo[playerid][pInt] = intid;
format(string, sizeof(string), "Èíòåðüåð èçìåí¸í íà %d.", intid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Íåäîñòàòî÷íî ïðàâ äëÿ èñïîëüçîâàíèÿ êîìàíäû.");
}
}
return 1;
}
if(strcmp(cmd, "/invite", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "/invite [id èãðîêà]");
return 1;
}
new para1;
new ftext[150];
para1 = ReturnUser(tmp);
if (PlayerInfo[playerid][pLeader] >= 1)
{
if(IsPlayerConnected(para1))
{
if (PlayerInfo[para1][pJob] >= 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "Ó ýòîãî èãðîêà åñòü ðàáîòà.");
return 1;
}
if(para1 != INVALID_PLAYER_ID)
{
if (PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pLeader] == 0)
{
if(PlayerInfo[playerid][pLeader] == 1)
{
if(PlayerInfo[para1][pHsl] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "îðãàíèçàöèþ LSPD."; ChosenSkin[para1] = 284; SetPlayerSkin(para1, 284);
}
//Police Force
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 3; gTeam[para1] = 3; ftext = "îðãàíèçàöèþ LSPD."; ChosenSkin[para1] = 93; SetPlayerSkin(para1, 93);
}
//Police Force
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 2)
{
if(PlayerInfo[para1][pHsf] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "îðãàíèçàöèþ FBI."; ChosenSkin[para1] = 285; SetPlayerSkin(para1, 285);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 3; gTeam[para1] = 3; ftext = "îðãàíèçàöèþ FBI."; ChosenSkin[para1] = 93; SetPlayerSkin(para1, 93);
}
//Police Force
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 3)
{
if(PlayerInfo[para1][pHsa] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 3; gTeam[para1] = 3; ftext = "îðãàíèçàöèþ Ìèíèñòåðñòâî îáîðîíû."; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287);
}
//Police Force
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 3; gTeam[para1] = 3; ftext = "îðãàíèçàöèþ Ìèíèñòåðñòâî îáîðîíû."; ChosenSkin[para1] = 191; SetPlayerSkin(para1, 191);
}
//Police Force
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 4)
{
if(PlayerInfo[para1][pHsa] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 4; gTeam[para1] = 4; ftext = "îðãàíèçàöèþ Ì×Ñ."; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 4; gTeam[para1] = 4; ftext = "îðãàíèçàöèþ Ì×Ñ."; ChosenSkin[para1] = 219; SetPlayerSkin(para1, 219);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 5)
{
if(PlayerInfo[para1][pHscn] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "ìàôèþ La Cosa Nostra."; ChosenSkin[para1] = 258; SetPlayerSkin(para1, 258);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "ìàôèþ La Cosa Nostra."; ChosenSkin[para1] = 216; SetPlayerSkin(para1, 216);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 6)
{
if(PlayerInfo[para1][pHsyak] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 6; gTeam[para1] = 6; ftext = "ìàôèþ Yakuza."; ChosenSkin[para1] = 122; SetPlayerSkin(para1, 122);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 6; gTeam[para1] = 6; ftext = "ìàôèþ Yakuza."; ChosenSkin[para1] = 12; SetPlayerSkin(para1, 12);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 7)
{
if(PlayerInfo[para1][pHstr] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 7; gTeam[para1] = 7; ftext = "Triads."; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 7; gTeam[para1] = 7; ftext = "Triads."; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 8)
{
if(PlayerInfo[para1][pHsre] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 8; gTeam[para1] = 8; ftext = "îðãàíèçàöèþ Õèòìàíû."; ChosenSkin[para1] = 127; SetPlayerSkin(para1, 127);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 8; gTeam[para1] = 8; ftext = "îðãàíèçàöèþ Õèòìàíû."; ChosenSkin[para1] = 141; SetPlayerSkin(para1, 141);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 9)
{
if(PlayerInfo[para1][pHsx] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 9; gTeam[para1] = 9; ftext = "îðãàíèçàöèþ Ðåïîðò¸ðû."; ChosenSkin[para1] = 71; SetPlayerSkin(para1, 71);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 9; gTeam[para1] = 9; ftext = "îðãàíèçàöèþ Ðåïîðò¸ðû."; ChosenSkin[para1] = 150; SetPlayerSkin(para1, 150);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 10)
{
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 10; ftext = "The Cartel."; ChosenSkin[para1] = 66; SetPlayerSkin(para1, 66);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 10; ftext = "The Cartel."; ChosenSkin[para1] = 214; SetPlayerSkin(para1, 214);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 11)//
{
if(PlayerInfo[para1][pHsbal] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 11; gTeam[para1] = 11; ftext = "áàíäó East Side Ballas."; ChosenSkin[para1] = 28; SetPlayerSkin(para1, 28);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 11; gTeam[para1] = 11; ftext = "áàíäó East Side Ballas."; ChosenSkin[para1] = 13; SetPlayerSkin(para1, 13);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 12)
{
if(PlayerInfo[para1][pHsgrov] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "áàíäó Grove Street Family."; ChosenSkin[para1] = 105; SetPlayerSkin(para1, 105);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "áàíäó Grove Street Family."; ChosenSkin[para1] = 195; SetPlayerSkin(para1, 195);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 13)
{
if(PlayerInfo[para1][pHsvag] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 13; gTeam[para1] = 13; ftext = "áàíäó Los Santos Vagos."; ChosenSkin[para1] = 108; SetPlayerSkin(para1, 108);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 13; gTeam[para1] = 13; ftext = "áàíäó Los Santos Vagos."; ChosenSkin[para1] = 12; SetPlayerSkin(para1, 12);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 14)
{
if(PlayerInfo[para1][pHscoron] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 14; gTeam[para1] = 14; ftext = "áàíäó El Coronos."; ChosenSkin[para1] = 47; SetPlayerSkin(para1, 47);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 14; gTeam[para1] = 14; ftext = "áàíäó El Coronos."; ChosenSkin[para1] = 193; SetPlayerSkin(para1, 193);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 15)
{
if(PlayerInfo[para1][pHsrif] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 15; gTeam[para1] = 15; ftext = "áàíäó San Fierro Rifa."; ChosenSkin[para1] = 174; SetPlayerSkin(para1, 174);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 15; gTeam[para1] = 15; ftext = "áàíäó San Fierro Rifa."; ChosenSkin[para1] = 40; SetPlayerSkin(para1, 40);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 16)
{
if(PlayerInfo[para1][pHsrm] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 16; gTeam[para1] = 16; ftext = "ìàôèþ Russian Mafia."; ChosenSkin[para1] = 112; SetPlayerSkin(para1, 112);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 16; gTeam[para1] = 16; ftext = "ìàôèþ Russian Mafia."; ChosenSkin[para1] = 216; SetPlayerSkin(para1, 216);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 17)
{
if(PlayerInfo[para1][pHstaxi] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 17; gTeam[para1] = 17; ftext = "îðãàíèçàöèþ Taxi."; ChosenSkin[para1] = 261; SetPlayerSkin(para1, 261);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 17; gTeam[para1] = 17; ftext = "îðãàíèçàöèþ Taxi."; ChosenSkin[para1] = 76; SetPlayerSkin(para1, 76);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 18)
{
if(PlayerInfo[para1][pHsstre] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 18; gTeam[para1] = 18; ftext = "áàíäó Street Racers."; ChosenSkin[para1] = 50; SetPlayerSkin(para1, 50);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 18; gTeam[para1] = 18; ftext = "áàíäó Street Racers."; ChosenSkin[para1] = 261; SetPlayerSkin(para1, 261);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 19)
{
if(PlayerInfo[para1][pHsstrel] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 19; gTeam[para1] = 19; ftext = "áàíäó Street Racers LV."; ChosenSkin[para1] = 183; SetPlayerSkin(para1, 183);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 19; gTeam[para1] = 19; ftext = "áàíäó Street Racers LV."; ChosenSkin[para1] = 183; SetPlayerSkin(para1, 183);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 20)
{
if(PlayerInfo[para1][pHslvpd] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 20; gTeam[para1] = 20; ftext = "îðãàíèçàöèþ LVPD."; ChosenSkin[para1] = 266; SetPlayerSkin(para1, 266);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 20; gTeam[para1] = 20; ftext = "îðãàíèçàöèþ LVPD."; ChosenSkin[para1] = 233; SetPlayerSkin(para1, 233);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 21)
{
if(PlayerInfo[para1][pHsbaik] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 21; gTeam[para1] = 21; ftext = "áàíäó Áàéêåðû."; ChosenSkin[para1] = 100; SetPlayerSkin(para1, 100);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 21; gTeam[para1] = 21; ftext = "áàíäó Áàéêåðû."; ChosenSkin[para1] = 172; SetPlayerSkin(para1, 172);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 22)
{
if(PlayerInfo[para1][pHsPain] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 22; gTeam[para1] = 22; ftext = "áàíäó LS Convers"; ChosenSkin[para1] = 30; SetPlayerSkin(para1, 30);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 22; gTeam[para1] = 22; ftext = "áàíäó LS Convers"; ChosenSkin[para1] = 12; SetPlayerSkin(para1, 12);
}
MedicBill[para1] = 0;
}
if(GetPVarInt(playerid,"invfrac") != 0)
{
new player = GetPVarInt(playerid,"invid");
new frac = GetPVarInt(playerid,"invfrac");
SendClientMessage(playerid,-1,"Âû ñîãëàñèëèñü!");
SendClientMessage(player,-1,"Îí ñîãëàñèëñÿ!");
PlayerInfo[playerid][pMember] = frac;
PlayerInfo[playerid][pRank] = 1;
SpawnPlayer(playerid);
DeletePVar(playerid,"invfrac");
DeletePVar(playerid,"invid");
}
if(GetPVarInt(playerid,"invfrac") != 0)
{
new player = GetPVarInt(playerid,"invid");
SendClientMessage(playerid,-1,"Âû îòêàçàëèñü!");
SendClientMessage(player,-1,"Îí îòêàçàëñÿ!");
DeletePVar(playerid,"invfrac");
DeletePVar(playerid,"invid");
}
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
SetPVarInt(para1,"invfrac",PlayerInfo[playerid][pLeader]);
SetPVarInt(para1,"invid",playerid);
PlayerInfo[playerid][pMaskuse] = 0;
format(string, sizeof(string), "Âû áûëè ïðèãëàøåíû ëèäåðîì %s â %s", sendername, ftext);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "Âû áûëè ïðèãëàøåíû ëèäåðîì %s â %s", giveplayer,ftext);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
PlayerInfo[para1][pChar] = ChosenSkin[para1];
MedicBill[para1] = 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Èãðîê óæå ñîñòîèò â îðãàíèçàöèè");
return 1;
}
}
}
//not connected
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Êîìàíäà äîñòóïíà òîëüêî ëèäåðàì!");
}
}
return 1;
}

Вот вся команда. Строки PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader]; тут нет. Хз что не так. Как же печально, мод понравился, но эта команда всё портит  (( 

 
Последнее редактирование модератором:
A

Amfy

Гость
Гость
o_ooo Как же вы меня бесите. Че ты оцениваешь мод по какой-то плюшевой команде?

Зачем ты код соглашения и отказа впаял нафиг в этому команду? Чисто логически подумай, как должен работать код если это всё впихнуто в одну команду?

Короче, сейчас тему создам в готовых решениях по образцу твоей команду, только уберу весь этот спавн. Жди.

 

Mikky

Новичок
Пользователь
15.03.2015
50
0
0
o_ooo Как же вы меня бесите. Че ты оцениваешь мод по какой-то плюшевой команде?

Зачем ты код соглашения и отказа впаял нафиг в этому команду? Чисто логически подумай, как должен работать код если это всё впихнуто в одну команду?

Короче, сейчас тему создам в готовых решениях по образцу твоей команду, только уберу весь этот спавн. Жди.
Опыта нету) До этого я только в MTA ковырялся, а там знать особо ничего и не надо.

 

Mikky

Новичок
Пользователь
15.03.2015
50
0
0
if(strcmp(cmd, "/setint", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "/setint [interior id]");
return 1;
}
new intid;
intid = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SetPlayerInterior(playerid,intid);
PlayerInfo[playerid][pInt] = intid;
format(string, sizeof(string), "Èíòåðüåð èçìåí¸í íà %d.", intid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Íåäîñòàòî÷íî ïðàâ äëÿ èñïîëüçîâàíèÿ êîìàíäû.");
}
}
return 1;
}
if(strcmp(cmd, "/invite", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "/invite [id èãðîêà]");
return 1;
}
new para1;
new ftext[150];
para1 = ReturnUser(tmp);
if (PlayerInfo[playerid][pLeader] >= 1)
{
if(IsPlayerConnected(para1))
{
if (PlayerInfo[para1][pJob] >= 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "Ó ýòîãî èãðîêà åñòü ðàáîòà.");
return 1;
}
if(para1 != INVALID_PLAYER_ID)
{
if (PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pLeader] == 0)
{
if(PlayerInfo[playerid][pLeader] == 1)
{
if(PlayerInfo[para1][pHsl] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "îðãàíèçàöèþ LSPD."; ChosenSkin[para1] = 284; SetPlayerSkin(para1, 284);
}
//Police Force
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 3; gTeam[para1] = 3; ftext = "îðãàíèçàöèþ LSPD."; ChosenSkin[para1] = 93; SetPlayerSkin(para1, 93);
}
//Police Force
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 2)
{
if(PlayerInfo[para1][pHsf] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "îðãàíèçàöèþ FBI."; ChosenSkin[para1] = 285; SetPlayerSkin(para1, 285);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 3; gTeam[para1] = 3; ftext = "îðãàíèçàöèþ FBI."; ChosenSkin[para1] = 93; SetPlayerSkin(para1, 93);
}
//Police Force
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 3)
{
if(PlayerInfo[para1][pHsa] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 3; gTeam[para1] = 3; ftext = "îðãàíèçàöèþ Ìèíèñòåðñòâî îáîðîíû."; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287);
}
//Police Force
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 3; gTeam[para1] = 3; ftext = "îðãàíèçàöèþ Ìèíèñòåðñòâî îáîðîíû."; ChosenSkin[para1] = 191; SetPlayerSkin(para1, 191);
}
//Police Force
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 4)
{
if(PlayerInfo[para1][pHsa] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 4; gTeam[para1] = 4; ftext = "îðãàíèçàöèþ Ì×Ñ."; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 4; gTeam[para1] = 4; ftext = "îðãàíèçàöèþ Ì×Ñ."; ChosenSkin[para1] = 219; SetPlayerSkin(para1, 219);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 5)
{
if(PlayerInfo[para1][pHscn] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "ìàôèþ La Cosa Nostra."; ChosenSkin[para1] = 258; SetPlayerSkin(para1, 258);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "ìàôèþ La Cosa Nostra."; ChosenSkin[para1] = 216; SetPlayerSkin(para1, 216);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 6)
{
if(PlayerInfo[para1][pHsyak] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 6; gTeam[para1] = 6; ftext = "ìàôèþ Yakuza."; ChosenSkin[para1] = 122; SetPlayerSkin(para1, 122);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 6; gTeam[para1] = 6; ftext = "ìàôèþ Yakuza."; ChosenSkin[para1] = 12; SetPlayerSkin(para1, 12);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 7)
{
if(PlayerInfo[para1][pHstr] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 7; gTeam[para1] = 7; ftext = "Triads."; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 7; gTeam[para1] = 7; ftext = "Triads."; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 8)
{
if(PlayerInfo[para1][pHsre] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 8; gTeam[para1] = 8; ftext = "îðãàíèçàöèþ Õèòìàíû."; ChosenSkin[para1] = 127; SetPlayerSkin(para1, 127);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 8; gTeam[para1] = 8; ftext = "îðãàíèçàöèþ Õèòìàíû."; ChosenSkin[para1] = 141; SetPlayerSkin(para1, 141);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 9)
{
if(PlayerInfo[para1][pHsx] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 9; gTeam[para1] = 9; ftext = "îðãàíèçàöèþ Ðåïîðò¸ðû."; ChosenSkin[para1] = 71; SetPlayerSkin(para1, 71);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 9; gTeam[para1] = 9; ftext = "îðãàíèçàöèþ Ðåïîðò¸ðû."; ChosenSkin[para1] = 150; SetPlayerSkin(para1, 150);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 10)
{
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 10; ftext = "The Cartel."; ChosenSkin[para1] = 66; SetPlayerSkin(para1, 66);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 10; ftext = "The Cartel."; ChosenSkin[para1] = 214; SetPlayerSkin(para1, 214);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 11)//
{
if(PlayerInfo[para1][pHsbal] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 11; gTeam[para1] = 11; ftext = "áàíäó East Side Ballas."; ChosenSkin[para1] = 28; SetPlayerSkin(para1, 28);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 11; gTeam[para1] = 11; ftext = "áàíäó East Side Ballas."; ChosenSkin[para1] = 13; SetPlayerSkin(para1, 13);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 12)
{
if(PlayerInfo[para1][pHsgrov] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "áàíäó Grove Street Family."; ChosenSkin[para1] = 105; SetPlayerSkin(para1, 105);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "áàíäó Grove Street Family."; ChosenSkin[para1] = 195; SetPlayerSkin(para1, 195);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 13)
{
if(PlayerInfo[para1][pHsvag] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 13; gTeam[para1] = 13; ftext = "áàíäó Los Santos Vagos."; ChosenSkin[para1] = 108; SetPlayerSkin(para1, 108);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 13; gTeam[para1] = 13; ftext = "áàíäó Los Santos Vagos."; ChosenSkin[para1] = 12; SetPlayerSkin(para1, 12);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 14)
{
if(PlayerInfo[para1][pHscoron] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 14; gTeam[para1] = 14; ftext = "áàíäó El Coronos."; ChosenSkin[para1] = 47; SetPlayerSkin(para1, 47);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 14; gTeam[para1] = 14; ftext = "áàíäó El Coronos."; ChosenSkin[para1] = 193; SetPlayerSkin(para1, 193);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 15)
{
if(PlayerInfo[para1][pHsrif] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 15; gTeam[para1] = 15; ftext = "áàíäó San Fierro Rifa."; ChosenSkin[para1] = 174; SetPlayerSkin(para1, 174);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 15; gTeam[para1] = 15; ftext = "áàíäó San Fierro Rifa."; ChosenSkin[para1] = 40; SetPlayerSkin(para1, 40);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 16)
{
if(PlayerInfo[para1][pHsrm] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 16; gTeam[para1] = 16; ftext = "ìàôèþ Russian Mafia."; ChosenSkin[para1] = 112; SetPlayerSkin(para1, 112);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 16; gTeam[para1] = 16; ftext = "ìàôèþ Russian Mafia."; ChosenSkin[para1] = 216; SetPlayerSkin(para1, 216);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 17)
{
if(PlayerInfo[para1][pHstaxi] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 17; gTeam[para1] = 17; ftext = "îðãàíèçàöèþ Taxi."; ChosenSkin[para1] = 261; SetPlayerSkin(para1, 261);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 17; gTeam[para1] = 17; ftext = "îðãàíèçàöèþ Taxi."; ChosenSkin[para1] = 76; SetPlayerSkin(para1, 76);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 18)
{
if(PlayerInfo[para1][pHsstre] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 18; gTeam[para1] = 18; ftext = "áàíäó Street Racers."; ChosenSkin[para1] = 50; SetPlayerSkin(para1, 50);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 18; gTeam[para1] = 18; ftext = "áàíäó Street Racers."; ChosenSkin[para1] = 261; SetPlayerSkin(para1, 261);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 19)
{
if(PlayerInfo[para1][pHsstrel] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 19; gTeam[para1] = 19; ftext = "áàíäó Street Racers LV."; ChosenSkin[para1] = 183; SetPlayerSkin(para1, 183);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 19; gTeam[para1] = 19; ftext = "áàíäó Street Racers LV."; ChosenSkin[para1] = 183; SetPlayerSkin(para1, 183);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 20)
{
if(PlayerInfo[para1][pHslvpd] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 20; gTeam[para1] = 20; ftext = "îðãàíèçàöèþ LVPD."; ChosenSkin[para1] = 266; SetPlayerSkin(para1, 266);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 20; gTeam[para1] = 20; ftext = "îðãàíèçàöèþ LVPD."; ChosenSkin[para1] = 233; SetPlayerSkin(para1, 233);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 21)
{
if(PlayerInfo[para1][pHsbaik] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 21; gTeam[para1] = 21; ftext = "áàíäó Áàéêåðû."; ChosenSkin[para1] = 100; SetPlayerSkin(para1, 100);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 21; gTeam[para1] = 21; ftext = "áàíäó Áàéêåðû."; ChosenSkin[para1] = 172; SetPlayerSkin(para1, 172);
}
MedicBill[para1] = 0;
}
if(PlayerInfo[playerid][pLeader] == 22)
{
if(PlayerInfo[para1][pHsPain] >= 1)return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Îøèáêà]{FFFFFF} Ýòîò èãðîê íàõîäèòñÿ â ׸ðíîì ñïèñêå.");
if(PlayerInfo[para1][pSex] == 1)
{
PlayerInfo[para1][pTeam] = 22; gTeam[para1] = 22; ftext = "áàíäó LS Convers"; ChosenSkin[para1] = 30; SetPlayerSkin(para1, 30);
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pTeam] = 22; gTeam[para1] = 22; ftext = "áàíäó LS Convers"; ChosenSkin[para1] = 12; SetPlayerSkin(para1, 12);
}
MedicBill[para1] = 0;
SpawnPlayer(para1);
}
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
SetPVarInt(para1,"invfrac",PlayerInfo[playerid][pLeader]);
SetPVarInt(para1,"invid",playerid);
PlayerInfo[playerid][pMaskuse] = 0;
format(string, sizeof(string), "Òû áûë(à) ïðèíÿò(à) ëèäåðîì %s â %s", sendername, ftext);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "Òû ïðèíÿë(à) èãðîêà %s â %s", giveplayer,ftext);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
PlayerInfo[para1][pChar] = ChosenSkin[para1];
MedicBill[para1] = 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Èãðîê óæå ñîñòîèò â îðãàíèçàöèè");
return 1;
}
}
}
//not connected
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Êîìàíäà äîñòóïíà òîëüêî ëèäåðàì!");
}
}
return 1;
}
if(GetPVarInt(playerid,"invfrac") != 0)
{
new player = GetPVarInt(playerid,"invid");
new frac = GetPVarInt(playerid,"invfrac");
SendClientMessage(playerid,-1,"Âû ñîãëàñèëèñü!");
SendClientMessage(player,-1,"Îí ñîãëàñèëñÿ!");
PlayerInfo[playerid][pMember] = frac;
PlayerInfo[playerid][pRank] = 1;
SpawnPlayer(playerid);
DeletePVar(playerid,"invfrac");
DeletePVar(playerid,"invid");
}
if(GetPVarInt(playerid,"invfrac") != 0)
{
new player = GetPVarInt(playerid,"invid");
SendClientMessage(playerid,-1,"Âû îòêàçàëèñü!");
SendClientMessage(player,-1,"Îí îòêàçàëñÿ!");
DeletePVar(playerid,"invfrac");
DeletePVar(playerid,"invid");
}
Так?