Help/ Changing Faction Rank Skins
#1

in Raven's RolePlay who knows how to change faction skins ? please help me
Reply
#2

Help please
Reply
#3

next time write it in the Raven's roleplay topic

pawn Код:
if(strcmp(cmd, "/invite", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /invite [playerid/PartOfName]");
                return 1;
            }
            new para1;
            new ftext[20];
            para1 = ReturnUser(tmp);
            if (PlayerInfo[playerid][pLeader] >= 1)
            {
                if(IsPlayerConnected(para1))
                {
                    if(para1 != INVALID_PLAYER_ID)
                    {
                        if (gTeam[para1]==TEAM_GREEN && PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pFMember] == 255)
                        {
                            if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Police Force"; ChosenSkin[para1] = 71; SetPlayerSkin(para1, 71); }
                            else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "FBI/ATF"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }
                            else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "National Guard"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
                            else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Firemen/Ambulance"; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); }
                            else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Surenos"; ChosenSkin[para1] = 116; SetPlayerSkin(para1, 116); }
                            else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 6; gTeam[para1] = 6; ftext = "La Famiglia Sinatra"; ChosenSkin[para1] = 125; SetPlayerSkin(para1, 125); }
                            else if(PlayerInfo[playerid][pLeader] == 7) { return 1; }
                            else if(PlayerInfo[playerid][pLeader] == 8) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ftext = "Hitman Agency"; ChosenSkin[para1] = 249; SetPlayerSkin(para1, 249); }
                            else if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "ABC Studio"; ChosenSkin[para1] = 148; SetPlayerSkin(para1, 148); }
                            else if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Taxi Cab Company"; ChosenSkin[para1] = 255; SetPlayerSkin(para1, 255); }
                            else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "School Instructors"; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59); }
                            else if(PlayerInfo[playerid][pLeader] == 14) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Yamaguchi"; ChosenSkin[para1] = 169; SetPlayerSkin(para1, 169); }
                            else if(PlayerInfo[playerid][pLeader] == 15) { PlayerInfo[para1][pTeam] = 15; gTeam[para1] = 15; ftext = "Chornaya Bratva"; ChosenSkin[para1] = 258; SetPlayerSkin(para1, 258); }
                            else if(PlayerInfo[playerid][pLeader] == 16) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Corleone"; ChosenSkin[para1] = 143; SetPlayerSkin(para1, 143); }
                            else { return 1; }
                            GetPlayerName(para1, giveplayer, sizeof(giveplayer));

                            PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
                            PlayerInfo[para1][pRank] = 1;
                            printf("AdmCmd: %s has invited %s to join %s.", sendername, giveplayer, ftext);
                            format(string, sizeof(string), "   You have Joined the %s, you were invited by Leader %s", ftext, sendername);
                            SendClientMessage(para1, COLOR_WHITE, string);
                            format(string, sizeof(string), "   You have Invited %s to join the %s.", giveplayer,ftext);
                            SendClientMessage(playerid, COLOR_WHITE, string);
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GREY, "  That player is currently Wanted / a Different Team / or already a Family Member.");
                            return 1;
                        }
                    }
                }//not connected
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command(leaders only)!");
            }
        }
        return 1;
    }
there is a skin in if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Police Force"; ChosenSkin[para1] = 71; SetPlayerSkin(para1, 71); }
Reply
#4

yes but other ranks ?
Reply
#5

HERE. Just modified the SetPlayerSkin


pawn Код:
if(strcmp(cmd, "/badge", true) == 0 || strcmp(cmd, "/rank", true) == 0) // By Mehtab
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /rank [playerid/PartOfName]");
                return 1;
            }
            giveplayerid = ReturnUser(tmp);
            GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

            if(IsPlayerConnected(giveplayerid))
            {
                format(string, sizeof(string), "*** ------------------ %s ------------------ ***", giveplayer);
                SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
                if(PlayerInfo[giveplayerid][pMember] == 1 || PlayerInfo[giveplayerid][pLeader] == 1)
                {
                    if(PlayerInfo[giveplayerid][pRank] == 8) { format(string, sizeof(string), "* %s's SAPD Rank is Chief.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 7) { format(string, sizeof(string), "* %s's SAPD Rank is Deputy Chief.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 6) { format(string, sizeof(string), "* %s's SAPD Rank is Captain.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 5) { format(string, sizeof(string), "* %s's SAPD Rank is Lieutenant.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 4) { format(string, sizeof(string), "* %s's SAPD Rank is Sergeant.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 3) { format(string, sizeof(string), "* %s's SAPD Rank is Corporal.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 2) { format(string, sizeof(string), "* %s's SAPD Rank is Officer.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 1) { format(string, sizeof(string), "* %s's SAPD Rank is Cadet.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                }
                else if(IsAFreecop(playerid))
                {
                    format(string, sizeof(string), "* %s's SAPD Rank is Voluntary Officer.",giveplayer);
                    SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
                }
                if(PlayerInfo[giveplayerid][pMember] == 2 || PlayerInfo[giveplayerid][pLeader] == 2)
                {
                    if(PlayerInfo[giveplayerid][pRank] == 8) { format(string, sizeof(string), "* %s's FBI Rank is Director.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 7) { format(string, sizeof(string), "* %s's FBI Rank is Deputy Director.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 6) { format(string, sizeof(string), "* %s's FBI Rank is Assistant of Director.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 5) { format(string, sizeof(string), "* %s's FBI Rank is Divison Chief.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 4) { format(string, sizeof(string), "* %s's FBI Rank is Special Agent in Charge.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 3) { format(string, sizeof(string), "* %s's FBI Rank is Special Agent.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 2) { format(string, sizeof(string), "* %s's FBI Rank is Agent.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 1) { format(string, sizeof(string), "* %s's FBI Rank is Cadet.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                }
                if(PlayerInfo[giveplayerid][pMember] == 3 || PlayerInfo[giveplayerid][pLeader] == 3)
                {
                    if(PlayerInfo[giveplayerid][pRank] == 8) { format(string, sizeof(string), "* %s's Army Rank is General.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 7) { format(string, sizeof(string), "* %s's Army Rank is Sub General.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 6) { format(string, sizeof(string), "* %s's Army Rank is Captain.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 5) { format(string, sizeof(string), "* %s's Army Rank is Lieutenant.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 4) { format(string, sizeof(string), "* %s's Army Rank is Major.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 3) { format(string, sizeof(string), "* %s's Army Rank is Sergeant.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 2) { format(string, sizeof(string), "* %s's Army Rank is Soldier.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 1) { format(string, sizeof(string), "* %s's Army Rank is Private.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                }
                if(PlayerInfo[giveplayerid][pMember] == 4 || PlayerInfo[giveplayerid][pLeader] == 4)
                {
                    if(PlayerInfo[giveplayerid][pRank] == 8) { format(string, sizeof(string), "* %s's EMS rank is Commissioner.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 7) { format(string, sizeof(string), "* %s's EMS Rank is Chief.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 6) { format(string, sizeof(string), "* %s's EMS Rank is Captain.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 5) { format(string, sizeof(string), "* %s's EMS Rank is Lieutenant.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 4) { format(string, sizeof(string), "* %s's EMS Rank is Driver.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 3) { format(string, sizeof(string), "* %s's EMS Rank is Firefighter.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 2) { format(string, sizeof(string), "* %s's EMS Rank is Probitionary.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 1) { format(string, sizeof(string), "* %s's EMS Rank is Explorer.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                }
                if(PlayerInfo[giveplayerid][pMember] == 7 || PlayerInfo[giveplayerid][pLeader] == 7)
                {
                    if(PlayerInfo[giveplayerid][pRank] == 6) { format(string, sizeof(string), "* %s's Government Rank is Mayor.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 5) { format(string, sizeof(string), "* %s's Government Rank is Mayor's Assistant.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 4) { format(string, sizeof(string), "* %s's Government Rank is Mayor's Security Chief.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 3) { format(string, sizeof(string), "* %s's Government Rank is Mayor's Drivers Chief.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 2) { format(string, sizeof(string), "* %s's Government Rank is Mayor's Bodyguard.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 1) { format(string, sizeof(string), "* %s's Government Rank is Mayor's Driver.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                }
                if(PlayerInfo[giveplayerid][pMember] == 12 || PlayerInfo[giveplayerid][pLeader] == 12)
                {
                    if(PlayerInfo[giveplayerid][pRank] == 8) { format(string, sizeof(string), "* %s's FD Rank is Chief.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 7) { format(string, sizeof(string), "* %s's FD Rank is Assistant Chief.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 6) { format(string, sizeof(string), "* %s's FD Rank is Captain.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 5) { format(string, sizeof(string), "* %s's FD Rank is Lieutenant.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 4) { format(string, sizeof(string), "* %s's FD Rank is Driver.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 3) { format(string, sizeof(string), "* %s's FD Rank is Firefighter.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 2) { format(string, sizeof(string), "* %s's FD Rank is Probitionary.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pRank] == 1) { format(string, sizeof(string), "* %s's FD Rank is Explorer.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                }
                if(PlayerInfo[giveplayerid][pSwat] >= 1)
                {
                    if(PlayerInfo[giveplayerid][pSwat] == 1) { format(string, sizeof(string), "* %s's S.W.A.T Rank is Operative.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pSwat] == 2) { format(string, sizeof(string), "* %s's S.W.A.T Rank is Instructor.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pSwat] == 3) { format(string, sizeof(string), "* %s's S.W.A.T Rank is Team Sub-Commander.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pSwat] == 4) { format(string, sizeof(string), "* %s's S.W.A.T Rank is Team Commander.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                }
                if(PlayerInfo[giveplayerid][pTactical] >= 1)
                {
                    if(PlayerInfo[giveplayerid][pTactical] == 1) { format(string, sizeof(string), "* %s's Tactical Team Rank is Trainee Unit.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pTactical] == 2) { format(string, sizeof(string), "* %s's Tactical Team Rank is Expert Agent.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pTactical] == 3) { format(string, sizeof(string), "* %s's Tactical Team Rank is Elite Agent.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pTactical] == 4) { format(string, sizeof(string), "* %s's Tactical Team Rank is Master Agent.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                }
                if(PlayerInfo[giveplayerid][pSpecialF] >= 1)
                {
                    if(PlayerInfo[giveplayerid][pSpecialF] == 1) { format(string, sizeof(string), "* %s's Special Forces Rank is 2є Soldier.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pSpecialF] == 2) { format(string, sizeof(string), "* %s's Special Forces Rank is Masterchief.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pSpecialF] == 3) { format(string, sizeof(string), "* %s's Special Forces Rank is Squad Sub-Leader.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[giveplayerid][pSpecialF] == 4) { format(string, sizeof(string), "* %s's Special Forces Rank is Squad Leader.",giveplayer); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); }
                }
                if(OnDuty[giveplayerid] == 1)
                {
                    format(string, sizeof(string), "** %s Currently On Duty.", giveplayer);
                    SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
                }
                if(PlayerInfo[giveplayerid][pDBanned] == 1)
                {
                    format(string, sizeof(string), "** %s Is banned From Cop duty.", giveplayer);
                    SendClientMessage(playerid, TEAM_CYAN_COLOR, string);
                }
                new y, m, d;
                new h,mi,s;
                getdate(y,m,d);
                gettime(h,mi,s);
                format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /badge",d,m,y,h,mi,s,sendername);
                CommandLog(string);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "** Player is not connected!");
            }
        }
        return 1;
    }
Reply
#6

That is for 1 rank I need for all ranks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)