Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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[25];
- para1 = ReturnUser(tmp);
- if (PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pRank] == 13)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[para1][pMember] == 0)
- {
- if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "LSPD"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); }
- else { return 1; }
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
- PlayerInfo[para1][pRank] = 1;
- printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
- format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Вы пригласили %s в организацию %s.", giveplayer,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
- SetPlayerInterior(para1,0);
- new rand = random(sizeof(gInviteSpawns));
- SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
- SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
- SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- TogglePlayerControllable(para1, 0);
- SelectChar[para1] = 255;
- SelectCharID[para1] = PlayerInfo[para1][pMember];
- SelectCharPlace[para1] = 1;
- PlayerInfo[para1][pJob] = 0;
- PlayerInfo[para1][pContractTime] = 0;
- PlayerInfo[para1][pModel] = ChosenSkin[para1];
- PlayerInfo[para1][pChar] = ChosenSkin[para1];
- SendClientMessage(para1, COLOR_LIGHTRED, "* Используйте 'next'чтобы выбрать следущий скин.");
- SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
- return 1;
- }
- }
- }//not connected
- }
- else if (PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pRank] == 9)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[para1][pMember] == 0)
- {
- if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "ФБР"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }
- else { return 1; }
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
- PlayerInfo[para1][pRank] = 1;
- printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
- format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Вы пригласили %s в организацию %s.", giveplayer,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
- SetPlayerInterior(para1,0);
- new rand = random(sizeof(gInviteSpawns));
- SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
- SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
- SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- TogglePlayerControllable(para1, 0);
- SelectChar[para1] = 255;
- SelectCharID[para1] = PlayerInfo[para1][pMember];
- SelectCharPlace[para1] = 1;
- PlayerInfo[para1][pJob] = 0;
- PlayerInfo[para1][pContractTime] = 0;
- PlayerInfo[para1][pModel] = ChosenSkin[para1];
- PlayerInfo[para1][pChar] = ChosenSkin[para1];
- SendClientMessage(para1, COLOR_LIGHTRED, "* Используйте 'next'чтобы выбрать следущий скин.");
- SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
- return 1;
- }
- }
- }//not connected
- }
- else if (PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3 && PlayerInfo[playerid][pRank] == 14)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[para1][pMember] == 0)
- {
- if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 3; gTeam[para1] = 3; ftext = "Армия СФ"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
- else { return 1; }
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
- PlayerInfo[para1][pRank] = 1;
- printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
- format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
- SetPlayerInterior(para1,0);
- new rand = random(sizeof(gInviteSpawns));
- SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
- SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
- SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- TogglePlayerControllable(para1, 0);
- SelectChar[para1] = 255;
- SelectCharID[para1] = PlayerInfo[para1][pMember];
- SelectCharPlace[para1] = 1;
- PlayerInfo[para1][pJob] = 0;
- PlayerInfo[para1][pContractTime] = 0;
- PlayerInfo[para1][pModel] = ChosenSkin[para1];
- PlayerInfo[para1][pChar] = ChosenSkin[para1];
- SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
- SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
- return 1;
- }
- }
- }//not connected
- }
- else if (PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] == 10)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[para1][pMember] == 0)
- {
- if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 4; gTeam[para1] = 4; ftext = "Здравохранение"; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); }
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
- PlayerInfo[para1][pRank] = 1;
- printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
- format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
- SetPlayerInterior(para1,0);
- new rand = random(sizeof(gInviteSpawns));
- SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
- SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
- SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- TogglePlayerControllable(para1, 0);
- SelectChar[para1] = 255;
- SelectCharID[para1] = PlayerInfo[para1][pMember];
- SelectCharPlace[para1] = 1;
- PlayerInfo[para1][pJob] = 0;
- PlayerInfo[para1][pContractTime] = 0;
- PlayerInfo[para1][pModel] = ChosenSkin[para1];
- PlayerInfo[para1][pChar] = ChosenSkin[para1];
- SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
- SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
- return 1;
- }
- }
- }//not connected
- }
- else if (PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5 && PlayerInfo[playerid][pRank] == 9)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[para1][pMember] == 0)
- {
- if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "La Cosa Nostra"; ChosenSkin[para1] = 258; SetPlayerSkin(para1, 120); }
- else { return 1; }
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
- PlayerInfo[para1][pRank] = 1;
- printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
- format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
- SetPlayerInterior(para1,0);
- new rand = random(sizeof(gInviteSpawns));
- SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
- SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
- SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- TogglePlayerControllable(para1, 0);
- SelectChar[para1] = 255;
- SelectCharID[para1] = PlayerInfo[para1][pMember];
- SelectCharPlace[para1] = 1;
- PlayerInfo[para1][pJob] = 0;
- PlayerInfo[para1][pContractTime] = 0;
- PlayerInfo[para1][pModel] = ChosenSkin[para1];
- PlayerInfo[para1][pChar] = ChosenSkin[para1];
- SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
- SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
- return 1;
- }
- }
- }//not connected
- }
- else if (PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6 && PlayerInfo[playerid][pRank] == 9)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[para1][pMember] == 0)
- {
- if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 6; gTeam[para1] = 6; ftext = "Yakuza"; ChosenSkin[para1] = 120; SetPlayerSkin(para1, 258); }
- else { return 1; }
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
- PlayerInfo[para1][pRank] = 1;
- printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
- format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
- SetPlayerInterior(para1,0);
- new rand = random(sizeof(gInviteSpawns));
- SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
- SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
- SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- TogglePlayerControllable(para1, 0);
- SelectChar[para1] = 255;
- SelectCharID[para1] = PlayerInfo[para1][pMember];
- SelectCharPlace[para1] = 1;
- PlayerInfo[para1][pJob] = 0;
- PlayerInfo[para1][pContractTime] = 0;
- PlayerInfo[para1][pModel] = ChosenSkin[para1];
- PlayerInfo[para1][pChar] = ChosenSkin[para1];
- SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
- SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
- return 1;
- }
- }
- }//not connected
- }
- else if (PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 7 && PlayerInfo[playerid][pRank] == 5)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[para1][pMember] == 0)
- {
- if(PlayerInfo[playerid][pLeader] == 7) { PlayerInfo[para1][pTeam] = 7; gTeam[para1] = 7; ftext = "Мэрия"; ChosenSkin[para1] = 51; SetPlayerSkin(para1, 51); }
- else { return 1; }
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
- PlayerInfo[para1][pRank] = 1;
- printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
- format(string, sizeof(string), "Вы были приняты в организация %s, по приглашению лидера %s", ftext, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
- SetPlayerInterior(para1,0);
- new rand = random(sizeof(gInviteSpawns));
- SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
- SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
- SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- TogglePlayerControllable(para1, 0);
- SelectChar[para1] = 255;
- SelectCharID[para1] = PlayerInfo[para1][pMember];
- SelectCharPlace[para1] = 1;
- PlayerInfo[para1][pJob] = 0;
- PlayerInfo[para1][pContractTime] = 0;
- PlayerInfo[para1][pModel] = ChosenSkin[para1];
- PlayerInfo[para1][pChar] = ChosenSkin[para1];
- SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
- SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
- return 1;
- }
- }
- }//not connected
- }
- else if (PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8 && PlayerInfo[playerid][pRank] == 13)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[para1][pMember] == 0)
- {
- if(PlayerInfo[playerid][pLeader] == 8) { PlayerInfo[para1][pTeam] = 8; gTeam[para1] = 8; ftext = "SFPD"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); }
- else { return 1; }
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
- PlayerInfo[para1][pRank] = 1;
- printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
- format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
- SetPlayerInterior(para1,0);
- new rand = random(sizeof(gInviteSpawns));
- SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
- SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
- SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- TogglePlayerControllable(para1, 0);
- SelectChar[para1] = 255;
- SelectCharID[para1] = PlayerInfo[para1][pMember];
- SelectCharPlace[para1] = 1;
- PlayerInfo[para1][pJob] = 0;
- PlayerInfo[para1][pContractTime] = 0;
- PlayerInfo[para1][pModel] = ChosenSkin[para1];
- PlayerInfo[para1][pChar] = ChosenSkin[para1];
- SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
- SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
- return 1;
- }
- }
- }//not connected
- }
- else if (PlayerInfo[playerid][pLeader] == 9 || PlayerInfo[playerid][pMember] == 9 && PlayerInfo[playerid][pRank] == 9)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[para1][pMember] == 0)
- {
- if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 9; gTeam[para1] = 9; ftext = "SF News"; ChosenSkin[para1] = 250; SetPlayerSkin(para1, 250); }
- else { return 1; }
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
- PlayerInfo[para1][pRank] = 1;
- printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
- format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
- SetPlayerInterior(para1,0);
- new rand = random(sizeof(gInviteSpawns));
- SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
- SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
- SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- TogglePlayerControllable(para1, 0);
- SelectChar[para1] = 255;
- SelectCharID[para1] = PlayerInfo[para1][pMember];
- SelectCharPlace[para1] = 1;
- PlayerInfo[para1][pJob] = 0;
- PlayerInfo[para1][pContractTime] = 0;
- PlayerInfo[para1][pModel] = ChosenSkin[para1];
- PlayerInfo[para1][pChar] = ChosenSkin[para1];
- SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
- SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
- return 1;
- }
- }
- }//not connected
- }
- else if (PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 10 && PlayerInfo[playerid][pRank] == 4)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[para1][pMember] == 0)
- {
- if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 10; ftext = "Hitman Agency"; ChosenSkin[para1] = 171; SetPlayerSkin(para1, 171); }
- else { return 1; }
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
- PlayerInfo[para1][pRank] = 1;
- printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
- format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
- SetPlayerInterior(para1,0);
- new rand = random(sizeof(gInviteSpawns));
- SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
- SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
- SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- TogglePlayerControllable(para1, 0);
- SelectChar[para1] = 255;
- SelectCharID[para1] = PlayerInfo[para1][pMember];
- SelectCharPlace[para1] = 1;
- PlayerInfo[para1][pJob] = 0;
- PlayerInfo[para1][pContractTime] = 0;
- PlayerInfo[para1][pModel] = ChosenSkin[para1];
- PlayerInfo[para1][pChar] = ChosenSkin[para1];
- SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
- SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
- return 1;
- }
- }
- }//not connected
- }
- else if (PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 11 && PlayerInfo[playerid][pRank] == 1)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[para1][pMember] == 0)
- {
- if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 11; gTeam[para1] = 11; ftext = "Инструкторы"; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59); }
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
- PlayerInfo[para1][pRank] = 1;
- printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
- format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
- SetPlayerInterior(para1,0);
- new rand = random(sizeof(gInviteSpawns));
- SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
- SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
- SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- TogglePlayerControllable(para1, 0);
- SelectChar[para1] = 255;
- SelectCharID[para1] = PlayerInfo[para1][pMember];
- SelectCharPlace[para1] = 1;
- PlayerInfo[para1][pJob] = 0;
- PlayerInfo[para1][pContractTime] = 0;
- PlayerInfo[para1][pModel] = ChosenSkin[para1];
- PlayerInfo[para1][pChar] = ChosenSkin[para1];
- SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
- SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
- return 1;
- }
- }
- }//not connected
- }
- else if (PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 12 && PlayerInfo[playerid][pRank] == 13)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[para1][pMember] == 0)
- {
- if(PlayerInfo[playerid][pLeader] == 12) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "LVPD"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); }
- else { return 1; }
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
- PlayerInfo[para1][pRank] = 1;
- printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
- format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
- SetPlayerInterior(para1,0);
- new rand = random(sizeof(gInviteSpawns));
- SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
- SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
- SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- TogglePlayerControllable(para1, 0);
- SelectChar[para1] = 255;
- SelectCharID[para1] = PlayerInfo[para1][pMember];
- SelectCharPlace[para1] = 1;
- PlayerInfo[para1][pJob] = 0;
- PlayerInfo[para1][pContractTime] = 0;
- PlayerInfo[para1][pModel] = ChosenSkin[para1];
- PlayerInfo[para1][pChar] = ChosenSkin[para1];
- SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
- SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
- return 1;
- }
- }
- }//not connected
- }
- else if (PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 13 && PlayerInfo[playerid][pRank] == 9)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[para1][pMember] == 0)
- {
- if(PlayerInfo[playerid][pLeader] == 13) { PlayerInfo[para1][pTeam] = 13; gTeam[para1] = 13; ftext = "Русская мафия"; ChosenSkin[para1] = 112; SetPlayerSkin(para1, 112); }
- else { return 1; }
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
- PlayerInfo[para1][pRank] = 1;
- printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
- format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
- SetPlayerInterior(para1,0);
- new rand = random(sizeof(gInviteSpawns));
- SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
- SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
- SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- TogglePlayerControllable(para1, 0);
- SelectChar[para1] = 255;
- SelectCharID[para1] = PlayerInfo[para1][pMember];
- SelectCharPlace[para1] = 1;
- PlayerInfo[para1][pJob] = 0;
- PlayerInfo[para1][pContractTime] = 0;
- PlayerInfo[para1][pModel] = ChosenSkin[para1];
- PlayerInfo[para1][pChar] = ChosenSkin[para1];
- SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
- SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
- return 1;
- }
- }
- }//not connected
- }
- else if (PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pMember] == 14 && PlayerInfo[playerid][pRank] == 9)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[para1][pMember] == 0)
- {
- if(PlayerInfo[playerid][pLeader] == 14) { PlayerInfo[para1][pTeam] = 14; gTeam[para1] = 14; ftext = "Grove Street Gang"; ChosenSkin[para1] = 270; SetPlayerSkin(para1, 270); }
- else { return 1; }
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
- PlayerInfo[para1][pRank] = 1;
- printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
- format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
- SetPlayerInterior(para1,0);
- new rand = random(sizeof(gInviteSpawns));
- SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
- SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
- SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- TogglePlayerControllable(para1, 0);
- SelectChar[para1] = 255;
- SelectCharID[para1] = PlayerInfo[para1][pMember];
- SelectCharPlace[para1] = 1;
- PlayerInfo[para1][pJob] = 0;
- PlayerInfo[para1][pContractTime] = 0;
- PlayerInfo[para1][pModel] = ChosenSkin[para1];
- PlayerInfo[para1][pChar] = ChosenSkin[para1];
- //CheckConnectedPlayer(para1);
- SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
- SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
- return 1;
- }
- }
- }//not connected
- }
- else if (PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 15 && PlayerInfo[playerid][pRank] == 9)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[para1][pMember] == 0)
- {
- if(PlayerInfo[playerid][pLeader] == 15) { PlayerInfo[para1][pTeam] = 15; gTeam[para1] = 15; ftext = "Aztecas Gang"; ChosenSkin[para1] = 114; SetPlayerSkin(para1, 114); }
- else { return 1; }
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
- PlayerInfo[para1][pRank] = 1;
- printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
- format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
- SetPlayerInterior(para1,0);
- new rand = random(sizeof(gInviteSpawns));
- SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
- SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
- SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- TogglePlayerControllable(para1, 0);
- SelectChar[para1] = 255;
- SelectCharID[para1] = PlayerInfo[para1][pMember];
- SelectCharPlace[para1] = 1;
- PlayerInfo[para1][pJob] = 0;
- PlayerInfo[para1][pContractTime] = 0;
- PlayerInfo[para1][pModel] = ChosenSkin[para1];
- PlayerInfo[para1][pChar] = ChosenSkin[para1];
- //CheckConnectedPlayer(para1);
- SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
- SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
- return 1;
- }
- }
- }//not connected
- }
- else if (PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 16 && PlayerInfo[playerid][pRank] == 9)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[para1][pMember] == 0)
- {
- if(PlayerInfo[playerid][pLeader] == 16) { PlayerInfo[para1][pTeam] = 16; gTeam[para1] = 16; ftext = "The Ballas Gang"; ChosenSkin[para1] = 102; SetPlayerSkin(para1, 102); }
- else { return 1; }
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
- PlayerInfo[para1][pRank] = 1;
- printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
- format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
- SetPlayerInterior(para1,0);
- new rand = random(sizeof(gInviteSpawns));
- SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
- SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
- SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- TogglePlayerControllable(para1, 0);
- SelectChar[para1] = 255;
- SelectCharID[para1] = PlayerInfo[para1][pMember];
- SelectCharPlace[para1] = 1;
- PlayerInfo[para1][pJob] = 0;
- PlayerInfo[para1][pContractTime] = 0;
- PlayerInfo[para1][pModel] = ChosenSkin[para1];
- PlayerInfo[para1][pChar] = ChosenSkin[para1];
- //CheckConnectedPlayer(para1);
- SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
- SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
- return 1;
- }
- }
- }//not connected
- }
- else if (PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17 && PlayerInfo[playerid][pRank] == 9)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[para1][pMember] == 0)
- {
- if(PlayerInfo[playerid][pLeader] == 17) { PlayerInfo[para1][pTeam] = 17; gTeam[para1] = 17; ftext = "The Rifa Gang"; ChosenSkin[para1] = 173; SetPlayerSkin(para1, 173); }
- else { return 1; }
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
- PlayerInfo[para1][pRank] = 1;
- printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
- format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
- SetPlayerInterior(para1,0);
- new rand = random(sizeof(gInviteSpawns));
- SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
- SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
- SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- TogglePlayerControllable(para1, 0);
- SelectChar[para1] = 255;
- SelectCharID[para1] = PlayerInfo[para1][pMember];
- SelectCharPlace[para1] = 1;
- PlayerInfo[para1][pJob] = 0;
- PlayerInfo[para1][pContractTime] = 0;
- PlayerInfo[para1][pModel] = ChosenSkin[para1];
- PlayerInfo[para1][pChar] = ChosenSkin[para1];
- //CheckConnectedPlayer(para1);
- SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
- SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
- return 1;
- }
- }
- }//not connected
- }
- else if (PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 18 && PlayerInfo[playerid][pRank] == 9)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[para1][pMember] == 0)
- {
- if(PlayerInfo[playerid][pLeader] == 18) { PlayerInfo[para1][pTeam] = 18; gTeam[para1] = 18; ftext = "Los Santos Vagos Gang"; ChosenSkin[para1] = 108; SetPlayerSkin(para1, 108); }
- else { return 1; }
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
- PlayerInfo[para1][pRank] = 1;
- printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
- format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
- SetPlayerInterior(para1,0);
- new rand = random(sizeof(gInviteSpawns));
- SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
- SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
- SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- TogglePlayerControllable(para1, 0);
- SelectChar[para1] = 255;
- SelectCharID[para1] = PlayerInfo[para1][pMember];
- SelectCharPlace[para1] = 1;
- PlayerInfo[para1][pJob] = 0;
- PlayerInfo[para1][pContractTime] = 0;
- PlayerInfo[para1][pModel] = ChosenSkin[para1];
- PlayerInfo[para1][pChar] = ChosenSkin[para1];
- //CheckConnectedPlayer(para1);
- SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
- SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
- return 1;
- }
- }
- }//not connected
- }
- else if (PlayerInfo[playerid][pLeader] == 19 || PlayerInfo[playerid][pMember] == 19 && PlayerInfo[playerid][pRank] == 14)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[para1][pMember] == 0)
- {
- if(PlayerInfo[playerid][pLeader] == 19) { PlayerInfo[para1][pTeam] = 19; gTeam[para1] = 19; ftext = "Армия ЛВ"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
- else { return 1; }
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
- PlayerInfo[para1][pRank] = 1;
- printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
- format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
- SetPlayerInterior(para1,0);
- new rand = random(sizeof(gInviteSpawns));
- SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
- SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
- SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- TogglePlayerControllable(para1, 0);
- SelectChar[para1] = 255;
- SelectCharID[para1] = PlayerInfo[para1][pMember];
- SelectCharPlace[para1] = 1;
- PlayerInfo[para1][pJob] = 0;
- PlayerInfo[para1][pContractTime] = 0;
- PlayerInfo[para1][pModel] = ChosenSkin[para1];
- PlayerInfo[para1][pChar] = ChosenSkin[para1];
- SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
- SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
- return 1;
- }
- }
- }//not connected
- }
- else if (PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pMember] == 20 && PlayerInfo[playerid][pRank] == 9)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[para1][pMember] == 0)
- {
- if(PlayerInfo[playerid][pLeader] == 20) { PlayerInfo[para1][pTeam] = 20; gTeam[para1] = 20; ftext = "LS News"; ChosenSkin[para1] = 250; SetPlayerSkin(para1, 250); }
- else { return 1; }
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
- PlayerInfo[para1][pRank] = 1;
- printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
- format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
- SetPlayerInterior(para1,0);
- new rand = random(sizeof(gInviteSpawns));
- SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
- SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
- SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- TogglePlayerControllable(para1, 0);
- SelectChar[para1] = 255;
- SelectCharID[para1] = PlayerInfo[para1][pMember];
- SelectCharPlace[para1] = 1;
- PlayerInfo[para1][pJob] = 0;
- PlayerInfo[para1][pContractTime] = 0;
- PlayerInfo[para1][pModel] = ChosenSkin[para1];
- PlayerInfo[para1][pChar] = ChosenSkin[para1];
- SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
- SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
- return 1;
- }
- }
- }//not connected
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Вы не уполномочены использовать эту команду!");
- }
- }
- return 1;
Add Comment
Please, Sign In to add comment