Shows last division.. (Just read.)
#1

Okay, so basically I need my command to show what their new division is.

When I use the command IG: it will say their last division.

Say I was invited to a faction; default division is G.D. - if I want to set a person to another division, it will say G.D. when I set it.

** Chief of Police Jacob has set you to the G.D. division.
- That's what happens when I set them to a new division.
- G.D. represents their old division.

pawn Код:
CMD:setdiv(playerid, params[])
{
    if(PlayerInfo[playerid][pLeader] >= 1)
    {
                new plrank[50];
                new giveplayerid;
                if PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pRank] == 0 *then plrank = faction1rankdef;
                else if PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pRank] == 1 *then plrank = faction1rank1;
                else if PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pRank] == 2 *then plrank = faction1rank2;
                else if PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pRank] == 3 *then plrank = faction1rank3;
                else if PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pRank] == 4 *then plrank = faction1rank4;
                else if PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pRank] == 5 *then plrank = faction1rank5;
                else if PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pRank] == 6 *then plrank = faction1rank6;
                else if PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pRank] == 7 *then plrank = faction1rank7;
                else if PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pRank] == 8 *then plrank = faction1rank8;
                else if PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pRank] == 9 *then plrank = faction1rank9;
                else if PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pRank] == 0 *then plrank = faction2rankdef;
                else if PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pRank] == 1 *then plrank = faction2rank1;
                else if PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pRank] == 2 *then plrank = faction2rank2;
                else if PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pRank] == 3 *then plrank = faction2rank3;
                else if PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pRank] == 4 *then plrank = faction2rank4;
                else if PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pRank] == 5 *then plrank = faction2rank5;
                else if PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pRank] == 6 *then plrank = faction2rank6;
                else if PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pRank] == 7 *then plrank = faction2rank7;
                else if PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pRank] == 8 *then plrank = faction2rank8;
                else if PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pRank] == 9 *then plrank = faction2rank9;
                else if PlayerInfo[playerid][pMember] == 3 && PlayerInfo[playerid][pRank] == 0 *then plrank = faction3rankdef;
                else if PlayerInfo[playerid][pMember] == 3 && PlayerInfo[playerid][pRank] == 1 *then plrank = faction3rank1;
                else if PlayerInfo[playerid][pMember] == 3 && PlayerInfo[playerid][pRank] == 2 *then plrank = faction3rank2;
                else if PlayerInfo[playerid][pMember] == 3 && PlayerInfo[playerid][pRank] == 3 *then plrank = faction3rank3;
                else if PlayerInfo[playerid][pMember] == 3 && PlayerInfo[playerid][pRank] == 4 *then plrank = faction3rank4;
                else if PlayerInfo[playerid][pMember] == 3 && PlayerInfo[playerid][pRank] == 5 *then plrank = faction3rank5;
                else if PlayerInfo[playerid][pMember] == 3 && PlayerInfo[playerid][pRank] == 6 *then plrank = faction3rank6;
                else if PlayerInfo[playerid][pMember] == 3 && PlayerInfo[playerid][pRank] == 7 *then plrank = faction3rank7;
                else if PlayerInfo[playerid][pMember] == 3 && PlayerInfo[playerid][pRank] == 8 *then plrank = faction3rank8;
                else if PlayerInfo[playerid][pMember] == 3 && PlayerInfo[playerid][pRank] == 9 *then plrank = faction3rank9;
                else if PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] == 0 *then plrank = faction4rankdef;
                else if PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] == 1 *then plrank = faction4rank1;
                else if PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] == 2 *then plrank = faction4rank2;
                else if PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] == 3 *then plrank = faction4rank3;
                else if PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] == 4 *then plrank = faction4rank4;
                else if PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] == 5 *then plrank = faction4rank5;
                else if PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] == 6 *then plrank = faction4rank6;
                else if PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] == 7 *then plrank = faction4rank7;
                else if PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] == 8 *then plrank = faction4rank8;
                else if PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] == 9 *then plrank = faction4rank9;
                else if PlayerInfo[playerid][pMember] == 6 && PlayerInfo[playerid][pRank] == 0 *then plrank = faction6rankdef;
                else if PlayerInfo[playerid][pMember] == 6 && PlayerInfo[playerid][pRank] == 1 *then plrank = faction6rank1;
                else if PlayerInfo[playerid][pMember] == 6 && PlayerInfo[playerid][pRank] == 2 *then plrank = faction6rank2;
                else if PlayerInfo[playerid][pMember] == 6 && PlayerInfo[playerid][pRank] == 3 *then plrank = faction6rank3;
                else if PlayerInfo[playerid][pMember] == 6 && PlayerInfo[playerid][pRank] == 4 *then plrank = faction6rank4;
                else if PlayerInfo[playerid][pMember] == 6 && PlayerInfo[playerid][pRank] == 5 *then plrank = faction6rank5;
                else if PlayerInfo[playerid][pMember] == 6 && PlayerInfo[playerid][pRank] == 6 *then plrank = faction6rank6;
                else if PlayerInfo[playerid][pMember] == 6 && PlayerInfo[playerid][pRank] == 7 *then plrank = faction6rank7;
                else if PlayerInfo[playerid][pMember] == 6 && PlayerInfo[playerid][pRank] == 8 *then plrank = faction6rank8;
                else if PlayerInfo[playerid][pMember] == 6 && PlayerInfo[playerid][pRank] == 9 *then plrank = faction6rank9;
                else if PlayerInfo[playerid][pMember] == 7 && PlayerInfo[playerid][pRank] == 0 *then plrank = faction7rankdef;
                else if PlayerInfo[playerid][pMember] == 7 && PlayerInfo[playerid][pRank] == 1 *then plrank = faction7rank1;
                else if PlayerInfo[playerid][pMember] == 7 && PlayerInfo[playerid][pRank] == 2 *then plrank = faction7rank2;
                else if PlayerInfo[playerid][pMember] == 7 && PlayerInfo[playerid][pRank] == 3 *then plrank = faction7rank3;
                else if PlayerInfo[playerid][pMember] == 7 && PlayerInfo[playerid][pRank] == 4 *then plrank = faction7rank4;
                else if PlayerInfo[playerid][pMember] == 7 && PlayerInfo[playerid][pRank] == 5 *then plrank = faction7rank5;
                else if PlayerInfo[playerid][pMember] == 7 && PlayerInfo[playerid][pRank] == 6 *then plrank = faction7rank6;
                else if PlayerInfo[playerid][pMember] == 7 && PlayerInfo[playerid][pRank] == 7 *then plrank = faction7rank7;
                else if PlayerInfo[playerid][pMember] == 7 && PlayerInfo[playerid][pRank] == 8 *then plrank = faction7rank8;
                else if PlayerInfo[playerid][pMember] == 7 && PlayerInfo[playerid][pRank] == 9 *then plrank = faction7rank9;
                else if PlayerInfo[playerid][pMember] == 8 && PlayerInfo[playerid][pRank] == 9 *then plrank = faction8rank9;
                else if PlayerInfo[playerid][pMember] == 9 && PlayerInfo[playerid][pRank] == 0 *then plrank = faction9rankdef;
                else if PlayerInfo[playerid][pMember] == 9 && PlayerInfo[playerid][pRank] == 1 *then plrank = faction9rank1;
                else if PlayerInfo[playerid][pMember] == 9 && PlayerInfo[playerid][pRank] == 2 *then plrank = faction9rank2;
                else if PlayerInfo[playerid][pMember] == 9 && PlayerInfo[playerid][pRank] == 3 *then plrank = faction9rank3;
                else if PlayerInfo[playerid][pMember] == 9 && PlayerInfo[playerid][pRank] == 4 *then plrank = faction9rank4;
                else if PlayerInfo[playerid][pMember] == 9 && PlayerInfo[playerid][pRank] == 5 *then plrank = faction9rank5;
                else if PlayerInfo[playerid][pMember] == 9 && PlayerInfo[playerid][pRank] == 6 *then plrank = faction9rank6;
                else if PlayerInfo[playerid][pMember] == 9 && PlayerInfo[playerid][pRank] == 7 *then plrank = faction9rank7;
                else if PlayerInfo[playerid][pMember] == 9 && PlayerInfo[playerid][pRank] == 8 *then plrank = faction9rank8;
                else if PlayerInfo[playerid][pMember] == 9 && PlayerInfo[playerid][pRank] == 9 *then plrank = faction9rank9;
                else if PlayerInfo[playerid][pMember] == 11 && PlayerInfo[playerid][pRank] == 0 *then plrank = faction11rankdef;
                else if PlayerInfo[playerid][pMember] == 11 && PlayerInfo[playerid][pRank] == 1 *then plrank = faction11rank1;
                else if PlayerInfo[playerid][pMember] == 11 && PlayerInfo[playerid][pRank] == 2 *then plrank = faction11rank2;
                else if PlayerInfo[playerid][pMember] == 11 && PlayerInfo[playerid][pRank] == 3 *then plrank = faction11rank3;
                else if PlayerInfo[playerid][pMember] == 11 && PlayerInfo[playerid][pRank] == 4 *then plrank = faction11rank4;
                else if PlayerInfo[playerid][pMember] == 11 && PlayerInfo[playerid][pRank] == 5 *then plrank = faction11rank5;
                else if PlayerInfo[playerid][pMember] == 11 && PlayerInfo[playerid][pRank] == 6 *then plrank = faction11rank6;
                else if PlayerInfo[playerid][pMember] == 11 && PlayerInfo[playerid][pRank] == 7 *then plrank = faction11rank7;
                else if PlayerInfo[playerid][pMember] == 11 && PlayerInfo[playerid][pRank] == 8 *then plrank = faction11rank8;
                else if PlayerInfo[playerid][pMember] == 11 && PlayerInfo[playerid][pRank] == 9 *then plrank = faction11rank9;
                else if PlayerInfo[playerid][pMember] == 13 && PlayerInfo[playerid][pRank] == 0 *then plrank = faction13rankdef;
                else if PlayerInfo[playerid][pMember] == 13 && PlayerInfo[playerid][pRank] == 1 *then plrank = faction13rank1;
                else if PlayerInfo[playerid][pMember] == 13 && PlayerInfo[playerid][pRank] == 2 *then plrank = faction13rank2;
                else if PlayerInfo[playerid][pMember] == 13 && PlayerInfo[playerid][pRank] == 3 *then plrank = faction13rank3;
                else if PlayerInfo[playerid][pMember] == 13 && PlayerInfo[playerid][pRank] == 4 *then plrank = faction13rank4;
                else if PlayerInfo[playerid][pMember] == 13 && PlayerInfo[playerid][pRank] == 5 *then plrank = faction13rank5;
                else if PlayerInfo[playerid][pMember] == 13 && PlayerInfo[playerid][pRank] == 6 *then plrank = faction13rank6;
                else if PlayerInfo[playerid][pMember] == 13 && PlayerInfo[playerid][pRank] == 7 *then plrank = faction13rank7;
                else if PlayerInfo[playerid][pMember] == 13 && PlayerInfo[playerid][pRank] == 8 *then plrank = faction13rank8;
                else if PlayerInfo[playerid][pMember] == 13 && PlayerInfo[playerid][pRank] == 9 *then plrank = faction13rank9;
                new pldivision[50];
                if PlayerInfo[giveplayerid][pMember] == 1 && PlayerInfo[giveplayerid][pDivision] == 0 *then pldivision = faction1divdef;
                else if PlayerInfo[giveplayerid][pMember] == 1 && PlayerInfo[giveplayerid][pDivision] == 1 *then pldivision = faction1div1;
                else if PlayerInfo[giveplayerid][pMember] == 1 && PlayerInfo[giveplayerid][pDivision] == 2 *then pldivision = faction1div2;
                else if PlayerInfo[giveplayerid][pMember] == 1 && PlayerInfo[giveplayerid][pDivision] == 3 *then pldivision = faction1div3;
                else if PlayerInfo[giveplayerid][pMember] == 1 && PlayerInfo[giveplayerid][pDivision] == 4 *then pldivision = faction1div4;
                else if PlayerInfo[giveplayerid][pMember] == 1 && PlayerInfo[giveplayerid][pDivision] == 5 *then pldivision = faction1div5;
                else if PlayerInfo[giveplayerid][pMember] == 1 && PlayerInfo[giveplayerid][pDivision] == 6 *then pldivision = faction1div6;
                else if PlayerInfo[giveplayerid][pMember] == 1 && PlayerInfo[giveplayerid][pDivision] == 7 *then pldivision = faction1div7;
                else if PlayerInfo[giveplayerid][pMember] == 1 && PlayerInfo[giveplayerid][pDivision] == 8 *then pldivision = faction1div8;
                else if PlayerInfo[giveplayerid][pMember] == 1 && PlayerInfo[giveplayerid][pDivision] == 9 *then pldivision = faction1div9;
                else if PlayerInfo[giveplayerid][pMember] == 2 && PlayerInfo[giveplayerid][pDivision] == 0 *then pldivision = faction2divdef;
                else if PlayerInfo[giveplayerid][pMember] == 2 && PlayerInfo[giveplayerid][pDivision] == 1 *then pldivision = faction2div1;
                else if PlayerInfo[giveplayerid][pMember] == 2 && PlayerInfo[giveplayerid][pDivision] == 2 *then pldivision = faction2div2;
                else if PlayerInfo[giveplayerid][pMember] == 2 && PlayerInfo[giveplayerid][pDivision] == 3 *then pldivision = faction2div3;
                else if PlayerInfo[giveplayerid][pMember] == 2 && PlayerInfo[giveplayerid][pDivision] == 4 *then pldivision = faction2div4;
                else if PlayerInfo[giveplayerid][pMember] == 2 && PlayerInfo[giveplayerid][pDivision] == 5 *then pldivision = faction2div5;
                else if PlayerInfo[giveplayerid][pMember] == 2 && PlayerInfo[giveplayerid][pDivision] == 6 *then pldivision = faction2div6;
                else if PlayerInfo[giveplayerid][pMember] == 2 && PlayerInfo[giveplayerid][pDivision] == 7 *then pldivision = faction2div7;
                else if PlayerInfo[giveplayerid][pMember] == 2 && PlayerInfo[giveplayerid][pDivision] == 8 *then pldivision = faction2div8;
                else if PlayerInfo[giveplayerid][pMember] == 2 && PlayerInfo[giveplayerid][pDivision] == 9 *then pldivision = faction2div9;
                else if PlayerInfo[giveplayerid][pMember] == 3 && PlayerInfo[giveplayerid][pDivision] == 0 *then pldivision = faction3divdef;
                else if PlayerInfo[giveplayerid][pMember] == 3 && PlayerInfo[giveplayerid][pDivision] == 1 *then pldivision = faction3div1;
                else if PlayerInfo[giveplayerid][pMember] == 3 && PlayerInfo[giveplayerid][pDivision] == 2 *then pldivision = faction3div2;
                else if PlayerInfo[giveplayerid][pMember] == 3 && PlayerInfo[giveplayerid][pDivision] == 3 *then pldivision = faction3div3;
                else if PlayerInfo[giveplayerid][pMember] == 3 && PlayerInfo[giveplayerid][pDivision] == 4 *then pldivision = faction3div4;
                else if PlayerInfo[giveplayerid][pMember] == 3 && PlayerInfo[giveplayerid][pDivision] == 5 *then pldivision = faction3div5;
                else if PlayerInfo[giveplayerid][pMember] == 3 && PlayerInfo[giveplayerid][pDivision] == 6 *then pldivision = faction3div6;
                else if PlayerInfo[giveplayerid][pMember] == 3 && PlayerInfo[giveplayerid][pDivision] == 7 *then pldivision = faction3div7;
                else if PlayerInfo[giveplayerid][pMember] == 3 && PlayerInfo[giveplayerid][pDivision] == 8 *then pldivision = faction3div8;
                else if PlayerInfo[giveplayerid][pMember] == 3 && PlayerInfo[giveplayerid][pDivision] == 9 *then pldivision = faction3div9;
                else if PlayerInfo[giveplayerid][pMember] == 4 && PlayerInfo[giveplayerid][pDivision] == 0 *then pldivision = faction4divdef;
                else if PlayerInfo[giveplayerid][pMember] == 4 && PlayerInfo[giveplayerid][pDivision] == 1 *then pldivision = faction4div1;
                else if PlayerInfo[giveplayerid][pMember] == 4 && PlayerInfo[giveplayerid][pDivision] == 2 *then pldivision = faction4div2;
                else if PlayerInfo[giveplayerid][pMember] == 4 && PlayerInfo[giveplayerid][pDivision] == 3 *then pldivision = faction4div3;
                else if PlayerInfo[giveplayerid][pMember] == 4 && PlayerInfo[giveplayerid][pDivision] == 4 *then pldivision = faction4div4;
                else if PlayerInfo[giveplayerid][pMember] == 4 && PlayerInfo[giveplayerid][pDivision] == 5 *then pldivision = faction4div5;
                else if PlayerInfo[giveplayerid][pMember] == 4 && PlayerInfo[giveplayerid][pDivision] == 6 *then pldivision = faction4div6;
                else if PlayerInfo[giveplayerid][pMember] == 4 && PlayerInfo[giveplayerid][pDivision] == 7 *then pldivision = faction4div7;
                else if PlayerInfo[giveplayerid][pMember] == 4 && PlayerInfo[giveplayerid][pDivision] == 8 *then pldivision = faction4div8;
                else if PlayerInfo[giveplayerid][pMember] == 4 && PlayerInfo[giveplayerid][pDivision] == 9 *then pldivision = faction4div9;
                else if PlayerInfo[giveplayerid][pMember] == 6 && PlayerInfo[giveplayerid][pDivision] == 0 *then pldivision = faction6divdef;
                else if PlayerInfo[giveplayerid][pMember] == 6 && PlayerInfo[giveplayerid][pDivision] == 1 *then pldivision = faction6div1;
                else if PlayerInfo[giveplayerid][pMember] == 6 && PlayerInfo[giveplayerid][pDivision] == 2 *then pldivision = faction6div2;
                else if PlayerInfo[giveplayerid][pMember] == 6 && PlayerInfo[giveplayerid][pDivision] == 3 *then pldivision = faction6div3;
                else if PlayerInfo[giveplayerid][pMember] == 6 && PlayerInfo[giveplayerid][pDivision] == 4 *then pldivision = faction6div4;
                else if PlayerInfo[giveplayerid][pMember] == 6 && PlayerInfo[giveplayerid][pDivision] == 5 *then pldivision = faction6div5;
                else if PlayerInfo[giveplayerid][pMember] == 6 && PlayerInfo[giveplayerid][pDivision] == 6 *then pldivision = faction6div6;
                else if PlayerInfo[giveplayerid][pMember] == 6 && PlayerInfo[giveplayerid][pDivision] == 7 *then pldivision = faction6div7;
                else if PlayerInfo[giveplayerid][pMember] == 6 && PlayerInfo[giveplayerid][pDivision] == 8 *then pldivision = faction6div8;
                else if PlayerInfo[giveplayerid][pMember] == 6 && PlayerInfo[giveplayerid][pDivision] == 9 *then pldivision = faction6div9;
                else if PlayerInfo[giveplayerid][pMember] == 7 && PlayerInfo[giveplayerid][pDivision] == 0 *then pldivision = faction7divdef;
                else if PlayerInfo[giveplayerid][pMember] == 7 && PlayerInfo[giveplayerid][pDivision] == 1 *then pldivision = faction7div1;
                else if PlayerInfo[giveplayerid][pMember] == 7 && PlayerInfo[giveplayerid][pDivision] == 2 *then pldivision = faction7div2;
                else if PlayerInfo[giveplayerid][pMember] == 7 && PlayerInfo[giveplayerid][pDivision] == 3 *then pldivision = faction7div3;
                else if PlayerInfo[giveplayerid][pMember] == 7 && PlayerInfo[giveplayerid][pDivision] == 4 *then pldivision = faction7div4;
                else if PlayerInfo[giveplayerid][pMember] == 7 && PlayerInfo[giveplayerid][pDivision] == 5 *then pldivision = faction7div5;
                else if PlayerInfo[giveplayerid][pMember] == 7 && PlayerInfo[giveplayerid][pDivision] == 6 *then pldivision = faction7div6;
                else if PlayerInfo[giveplayerid][pMember] == 7 && PlayerInfo[giveplayerid][pDivision] == 7 *then pldivision = faction7div7;
                else if PlayerInfo[giveplayerid][pMember] == 7 && PlayerInfo[giveplayerid][pDivision] == 8 *then pldivision = faction7div8;
                else if PlayerInfo[giveplayerid][pMember] == 7 && PlayerInfo[giveplayerid][pDivision] == 9 *then pldivision = faction7div9;
                else if PlayerInfo[giveplayerid][pMember] == 9 && PlayerInfo[giveplayerid][pDivision] == 0 *then pldivision = faction9divdef;
                else if PlayerInfo[giveplayerid][pMember] == 9 && PlayerInfo[giveplayerid][pDivision] == 1 *then pldivision = faction9div1;
                else if PlayerInfo[giveplayerid][pMember] == 9 && PlayerInfo[giveplayerid][pDivision] == 2 *then pldivision = faction9div2;
                else if PlayerInfo[giveplayerid][pMember] == 9 && PlayerInfo[giveplayerid][pDivision] == 3 *then pldivision = faction9div3;
                else if PlayerInfo[giveplayerid][pMember] == 9 && PlayerInfo[giveplayerid][pDivision] == 4 *then pldivision = faction9div4;
                else if PlayerInfo[giveplayerid][pMember] == 9 && PlayerInfo[giveplayerid][pDivision] == 5 *then pldivision = faction9div5;
                else if PlayerInfo[giveplayerid][pMember] == 9 && PlayerInfo[giveplayerid][pDivision] == 6 *then pldivision = faction9div6;
                else if PlayerInfo[giveplayerid][pMember] == 9 && PlayerInfo[giveplayerid][pDivision] == 7 *then pldivision = faction9div7;
                else if PlayerInfo[giveplayerid][pMember] == 9 && PlayerInfo[giveplayerid][pDivision] == 8 *then pldivision = faction9div8;
                else if PlayerInfo[giveplayerid][pMember] == 9 && PlayerInfo[giveplayerid][pDivision] == 9 *then pldivision = faction9div9;
                else if PlayerInfo[giveplayerid][pMember] == 11 && PlayerInfo[giveplayerid][pDivision] == 0 *then pldivision = faction11divdef;
                else if PlayerInfo[giveplayerid][pMember] == 11 && PlayerInfo[giveplayerid][pDivision] == 1 *then pldivision = faction11div1;
                else if PlayerInfo[giveplayerid][pMember] == 11 && PlayerInfo[giveplayerid][pDivision] == 2 *then pldivision = faction11div2;
                else if PlayerInfo[giveplayerid][pMember] == 11 && PlayerInfo[giveplayerid][pDivision] == 3 *then pldivision = faction11div3;
                else if PlayerInfo[giveplayerid][pMember] == 11 && PlayerInfo[giveplayerid][pDivision] == 4 *then pldivision = faction11div4;
                else if PlayerInfo[giveplayerid][pMember] == 11 && PlayerInfo[giveplayerid][pDivision] == 5 *then pldivision = faction11div5;
                else if PlayerInfo[giveplayerid][pMember] == 11 && PlayerInfo[giveplayerid][pDivision] == 6 *then pldivision = faction11div6;
                else if PlayerInfo[giveplayerid][pMember] == 11 && PlayerInfo[giveplayerid][pDivision] == 7 *then pldivision = faction11div7;
                else if PlayerInfo[giveplayerid][pMember] == 11 && PlayerInfo[giveplayerid][pDivision] == 8 *then pldivision = faction11div8;
                else if PlayerInfo[giveplayerid][pMember] == 11 && PlayerInfo[giveplayerid][pDivision] == 9 *then pldivision = faction11div9;
                else if PlayerInfo[giveplayerid][pMember] == 13 && PlayerInfo[giveplayerid][pDivision] == 0 *then pldivision = faction13divdef;
                else if PlayerInfo[giveplayerid][pMember] == 13 && PlayerInfo[giveplayerid][pDivision] == 1 *then pldivision = faction13div1;
                else if PlayerInfo[giveplayerid][pMember] == 13 && PlayerInfo[giveplayerid][pDivision] == 2 *then pldivision = faction13div2;
                else if PlayerInfo[giveplayerid][pMember] == 13 && PlayerInfo[giveplayerid][pDivision] == 3 *then pldivision = faction13div3;
                else if PlayerInfo[giveplayerid][pMember] == 13 && PlayerInfo[giveplayerid][pDivision] == 4 *then pldivision = faction13div4;
                else if PlayerInfo[giveplayerid][pMember] == 13 && PlayerInfo[giveplayerid][pDivision] == 5 *then pldivision = faction13div5;
                else if PlayerInfo[giveplayerid][pMember] == 13 && PlayerInfo[giveplayerid][pDivision] == 6 *then pldivision = faction13div6;
                else if PlayerInfo[giveplayerid][pMember] == 13 && PlayerInfo[giveplayerid][pDivision] == 7 *then pldivision = faction13div7;
                else if PlayerInfo[giveplayerid][pMember] == 13 && PlayerInfo[giveplayerid][pDivision] == 8 *then pldivision = faction13div8;
                else if PlayerInfo[giveplayerid][pMember] == 13 && PlayerInfo[giveplayerid][pDivision] == 9 *then pldivision = faction13div9;
        new string[600], division;
        if(sscanf(params, "ud", giveplayerid, division)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setdiv [playerid/partofname] [division (1-9)]");

        if(division > 9 || division < 0) { SendClientMessage(playerid, COLOR_GREY, "   Don't go below number 0, or above number 9!"); return 1; }

        if(IsPlayerConnected(giveplayerid))
        {
            if(PlayerInfo[playerid][pLeader] != PlayerInfo[giveplayerid][pMember])
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   That person is not in your faction!");
                return 1;
            }
            PlayerInfo[giveplayerid][pDivision] = division;
            SetTimer("DivSet", 3000, false);
            if(PlayerInfo[giveplayerid][pDivision])
            {
                format(string, sizeof(string), "   %s %s has set you to the %s division.", plrank, GetPlayerNameEx(playerid), pldivision);
            }
            SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);

            format(string, sizeof(string), "   You have set %s to the %s division.", GetPlayerNameEx(giveplayerid), pldivision);
            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command (leaders only)!");
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)