#1

hello there ive made a command (/f) for factions and families

but when i go ig and type /f a message pops out saying that the command doesnt exist

edited: i have everything defined (IsAFac etc


pawn Код:
CMD:f(playerid, params[])
{
   if(noFaction[playerid] == 1)
   {
        SendClientMessageEx(playerid, TEAM_CYAN_COLOR, "Your faction OOC channel was disabled by the leader!");
        return 1;
    }
    if(gFam[playerid] == 1)
    {
        SendClientMessageEx(playerid, TEAM_CYAN_COLOR, "You have your family chat disabled. /togfamily!");
        return 1;
    }

    new string[128];
    if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: (/f)amily [family chat]");
    if( PlayerInfo[playerid][pFMember] < 255 && IsAFac(playerid) ) {
        new member = PlayerInfo[playerid][pMember];
        new fam = PlayerInfo[playerid][pFMember];
        if(member==8)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Director %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Vice Director %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Special Agent %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Agent %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) Marksman %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Freelancer %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (1) Freelancer %s: %s **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(member==10)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Taxi Company Owner %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Shift Supervisor %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Dispatcher %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Cabbie %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) Taxi Rookie %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Trainee %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (1) Trainee %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(member==1)
        {
            if(PlayerInfo[playerid][pRank] == 12) { format(string, sizeof(string), "** (12) Chief %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "** (11) Deputy Chief %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "** (10) Commander %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "** (9) Captain %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "** (8) Lieutenant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** (7) Staff Sergeant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Sergeant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Corporal %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Lead Officer %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Senior Officer %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) Police Officer II %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Police Officer I %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) Cadet %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Cadet %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(member==2)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Director %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Assistant Director %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Special Agent %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Senior Agent %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) Agent %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Staff %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) Intern %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Intern %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(member==3)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Chief %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Captain %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Lieutenant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Sergeant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) Corporal %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Officer %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) Cadet %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Intern %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(member==4)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Chief %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Deputy Chief %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Captain %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Lieutenant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) EMT Paramedic %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) EMT Intermediate %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) EMT Basic %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Intern %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(member==5)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Chief Justice of the Supreme Court %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Associate Justice of the Supreme Court %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Appellate Judge %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) District Judge %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) District Attorney %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Clerk of Court %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) Clerk of Court %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Intern %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(member==6)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Governor %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Lieutenant Governor %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Government Cabinet %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Legislator %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) G.E.T. Officer %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Staff Member %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) Intern %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Intern %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
            else if(member==7)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Sheriff %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Commander %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Captain %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Lieutenant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) Sergeant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Corporal %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) Deputy %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Deputy %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(member==9)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Network Producer %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Assistant Network Producer %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Network Editor %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Network Anchor %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) Local Editor %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Local Reporter %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) Intern %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Intern %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
            else if(member==11)
        {
            if(PlayerInfo[playerid][pRank] == 12) { format(string, sizeof(string), "** (12) General %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "** (11) Major General %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "** (10) Brigadier General %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "** (9) Colonel %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "** (8) Major %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** (7) Captain %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) First Lieutenant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Second Lieutenant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Sergeant Major %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Staff Sergeant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) Sergeant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Corporal %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) Private First Class %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Private First Class %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(member==12)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Executive Officer of RC %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Ruling Council Member %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Mayor %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Tribal Representative %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) People's Representative %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Local Reporter %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) Citizen %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Citizen %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(member==13)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Supreme Commander %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Vice Commander %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Elite Operative %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Operative %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) Elite Marksman %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Marksman %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) Ensign %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Ensign %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(PlayerInfo[playerid][pFMember] < 255)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) %s %s: %s **", FamilyInfo[fam][FamilyRank6], GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) %s %s: %s **", FamilyInfo[fam][FamilyRank5], GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) %s %s: %s  **", FamilyInfo[fam][FamilyRank4], GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) %s %s: %s  **", FamilyInfo[fam][FamilyRank3], GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) %s %s: %s  **", FamilyInfo[fam][FamilyRank2], GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) %s %s: %s  **", FamilyInfo[fam][FamilyRank1], GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) %s %s: %s **", FamilyInfo[fam][FamilyRank1], GetPlayerNameEx(playerid), params); }
            SendNewFamilyMessage(PlayerInfo[playerid][pFMember], TEAM_AZTECAS_COLOR, string);
        }
        return 1;
    }
}
Reply
#2

pawn Код:
CMD:f(playerid, params[])
{
    if(noFaction[playerid] == 1) return SendClientMessageEx(playerid, TEAM_CYAN_COLOR, "Your faction OOC channel was disabled by the leader!");
    if(gFam[playerid] == 1) return SendClientMessageEx(playerid, TEAM_CYAN_COLOR, "You have your family chat disabled. /togfamily!");

    new string[128];
    if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: (/f)amily [family chat]");
    if( PlayerInfo[playerid][pFMember] < 255 && IsAFac(playerid) ) {
        new member = PlayerInfo[playerid][pMember];
        new fam = PlayerInfo[playerid][pFMember];
        if(member==8)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Director %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Vice Director %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Special Agent %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Agent %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) Marksman %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Freelancer %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (1) Freelancer %s: %s **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(member==10)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Taxi Company Owner %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Shift Supervisor %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Dispatcher %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Cabbie %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) Taxi Rookie %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Trainee %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (1) Trainee %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(member==1)
        {
            if(PlayerInfo[playerid][pRank] == 12) { format(string, sizeof(string), "** (12) Chief %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "** (11) Deputy Chief %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "** (10) Commander %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "** (9) Captain %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "** (8) Lieutenant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** (7) Staff Sergeant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Sergeant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Corporal %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Lead Officer %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Senior Officer %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) Police Officer II %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Police Officer I %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) Cadet %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Cadet %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(member==2)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Director %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Assistant Director %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Special Agent %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Senior Agent %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) Agent %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Staff %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) Intern %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Intern %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(member==3)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Chief %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Captain %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Lieutenant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Sergeant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) Corporal %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Officer %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) Cadet %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Intern %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(member==4)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Chief %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Deputy Chief %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Captain %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Lieutenant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) EMT Paramedic %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) EMT Intermediate %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) EMT Basic %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Intern %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(member==5)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Chief Justice of the Supreme Court %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Associate Justice of the Supreme Court %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Appellate Judge %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) District Judge %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) District Attorney %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Clerk of Court %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) Clerk of Court %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Intern %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(member==6)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Governor %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Lieutenant Governor %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Government Cabinet %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Legislator %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) G.E.T. Officer %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Staff Member %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) Intern %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Intern %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(member==7)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Sheriff %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Commander %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Captain %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Lieutenant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) Sergeant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Corporal %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) Deputy %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Deputy %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(member==9)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Network Producer %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Assistant Network Producer %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Network Editor %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Network Anchor %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) Local Editor %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Local Reporter %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) Intern %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Intern %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
            else if(member==11)
        {
            if(PlayerInfo[playerid][pRank] == 12) { format(string, sizeof(string), "** (12) General %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "** (11) Major General %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "** (10) Brigadier General %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "** (9) Colonel %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "** (8) Major %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** (7) Captain %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) First Lieutenant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Second Lieutenant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Sergeant Major %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Staff Sergeant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) Sergeant %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Corporal %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) Private First Class %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Private First Class %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(member==12)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Executive Officer of RC %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Ruling Council Member %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Mayor %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Tribal Representative %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) People's Representative %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Local Reporter %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) Citizen %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Citizen %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(member==13)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Supreme Commander %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Vice Commander %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Elite Operative %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Operative %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) Elite Marksman %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Marksman %s: %s **", GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 0) { format(string, sizeof(string), "** (0) Ensign %s: %s **", GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) Ensign %s: %s. **", GetPlayerNameEx(playerid), params); }
            SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
        }
        else if(PlayerInfo[playerid][pFMember] < 255)
        {
            if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) %s %s: %s **", FamilyInfo[fam][FamilyRank6], GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) %s %s: %s **", FamilyInfo[fam][FamilyRank5], GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) %s %s: %s  **", FamilyInfo[fam][FamilyRank4], GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) %s %s: %s  **", FamilyInfo[fam][FamilyRank3], GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) %s %s: %s  **", FamilyInfo[fam][FamilyRank2], GetPlayerNameEx(playerid), params); }
            else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) %s %s: %s  **", FamilyInfo[fam][FamilyRank1], GetPlayerNameEx(playerid), params); }
            else { format(string, sizeof(string), "** (0) %s %s: %s **", FamilyInfo[fam][FamilyRank1], GetPlayerNameEx(playerid), params); }
            SendNewFamilyMessage(PlayerInfo[playerid][pFMember], TEAM_AZTECAS_COLOR, string);
        }      
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)