SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Romānă/Romanian

 
 
Thread Tools Display Modes
Old 25/08/2013, 10:07 AM   #1
BoSs_S
Huge Clucker
 
BoSs_S's Avatar
 
Join Date: Mar 2011
Posts: 484
Reputation: 5
Default problema /f

Am si eu o problema la comanda /f de cateva zile nu imi mai merge..

pawn Code:
//----------------------------------[LeaderChat]-----------------------------------------------
    if(strcmp(cmd, "/family", true) == 0 || strcmp(cmd, "/f", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pMuted] == 1 && PlayerInfo[playerid][pMuteTime] > 0)
            {
                SendClientMessage(playerid, TEAM_CYAN_COLOR, "Nu poti vorbii, esti pe MUTE!");
                return 1;
            }
            GetPlayerName(playerid, sendername, sizeof(sendername));
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[64];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            result[0] = toupper(result[0]);
            if(!strlen(result))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/f)amily [family chat]");
                return 1;
            }
            if (gTeam[playerid] >= 5 || PlayerInfo[playerid][pFMembru] < 255)
            {
                new leader = PlayerInfo[playerid][pLider];
                new member = PlayerInfo[playerid][pMembru];
                if(member==5||member==6)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Mafioso %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Caporale %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Capo %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soldier %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Associate %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Piccoto %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Outsider %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(member==8)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Director %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Vice-Director %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Special Agent %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Agent %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Marksman %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Freelancer %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Freelancer %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(member==11)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Director %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Vice-Director %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Manager %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Senior Instructor %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Instructor %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Trainee %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Trainee %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(member==12)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** BigPapa %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Triple OG %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Double OG %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soulja %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Gangsta %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Recruits %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Recruits %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(member==13)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Big Papa %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Triple OG %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Double OG %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soulja %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Gangsta %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Recruits %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Recruits %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(member==14)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** El Jefe %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Veterano %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Soldado %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Hermano %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Vato %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Ese %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Ese %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(member==15)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Senior %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Drecha Mano %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Mafioso %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soldato %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Azteca %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Cabron %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Cabron %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(member==16)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Big Papa %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Triple OG %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Double OG %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soulja %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Gangsta %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Recrut %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Recrut %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(member==18)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Big Papa %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Triple OG %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Double OG %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soulja %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Gangsta %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Recrut %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Recrut %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(member==19)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Big Papa %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Triple OG %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Double OG %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soulja %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Gangsta %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Recrut %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Recrut %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(member==20)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Big Papa %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Triple OG %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Double OG %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soulja %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Gangsta %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Recrut %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Recrut %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==5||leader==6)
                {
                    format(string, sizeof(string), "** Mafioso %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==8)
                {
                    format(string, sizeof(string), "** Director %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==9)
                {
                    format(string, sizeof(string), "** Network Producer %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==10)
                {
                    format(string, sizeof(string), "** Taxi Company Owner %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==11)
                {
                    format(string, sizeof(string), "** Director %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==12)
                {
                    format(string, sizeof(string), "** BigPapa %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==13)
                {
                    format(string, sizeof(string), "** Big Papa %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==14)
                {
                    format(string, sizeof(string), "** Senior %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==15)
                {
                    format(string, sizeof(string), "** Senior %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==16)
                {
                    format(string, sizeof(string), "** Owner %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==18)
                {
                    format(string, sizeof(string), "** Senior %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==19)
                {
                    format(string, sizeof(string), "** Senior %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==20)
                {
                    format(string, sizeof(string), "** Senior %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(PlayerInfo[playerid][pFMembru] < 255)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Mafioso %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Caporale %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Capo %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soldier %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Associate %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Piccoto %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Outsider %s: %s. )) **", sendername, result); }
                    SendNewFamilyMessage(PlayerInfo[playerid][pFMembru], TEAM_AZTECAS_COLOR, string);
                }
                printf("%s", string);
                return 1;
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD2, " Nu faci parte din nici o factiune!");
                return 1;
            }
        }//not connected
        return 1;
    }
__________________
[IMG]
BoSs_S is offline  
Old 25/08/2013, 10:21 AM   #2
DanishHaq
High-roller
 
Join Date: Sep 2011
Location: Manchester, England, United Kingdom
Posts: 1,351
Reputation: 134
Default Re: problema /f

Arata-ne public SendFamilyMessage
DanishHaq is offline  
Old 25/08/2013, 10:45 AM   #3
BoSs_S
Huge Clucker
 
BoSs_S's Avatar
 
Join Date: Mar 2011
Posts: 484
Reputation: 5
Default Re: problema /f

pawn Code:
public SendFamilyMessage(family, color, string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerInfo[i][pMembru] == family || PlayerInfo[i][pLider] == family)
            {
                if(!gFam[i])
                {
                    SendClientMessage(i, color, string);
                }
            }
        }
    }
}
__________________
[IMG]
BoSs_S is offline  
Old 25/08/2013, 10:52 AM   #4
DanishHaq
High-roller
 
Join Date: Sep 2011
Location: Manchester, England, United Kingdom
Posts: 1,351
Reputation: 134
Default Re: problema /f

Si cand scrie /f cu textul, nu apar mimic?
DanishHaq is offline  
Old 25/08/2013, 11:02 AM   #5
BoSs_S
Huge Clucker
 
BoSs_S's Avatar
 
Join Date: Mar 2011
Posts: 484
Reputation: 5
Default Re: problema /f

apare: Nu faci parte din nici o factiune
__________________
[IMG]
BoSs_S is offline  
Old 25/08/2013, 11:08 AM   #6
DanishHaq
High-roller
 
Join Date: Sep 2011
Location: Manchester, England, United Kingdom
Posts: 1,351
Reputation: 134
Default Re: problema /f

Pun asta:

pawn Code:
if (PlayerInfo[playerid][pFMembru] >= 5 || PlayerInfo[playerid][pLider] >= 5)

In loc de: (CTRL + F)

pawn Code:
if (gTeam[playerid] >= 5 || PlayerInfo[playerid][pFMembru] < 255)
DanishHaq is offline  
Old 25/08/2013, 11:15 AM   #7
BoSs_S
Huge Clucker
 
BoSs_S's Avatar
 
Join Date: Mar 2011
Posts: 484
Reputation: 5
Default Re: problema /f

degeaba..
__________________
[IMG]
BoSs_S is offline  
Old 27/08/2013, 04:05 AM   #8
WopsS
Huge Clucker
 
WopsS's Avatar
 
Join Date: Nov 2011
Posts: 490
Reputation: 70
Default Re: problema /f

Incearc-o asa
Code:
//----------------------------------[LeaderChat]-----------------------------------------------
    if(strcmp(cmd, "/family", true) == 0 || strcmp(cmd, "/f", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pMuted] == 1 && PlayerInfo[playerid][pMuteTime] > 0)
            {
                SendClientMessage(playerid, TEAM_CYAN_COLOR, "Nu poti vorbii, esti pe MUTE!");
                return 1;
            }
            GetPlayerName(playerid, sendername, sizeof(sendername));
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[64];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            result[0] = toupper(result[0]);
            if(!strlen(result))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/f)amily [family chat]");
                return 1;
            }
                new leader = PlayerInfo[playerid][pLider];
                new member = PlayerInfo[playerid][pMembru];
                if(member==5||member==6)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Mafioso %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Caporale %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Capo %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soldier %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Associate %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Piccoto %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Outsider %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(member==8)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Director %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Vice-Director %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Special Agent %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Agent %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Marksman %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Freelancer %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Freelancer %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(member==11)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Director %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Vice-Director %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Manager %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Senior Instructor %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Instructor %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Trainee %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Trainee %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(member==12)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** BigPapa %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Triple OG %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Double OG %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soulja %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Gangsta %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Recruits %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Recruits %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(member==13)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Big Papa %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Triple OG %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Double OG %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soulja %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Gangsta %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Recruits %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Recruits %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(member==14)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** El Jefe %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Veterano %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Soldado %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Hermano %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Vato %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Ese %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Ese %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(member==15)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Senior %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Drecha Mano %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Mafioso %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soldato %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Azteca %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Cabron %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Cabron %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(member==16)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Big Papa %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Triple OG %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Double OG %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soulja %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Gangsta %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Recrut %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Recrut %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(member==18)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Big Papa %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Triple OG %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Double OG %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soulja %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Gangsta %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Recrut %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Recrut %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(member==19)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Big Papa %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Triple OG %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Double OG %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soulja %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Gangsta %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Recrut %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Recrut %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(member==20)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Big Papa %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Triple OG %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Double OG %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soulja %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Gangsta %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Recrut %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Recrut %s: %s. )) **", sendername, result); }
                    SendFamilyMessage(PlayerInfo[playerid][pMembru], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==5||leader==6)
                {
                    format(string, sizeof(string), "** Mafioso %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==8)
                {
                    format(string, sizeof(string), "** Director %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==9)
                {
                    format(string, sizeof(string), "** Network Producer %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==10)
                {
                    format(string, sizeof(string), "** Taxi Company Owner %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==11)
                {
                    format(string, sizeof(string), "** Director %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==12)
                {
                    format(string, sizeof(string), "** BigPapa %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==13)
                {
                    format(string, sizeof(string), "** Big Papa %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==14)
                {
                    format(string, sizeof(string), "** Senior %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==15)
                {
                    format(string, sizeof(string), "** Senior %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==16)
                {
                    format(string, sizeof(string), "** Owner %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==18)
                {
                    format(string, sizeof(string), "** Senior %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==19)
                {
                    format(string, sizeof(string), "** Senior %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(leader==20)
                {
                    format(string, sizeof(string), "** Senior %s: %s. )) **", sendername, result);
                    SendFamilyMessage(PlayerInfo[playerid][pLider], TEAM_AZTECAS_COLOR, string);
                }
                else if(PlayerInfo[playerid][pFMembru] < 255)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Mafioso %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Caporale %s: %s. )) **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Capo %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soldier %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Associate %s: %s. ))  **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Piccoto %s: %s. ))  **", sendername, result); }
                    else { format(string, sizeof(string), "** Outsider %s: %s. )) **", sendername, result); }
                    SendNewFamilyMessage(PlayerInfo[playerid][pFMembru], TEAM_AZTECAS_COLOR, string);
                }
                printf("%s", string);
                return 1;
            else
            {
                SendClientMessage(playerid, COLOR_GRAD2, " Nu faci parte din nici o factiune!");
                return 1;
            }
        }//not connected
        return 1;
    }
Si tu cand ai dat /makeleader ce gTeam ii pune playerului?
WopsS is online now  
Old 28/08/2013, 12:35 PM   #9
BoSs_S
Huge Clucker
 
BoSs_S's Avatar
 
Join Date: Mar 2011
Posts: 484
Reputation: 5
Default Re: problema /f

Am rezolvat . T/C Multumesc
__________________
[IMG]
BoSs_S is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 02:41 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.