Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/family", true) == 0 || strcmp(cmd, "/f", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerData[playerid][pMuted] == 1)
- {
- SendClientMessage(playerid, TEAM_CYAN_COLOR, "Nu poti vorbi, deoarece ai mute");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[200];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- result[0] = toupper(result[0]);
- for(new s = 0; s < num_words; s++)
- {
- new pos;
- while((pos = strfind(result,Swears[s],true)) != -1) for(new i = pos, j = pos + strlen(Swears[s]); i < j; i++)
- {
- result[i] = '*';
- }
- }
- if(!strlen(result))
- {
- SendUsage(playerid,"(/f)amily [family chat]");
- return 1;
- }
- new leader = PlayerData[playerid][pLeader];
- new member = PlayerData[playerid][pMember];
- if(member == 0 && leader == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "Nu esti intr-o factiune!");
- }
- if(nofam[member] == 1 || nofam[leader] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Chatul familiei tale este dezactivat!");
- return 1;
- }
- else if(member == 6 || leader == 6)
- {
- if(PlayerData[playerid][pRank] == 6) { format(string, sizeof(string), "** Taxi Company Manager %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 5) { format(string, sizeof(string), "** Shift Supervisor %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 4) { format(string, sizeof(string), "** Dispatcher %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 3) { format(string, sizeof(string), "** Cabbie %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 2) { format(string, sizeof(string), "** Taxi Rookie %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 1) { format(string, sizeof(string), "** Trainee %s: (( %s )) **", sendername, result); }
- else { format(string, sizeof(string), "{00B7FF}** Taxi Company Owner %s: (( %s )) **", sendername, result); }
- if(PlayerData[playerid][pMember] > 0)
- {
- SendFamilyMessage(PlayerData[playerid][pMember], TEAM_AZTECAS_COLOR, string);
- }
- else
- {
- SendFamilyMessage(PlayerData[playerid][pLeader], TEAM_AZTECAS_COLOR, string);
- }
- for(new prost = 0; prost<=MAX_PLAYERS;prost++)
- {
- if(IsPlayerConnected(prost))
- {
- if(PlayerData[prost][pAdmin] > 0 && sf[prost] == 6)
- {
- format(string, sizeof(string), "/f(faction id 6)%s:%s",sendername,(result));
- SendClientMessage(prost,TEAM_AZTECAS_COLOR, string);
- }
- }
- }
- }
- else if(member == 7 || leader == 7)
- {
- if(PlayerData[playerid][pRank] == 6) { format(string, sizeof(string), "** Under Boss %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 5) { format(string, sizeof(string), "** Manager %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 4) { format(string, sizeof(string), "** Supervisor %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 3) { format(string, sizeof(string), "** Senior Instructor %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 2) { format(string, sizeof(string), "** Instructor %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 1) { format(string, sizeof(string), "** Trainee %s: (( %s )) **", sendername, result); }
- else { format(string, sizeof(string), "{00B7FF}** Boss %s: (( %s )) **", sendername, result); }
- if(PlayerData[playerid][pMember] > 0)
- {
- SendFamilyMessage(PlayerData[playerid][pMember], TEAM_AZTECAS_COLOR, string);
- }
- else
- {
- SendFamilyMessage(PlayerData[playerid][pLeader], TEAM_AZTECAS_COLOR, string);
- }
- for(new prost = 0; prost<=MAX_PLAYERS;prost++)
- {
- if(IsPlayerConnected(prost))
- {
- if(PlayerData[prost][pAdmin] > 0 && sf[prost] == 7)
- {
- format(string, sizeof(string), "/f(faction id 7)%s:%s",sendername,(result));
- SendClientMessage(prost,TEAM_AZTECAS_COLOR, string);
- }
- }
- }
- }
- else if(member == 8 || leader == 8)
- {
- if(PlayerData[playerid][pRank] == 6) { format(string, sizeof(string), "** Vice-Director %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 5) { format(string, sizeof(string), "** Special Agent in Charge %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 4) { format(string, sizeof(string), "** Special Agent %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 3) { format(string, sizeof(string), "** Agent %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 2) { format(string, sizeof(string), "** Marksman %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 1) { format(string, sizeof(string), "** Freelancer %s: (( %s )) **", sendername, result); }
- else { format(string, sizeof(string), "{00B7FF}** Director %s: (( %s )) **", sendername, result); }
- if(PlayerData[playerid][pMember] > 0)
- {
- SendFamilyMessage(PlayerData[playerid][pMember], TEAM_AZTECAS_COLOR, string);
- }
- else
- {
- SendFamilyMessage(PlayerData[playerid][pLeader], TEAM_AZTECAS_COLOR, string);
- }
- for(new prost = 0; prost<=MAX_PLAYERS;prost++)
- {
- if(IsPlayerConnected(prost))
- {
- if(PlayerData[prost][pAdmin] > 0 && sf[prost] == 8)
- {
- format(string, sizeof(string), "/f(faction id 8)%s:%s",sendername,(result));
- SendClientMessage(prost,TEAM_AZTECAS_COLOR, string);
- }
- }
- }
- }
- else if(member == 17 || leader == 17)
- {
- if(PlayerData[playerid][pRank] == 6) { format(string, sizeof(string), "** Regional Officer %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 5) { format(string, sizeof(string), "** Enforcer %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 4) { format(string, sizeof(string), "** Cacique %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 3) { format(string, sizeof(string), "** Inca %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 2) { format(string, sizeof(string), "** Mummy %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 1) { format(string, sizeof(string), "** Primitive %s: (( %s )) **", sendername, result); }
- else { format(string, sizeof(string), "{00B7FF}** Coronas %s: (( %s )) **", sendername, result); }
- if(PlayerData[playerid][pMember] > 0)
- {
- SendFamilyMessage(17, TEAM_AZTECAS_COLOR, string);
- }
- else
- {
- SendFamilyMessage(17, TEAM_AZTECAS_COLOR, string);
- }
- for(new prost = 0; prost<=MAX_PLAYERS;prost++)
- {
- if(IsPlayerConnected(prost))
- {
- if(PlayerData[prost][pAdmin] > 0 && sf[prost] == 17)
- {
- format(string, sizeof(string), "/f(faction id 17)%s:%s",sendername,(result));
- SendClientMessage(prost,TEAM_AZTECAS_COLOR, string);
- }
- }
- }
- }
- else if(member == 9 || leader == 9)
- {
- if(PlayerData[playerid][pRank] == 6) { format(string, sizeof(string), "** Network Producer %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 5) { format(string, sizeof(string), "** Network Editor %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 4) { format(string, sizeof(string), "** Network Anchor %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 3) { format(string, sizeof(string), "** Local Editor %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 2) { format(string, sizeof(string), "** Local Reporter %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 1) { format(string, sizeof(string), "** Intern %s: (( %s )) **", sendername, result); }
- else { format(string, sizeof(string), "{00B7FF}** Network Director %s: (( %s )) **", sendername, result); }
- if(PlayerData[playerid][pMember] > 0)
- {
- SendFamilyMessage(PlayerData[playerid][pMember], TEAM_AZTECAS_COLOR, string);
- }
- else
- {
- SendFamilyMessage(PlayerData[playerid][pLeader], TEAM_AZTECAS_COLOR, string);
- }
- for(new prost = 0; prost<=MAX_PLAYERS;prost++)
- {
- if(IsPlayerConnected(prost))
- {
- if(PlayerData[prost][pAdmin] > 0 && sf[prost] == 9)
- {
- format(string, sizeof(string), "/f(faction id 9)%s:%s",sendername,(result));
- SendClientMessage(prost,TEAM_AZTECAS_COLOR, string);
- }
- }
- }
- }
- else if(member == 10 || leader == 10)
- {
- if(PlayerData[playerid][pRank] == 6) { format(string, sizeof(string), "** Under Boss %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 5) { format(string, sizeof(string), "** Manager %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 4) { format(string, sizeof(string), "** Supervisor %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 3) { format(string, sizeof(string), "** Senior Mechanic %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 2) { format(string, sizeof(string), "** Mechanic %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 1) { format(string, sizeof(string), "** Trainee %s: (( %s )) **", sendername, result); }
- else { format(string, sizeof(string), "{00B7FF}** Tow Company Owner %s: (( %s )) **", sendername, result); }
- if(PlayerData[playerid][pMember] > 0)
- {
- SendFamilyMessage(PlayerData[playerid][pMember], TEAM_AZTECAS_COLOR, string);
- }
- else
- {
- SendFamilyMessage(PlayerData[playerid][pLeader], TEAM_AZTECAS_COLOR, string);
- }
- for(new prost = 0; prost<=MAX_PLAYERS;prost++)
- {
- if(IsPlayerConnected(prost))
- {
- if(PlayerData[prost][pAdmin] > 0 && sf[prost] == 10)
- {
- format(string, sizeof(string), "/f(faction id 10)%s:%s",sendername,(result));
- SendClientMessage(prost,TEAM_AZTECAS_COLOR, string);
- }
- }
- }
- }
- else if(member == 11 || leader == 11)
- {
- if(PlayerData[playerid][pRank] == 1) { format(string, sizeof(string), "** Street Soldier %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 2) { format(string, sizeof(string), "** Supplier %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 3) { format(string, sizeof(string), "** Money Launderer %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 4) { format(string, sizeof(string), "** Chief Enforcer %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 5) { format(string, sizeof(string), "** Councilor %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 6) { format(string, sizeof(string), "** Advisor %s: (( %s )) **", sendername, result); }
- else { format(string, sizeof(string), "{00B7FF}** Supreme Chief %s: (( %s )) **", sendername, result); }
- if(PlayerData[playerid][pMember] > 0)
- {
- SendFamilyMessage(PlayerData[playerid][pMember], TEAM_AZTECAS_COLOR, string);
- }
- else
- {
- SendFamilyMessage(PlayerData[playerid][pLeader], TEAM_AZTECAS_COLOR, string);
- }
- for(new prost = 0; prost<=MAX_PLAYERS;prost++)
- {
- if(IsPlayerConnected(prost))
- {
- if(PlayerData[prost][pAdmin] > 0 && sf[prost] == 11)
- {
- format(string, sizeof(string), "/f(faction id 11)%s:%s",sendername,(result));
- SendClientMessage(prost,TEAM_AZTECAS_COLOR, string);
- }
- }
- }
- }
- else if(member == 12 || leader == 12)
- {
- if(PlayerData[playerid][pRank] == 1) { format(string, sizeof(string), "** Private %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 2) { format(string, sizeof(string), "** Soldier %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 3) { format(string, sizeof(string), "** Lookout %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 4) { format(string, sizeof(string), "** Assault man %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 5) { format(string, sizeof(string), "** Brigadier %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 6) { format(string, sizeof(string), "** Right Hand %s: (( %s )) **", sendername, result); }
- else { format(string, sizeof(string), "{00B7FF}** President %s: (( %s )) **", sendername, result); } if(PlayerData[playerid][pMember] > 0)
- {
- SendFamilyMessage(PlayerData[playerid][pMember], TEAM_AZTECAS_COLOR, string);
- }
- else
- {
- SendFamilyMessage(PlayerData[playerid][pLeader], TEAM_AZTECAS_COLOR, string);
- }
- for(new prost = 0; prost<=MAX_PLAYERS;prost++)
- {
- if(IsPlayerConnected(prost))
- {
- if(PlayerData[prost][pAdmin] > 0 && sf[prost] == 12)
- {
- format(string, sizeof(string), "/f(faction id 12)%s:%s",sendername,(result));
- SendClientMessage(prost,TEAM_AZTECAS_COLOR, string);
- }
- }
- }
- }
- else if(member == 13 || leader == 13)
- {
- if(PlayerData[playerid][pRank] == 1) { format(string, sizeof(string), "** Blue Lantern %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 2) { format(string, sizeof(string), "** 49er %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 3) { format(string, sizeof(string), "** Red Pole %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 4) { format(string, sizeof(string), "** White Paper Fan %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 5) { format(string, sizeof(string), "** Vanguard %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 6) { format(string, sizeof(string), "** Mountain Master %s: (( %s )) **", sendername, result); }
- else { format(string, sizeof(string), "{00B7FF}** Dragon Head %s: (( %s )) **", sendername, result); }
- if(PlayerData[playerid][pMember] > 0)
- {
- SendFamilyMessage(PlayerData[playerid][pMember], TEAM_AZTECAS_COLOR, string);
- }
- else
- {
- SendFamilyMessage(PlayerData[playerid][pLeader], TEAM_AZTECAS_COLOR, string);
- }
- for(new prost = 0; prost<=MAX_PLAYERS;prost++)
- {
- if(IsPlayerConnected(prost))
- {
- if(PlayerData[prost][pAdmin] > 0 && sf[prost] == 13)
- {
- format(string, sizeof(string), "/f(faction id 13)%s:%s",sendername,(result));
- SendClientMessage(prost,TEAM_AZTECAS_COLOR, string);
- }
- }
- }
- }
- else if(member == 14 || leader == 14)
- {
- if(PlayerData[playerid][pRank] == 1) { format(string, sizeof(string), "** Picciotto %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 2) { format(string, sizeof(string), "** Soldato %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 3) { format(string, sizeof(string), "** Sgarrista %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 4) { format(string, sizeof(string), "** Caporegieme %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 5) { format(string, sizeof(string), "** Vicario %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 6) { format(string, sizeof(string), "** Consigliere %s: (( %s )) **", sendername, result); }
- else { format(string, sizeof(string), "{00B7FF}** Capo Crimini %s: (( %s )) **", sendername, result); }
- if(PlayerData[playerid][pMember] > 0)
- {
- SendFamilyMessage(PlayerData[playerid][pMember], TEAM_AZTECAS_COLOR, string);
- }
- else
- {
- SendFamilyMessage(PlayerData[playerid][pLeader], TEAM_AZTECAS_COLOR, string);
- }
- for(new prost = 0; prost<=MAX_PLAYERS;prost++)
- {
- if(IsPlayerConnected(prost))
- {
- if(PlayerData[prost][pAdmin] > 0 && sf[prost] == 14)
- {
- format(string, sizeof(string), "/f(faction id 14)%s:%s",sendername,(result));
- SendClientMessage(prost,TEAM_AZTECAS_COLOR, string);
- }
- }
- }
- }
- else if(member == 15 || leader == 15)
- {
- if(PlayerData[playerid][pRank] == 1) { format(string, sizeof(string), "** Street Fish %s: (( %s ))", sendername, result); }
- else if(PlayerData[playerid][pRank] == 2) { format(string, sizeof(string), "** City Fish %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 3) { format(string, sizeof(string), "** Fattam %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 4) { format(string, sizeof(string), "** Wikkid %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 5) { format(string, sizeof(string), "** Gigolo %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 6) { format(string, sizeof(string), "** Pimp %s: (( %s )) **", sendername, result); }
- else { format(string, sizeof(string), "{00B7FF}** Pimp Boss %s: (( %s )) **", sendername, result); } if(PlayerData[playerid][pMember] > 0)
- {
- SendFamilyMessage(PlayerData[playerid][pMember], TEAM_AZTECAS_COLOR, string);
- }
- else
- {
- SendFamilyMessage(PlayerData[playerid][pLeader], TEAM_AZTECAS_COLOR, string);
- }
- for(new prost = 0; prost<=MAX_PLAYERS;prost++)
- {
- if(IsPlayerConnected(prost))
- {
- if(PlayerData[prost][pAdmin] > 0 && sf[prost] == 15)
- {
- format(string, sizeof(string), "/f(faction id 15)%s:%s",sendername,(result));
- SendClientMessage(prost,TEAM_AZTECAS_COLOR, string);
- }
- }
- }
- }
- else if(member == 16 || leader == 16)
- {
- if(PlayerData[playerid][pRank] == 1) { format(string, sizeof(string), "** Byki %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 2) { format(string, sizeof(string), "** Kryshas %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 3) { format(string, sizeof(string), "** Boyevik %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 4) { format(string, sizeof(string), "** Brigadier %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 5) { format(string, sizeof(string), "** Obshchak %s: (( %s )) **", sendername, result); }
- else if(PlayerData[playerid][pRank] == 6) { format(string, sizeof(string), "** Sovietnik %s: (( %s )) **", sendername, result); }
- else { format(string, sizeof(string), "{00B7FF}** Pakhan %s: (( %s )) **", sendername, result); }
- if(PlayerData[playerid][pMember] > 0)
- {
- SendFamilyMessage(PlayerData[playerid][pMember], TEAM_AZTECAS_COLOR, string);
- }
- else
- {
- SendFamilyMessage(PlayerData[playerid][pLeader], TEAM_AZTECAS_COLOR, string);
- }
- for(new prost = 0; prost<=MAX_PLAYERS;prost++)
- {
- if(IsPlayerConnected(prost))
- {
- if(PlayerData[prost][pAdmin] > 0 && sf[prost] == 16)
- {
- format(string, sizeof(string), "/f(faction id 16)%s:%s",sendername,(result));
- SendClientMessage(prost,TEAM_AZTECAS_COLOR, string);
- }
- }
- }
- }
- }//not connected
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement