Need some help with a command
#3

Hello Try the following

PHP код:
forward ShowStats(playerid,targetid);
public 
ShowStats(playerid,targetid)
{
    if(
IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
    {
        new 
cash =  GetPlayerPCash(targetid);
        new 
fam PlayerInfo[targetid][pMember];
        new 
atext[128];
        if(
PlayerInfo[targetid][pSex] == 1) { atext "Male"; }
        else if(
PlayerInfo[targetid][pSex] == 0) { atext "Female"; }
        new 
ftext[128];
        if(
PlayerInfo[targetid][pMember] == 1)
        { 
ftext "Los Santos Police Department"; }
        else if(
PlayerInfo[targetid][pMember] == 2)
        { 
ftext "FBI Agency"; }
        else if(
PlayerInfo[targetid][pMember] == 3)
        { 
ftext "Goverment"; }
        else if(
PlayerInfo[targetid][pMember] == 4)
        { 
ftext "Los Santos Emergency Rescue"; }
        else if(
PlayerInfo[targetid][pMember] == 5)
        { 
ftext "San News"; }
        else if(
PlayerInfo[targetid][pMember] == 6)
        { 
ftext "Target FM Radio 98.6"; }
          else if(
PlayerInfo[targetid][pMember] >= 7)
        { 
ftext FamilyInfo[fam][FamilyName]; }
        else
        { 
ftext "None"; }
        new 
rtext[128];
        if(
PlayerInfo[targetid][pMember] == 1)
        {
            if(
PlayerInfo[targetid][pRank] == 1) { rtext "Cadet"; }
            else if(
PlayerInfo[targetid][pRank] == 2) { rtext "Police Officer"; }
            else if(
PlayerInfo[targetid][pRank] == 3) { rtext "Senior Officer"; }
            else if(
PlayerInfo[targetid][pRank] == 4) { rtext "Lead Officer"; }
            else if(
PlayerInfo[targetid][pRank] == 5) { rtext "Corporal"; }
            else if(
PlayerInfo[targetid][pRank] == 6) { rtext "Sergeant"; }
            else if(
PlayerInfo[targetid][pRank] == 7) { rtext "Staff Sergeant"; }
            else if(
PlayerInfo[targetid][pRank] == 8) { rtext "Lieutenant"; }
            else if(
PlayerInfo[targetid][pRank] == 9) { rtext "Captain"; }
            else if(
PlayerInfo[targetid][pRank] == 10) { rtext "Commander"; }
            else if(
PlayerInfo[targetid][pRank] == 11) { rtext "Deputy Chief"; }
            else if(
PlayerInfo[targetid][pRank] == 12) { rtext "Police Chief"; }
            else if(
PlayerInfo[targetid][pRank] == 13) { rtext "Police Chief"; }
            else if(
PlayerInfo[targetid][pRank] == 14) { rtext "Police Chief"; }
            else if(
PlayerInfo[targetid][pRank] == 15) { rtext "Police Chief"; }
            else if(
PlayerInfo[targetid][pRank] == 16) { rtext "Police Chief"; }
            else { 
rtext "Cadet"; }
        }
        else if(
PlayerInfo[targetid][pMember] == 2)//FBI Ranks
        
{
            if(
PlayerInfo[targetid][pRank] == 1) { rtext "Professional Staff"; }
            else if(
PlayerInfo[targetid][pRank] == 2) { rtext "Special Agent Trainee"; }
            else if(
PlayerInfo[targetid][pRank] == 3) { rtext "Special Agent"; }
            else if(
PlayerInfo[targetid][pRank] == 4) { rtext "Special Agent in Charge"; }
            else if(
PlayerInfo[targetid][pRank] == 5) { rtext "Assistant Director in Charge"; }
            else if(
PlayerInfo[targetid][pRank] == 6) { rtext "Director"; }
            else { 
rtext "Intern"; }
        }
        else if(
PlayerInfo[targetid][pMember] == 3)//Goverment
        
{
            if(
PlayerInfo[targetid][pRank] == 1) { rtext "Guard"; }
            else if(
PlayerInfo[targetid][pRank] == 2) { rtext "Body Guard"; }
            else if(
PlayerInfo[targetid][pRank] == 3) { rtext "Driver"; }
            else if(
PlayerInfo[targetid][pRank] == 4) { rtext "Secretary"; }
            else if(
PlayerInfo[targetid][pRank] == 5) { rtext "Assistant"; }
            else if(
PlayerInfo[targetid][pRank] == 6) { rtext "Mayor"; }
            else { 
rtext "Guard"; }
        }
        else if(
PlayerInfo[targetid][pMember] == 4)//Los Santos Paramedic Ranks
        
{
            if(
PlayerInfo[targetid][pRank] == 1) { rtext "Trainee"; }
            else if(
PlayerInfo[targetid][pRank] == 2) { rtext "Paramedic"; }
            else if(
PlayerInfo[targetid][pRank] == 3) { rtext "Supervisor"; }
            else if(
PlayerInfo[targetid][pRank] == 4) { rtext "Captain"; }
            else if(
PlayerInfo[targetid][pRank] == 5) { rtext "Deputy Chief of EMS"; }
            else if(
PlayerInfo[targetid][pRank] == 6) { rtext "Chief of EMS"; }
            else { 
rtext "Trainee"; }
        }
        else if(
PlayerInfo[targetid][pMember] == 5)//San News Ranks
        
{
            if(
PlayerInfo[targetid][pRank] == 1) { rtext "Intern"; }
            else if(
PlayerInfo[targetid][pRank] == 2) { rtext "Local Reporter"; }
            else if(
PlayerInfo[targetid][pRank] == 3) { rtext "Local Editor"; }
            else if(
PlayerInfo[targetid][pRank] == 4) { rtext "Network Anchor"; }
            else if(
PlayerInfo[targetid][pRank] == 5) { rtext "Network Editor"; }
            else if(
PlayerInfo[targetid][pRank] == 6) { rtext "Network Producer"; }
            else { 
rtext "Intern"; }
        }
        else if(
PlayerInfo[targetid][pMember] == 6)//TFMR Ranks
        
{
            if(
PlayerInfo[targetid][pRank] == 1) { rtext "TFMR Trainee"; }
            else if(
PlayerInfo[targetid][pRank] == 2) { rtext "Gangsta"; }
            else if(
PlayerInfo[targetid][pRank] == 3) { rtext "Hoodlum"; }
            else if(
PlayerInfo[targetid][pRank] == 4) { rtext "MC"; }
            else if(
PlayerInfo[targetid][pRank] == 5) { rtext "DJ"; }
            else if(
PlayerInfo[targetid][pRank] == 6) { rtext "TFMR CEO"; }
            else { 
rtext "TFMR Trainee"; }
        }
        else if(
PlayerInfo[targetid][pMember] >= 7// Open Faction Ranks
        
{
            if(
PlayerInfo[targetid][pRank] == 1) { rtext FamilyInfo[fam][FamilyRank1]; }
            else if(
PlayerInfo[targetid][pRank] == 2) { rtext FamilyInfo[fam][FamilyRank2]; }
            else if(
PlayerInfo[targetid][pRank] == 3) { rtext FamilyInfo[fam][FamilyRank3]; }
            else if(
PlayerInfo[targetid][pRank] == 4) { rtext FamilyInfo[fam][FamilyRank4]; }
            else if(
PlayerInfo[targetid][pRank] == 5) { rtext FamilyInfo[fam][FamilyRank5]; }
              else if(
PlayerInfo[targetid][pRank] == 6) { rtext FamilyInfo[fam][FamilyRank6]; }
            else { 
rtext "Outsider"; }
        }
        else
        {
            
rtext "None";
        }
        new 
jtext[128];
        if(
PlayerInfo[targetid][pJob] == 1) { jtext "Detective"; }
        else if(
PlayerInfo[targetid][pJob] == 2) { jtext "Lawyer"; }
        else if(
PlayerInfo[targetid][pJob] == 3) { jtext "Whore"; }
        else if(
PlayerInfo[targetid][pJob] == 4) { jtext "Drugs Dealer"; }
        else if(
PlayerInfo[targetid][pJob] == 5) { jtext "Car Jacker"; }
        else if(
PlayerInfo[targetid][pJob] == 6) { jtext "News Reporter"; }
        else if(
PlayerInfo[targetid][pJob] == 7) { jtext "Car Mechanic"; }
        else if(
PlayerInfo[targetid][pJob] == 8) { jtext "Bodyguard"; }
        else if(
PlayerInfo[targetid][pJob] == 9) { jtext "Arms Dealer"; }
        else if(
PlayerInfo[targetid][pJob] == 10) { jtext "Car Dealer"; }
        else if(
PlayerInfo[targetid][pJob] == 12) { jtext "Boxer"; }
        else if(
PlayerInfo[targetid][pJob] == 14) { jtext "Bus Driver"; }
        else if(
PlayerInfo[targetid][pJob] == 15) { jtext "Paper Boy"; }
        else if(
PlayerInfo[targetid][pJob] == 16) { jtext "Garbage Man"; }
        else if(
PlayerInfo[targetid][pJob] == 17) { jtext "Pizza Boy"; }
        else if(
PlayerInfo[targetid][pJob] == 18) { jtext "Farmer"; }
        else if(
PlayerInfo[targetid][pJob] == 19) { jtext "Illegal Farmer"; }
        else if(
PlayerInfo[targetid][pJob] == 20) { jtext "Drugs Smuggler"; }
        else if(
PlayerInfo[targetid][pJob] == 21) { jtext "Street sweeper"; }
        else if(
PlayerInfo[targetid][pJob] == 22) { jtext "Materials smuggler"; }
        else if(
PlayerInfo[targetid][pJob] == 23) { jtext "Gun Maker"; }
        else if(
PlayerInfo[targetid][pJob] == 24) { jtext "Trucker"; }
        else if(
PlayerInfo[targetid][pJob] == 25) { jtext "MailMan"; }
        else if(
PlayerInfo[targetid][pJob] == 26) { jtext "Car Jacker"; }
        else { 
jtext "None"; }
        new 
drank[128];
        if(
PlayerInfo[targetid][pDonateRank] == 1) { drank "Bronze Donator"; }
        else if(
PlayerInfo[targetid][pDonateRank] == 2) { drank "Silver Donator"; }
        else if(
PlayerInfo[targetid][pDonateRank] == 3) { drank "Golden Donator"; }
        else { 
drank "None"; }
        new 
married[128];
        
strmid(marriedPlayerInfo[targetid][pMarriedTo], 0strlen(PlayerInfo[targetid][pMarriedTo]), 255);
        new 
level PlayerInfo[targetid][pLevel];
        new 
exp PlayerInfo[targetid][pExp];
        new 
nxtlevel PlayerInfo[targetid][pLevel]+1;
        new 
expamount nxtlevel*levelexp;
        new 
age PlayerInfo[targetid][pAge];
        new 
account PlayerInfo[targetid][pAccount];
        new 
ptime PlayerInfo[targetid][pConnectTime];
        new 
adminlevel PlayerInfo[targetid][pAdmin];
        if(
adminlevel == 11) { adminlevel 0; }
        new 
pnumber PlayerInfo[targetid][pPnumber];
        new 
numtime PlayerInfo[targetid][pCelltime];
        new 
drugs PlayerInfo[targetid][pDrugs];
        new 
mats PlayerInfo[targetid][pMats];
        new 
carkey PlayerInfo[targetid][pCarkey];
        new 
carkey2 PlayerInfo[targetid][pCarkey2];
        new 
carkey3 PlayerInfo[targetid][pCarkey3];
        new 
rank PlayerInfo[targetid][pRank];
        new 
intir GetPlayerInterior(targetid);
        new 
virworld GetPlayerVirtualWorld(targetid);
        new 
local PlayerInfo[targetid][pLocal];
        new 
housekey PlayerInfo[targetid][pHousekey];
        new 
bizkey PlayerInfo[targetid][pPbiskey];
        new 
crimes PlayerInfo[targetid][pCrimes];
        new 
arrests PlayerInfo[targetid][pArrested];
        new 
freq PlayerInfo[targetid][pWalkieFreq];
        new 
changes PlayerInfo[targetid][pChanges];
        new 
name[MAX_PLAYER_NAME];
        
GetPlayerName(targetidnamesizeof(name));
        
GiveNameSpace(name);
        new 
coordsstring[1024], catstr[1024];
        
format(coordsstringsizeof(coordsstring), "{33CCFF}[Account]:{FFFFFF} Level:[%d] DonateRank:[%s] NameChanges:[%d] Respect:[%d/%d] Age:[%d] Cash:[$%d] Bank:[$%d]\n"level,drank,changes,exp,expamount,age,cashaccount);
        
strcat(catstrcoordsstringsizeof(coordsstring));
        
format(coordsstringsizeof(coordsstring), "{33CCFF}[General]:{FFFFFF} PlayingHours:[%d] AdminLevel:[%d] Job:[%s] WalkieFreq:[%d]\n",ptime,adminlevel,jtext,freq);
        
strcat(catstrcoordsstringsizeof(coordsstring));
        if(
PlayerInfo[targetid][pArrested] > 0)
        {
            
format(coordsstringsizeof(coordsstring), "{33CCFF}[Criminal Record]:{FFFFFF} CrimesCommited:[%d] TimesArrested:[%d]\n"crimes,arrests);
            
strcat(catstrcoordsstringsizeof(coordsstring));
        }
        if(
PlayerInfo[playerid][pCellphone] == 0)
        {
            
format(coordsstringsizeof(coordsstring), "{33CCFF}[Other]:{FFFFFF} Drugs:[%d] Materials:[%d] Sex:[%s] MarriedTo:[%s]\n",drugs,mats,atext,married);
            
strcat(catstrcoordsstringsizeof(coordsstring));
        }
        else if(
PlayerInfo[playerid][pCellphone] > 0)
        {
            
format(coordsstringsizeof(coordsstring), "{33CCFF}[Other]:{FFFFFF} Drugs:[%d] Materials:[%d] Sex:[%s] MarriedTo:[%s] Ph:[%d] PhoneCredit:[%d]\n",drugs,mats,atext,married,pnumber,numtime);
            
strcat(catstrcoordsstringsizeof(coordsstring));
        }
        if(
PlayerInfo[targetid][pMember] <= 6)
        {
            
format(coordsstringsizeof(coordsstring), "{33CCFF}[Faction]:{FFFFFF} Faction:[%s] Rank:[%s][%d]\n",ftext,rtext,rank);
            
strcat(catstrcoordsstringsizeof(coordsstring));
        }
        else if(
PlayerInfo[targetid][pMember] >= 7)
        {
            if(
PlayerInfo[targetid][pRank] == 0)
            {
                
format(coordsstringsizeof(coordsstring), "{33CCFF}[Faction]:{FFFFFF} Faction:[%s] Rank:[Outsider][0]\n",FamilyInfo[fam][FamilyName]);
                
strcat(catstrcoordsstringsizeof(coordsstring));
            }
            else if(
PlayerInfo[targetid][pRank] == 1)
            {
                
format(coordsstringsizeof(coordsstring), "{33CCFF}[Faction]:{FFFFFF} Faction:[%s] Rank:[%s][1]\n",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
                
strcat(catstrcoordsstringsizeof(coordsstring));
            }
            else if(
PlayerInfo[targetid][pRank] == 2)
            {
                
format(coordsstringsizeof(coordsstring), "{33CCFF}[Faction]:{FFFFFF} Faction:[%s] Rank:[%s][2]\n",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank2]);
                
strcat(catstrcoordsstringsizeof(coordsstring));
            }
            else if(
PlayerInfo[targetid][pRank] == 3)
            {
                
format(coordsstringsizeof(coordsstring), "{33CCFF}[Faction]:{FFFFFF} Faction:[%s] Rank:[%s][3]\n",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank3]);
                
strcat(catstrcoordsstringsizeof(coordsstring));
            }
            else if(
PlayerInfo[targetid][pRank] == 4)
            {
                
format(coordsstringsizeof(coordsstring), "{33CCFF}[Faction]:{FFFFFF} Faction:[%s] Rank:[%s][4]\n",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank4]);
                
strcat(catstrcoordsstringsizeof(coordsstring));
            }
            else if(
PlayerInfo[targetid][pRank] == 5)
            {
                
format(coordsstringsizeof(coordsstring), "{33CCFF}[Faction]:{FFFFFF} Faction:[%s] Rank:[%s][5]\n",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank5]);
                
strcat(catstrcoordsstringsizeof(coordsstring));
            }
            else if(
PlayerInfo[targetid][pRank] == 6)
            {
                
format(coordsstringsizeof(coordsstring), "{33CCFF}[Faction]:{FFFFFF} Faction:[%s] Rank:[%s][6]\n",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank6]);
                
strcat(catstrcoordsstringsizeof(coordsstring));
            }
        }
        
GetPlayerName(targetidnamesizeof(name));
        if(
housekey != 255 && strcmp(nameHouseInfo[housekey][hOwner], true) == 0)
        {
            
format(coordsstringsizeof(coordsstring), "{33CCFF}[Property]:{FFFFFF} Description:[%s] Value:[%d] Locked:[%d] Rentable:[%d] Rent:[$%d] Objects:[%d] ID:[%d]\n",HouseInfo[housekey][hDiscription],HouseInfo[housekey][hValue],HouseInfo[housekey][hLock],HouseInfo[housekey][hRentabil],HouseInfo[housekey][hRent],HouseInfo[housekey][hOTaken],housekey);
            
strcat(catstrcoordsstringsizeof(coordsstring));
        }
        if (
PlayerInfo[targetid][pCarkey] != SCRIPT_CARS)
        {
            
format(coordsstringsizeof(coordsstring), "{33CCFF}[Vehicle]:{FFFFFF} 1| VehModel:[%s] VehValue:[%d] VehColor1:[%d] VehColor2:[%d] VehLocked:[%d] Impounded:[%d] ImpoundPrice:[%d] SID:[%d]\n"CarInfo[carkey][cDescription], CarInfo[carkey][cValue], CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cLock],CarInfo[carkey][cImpounded],CarInfo[carkey][cImpoundedPrice],ForwardOwnCarID(1,targetid));
            
strcat(catstrcoordsstringsizeof(coordsstring));
        }
        if (
PlayerInfo[targetid][pCarkey2] != SCRIPT_CARS)
        {
            
format(coordsstringsizeof(coordsstring), "{33CCFF}[Vehicle]:{FFFFFF} 2| VehModel:[%s] VehValue:[%d] VehColor1:[%d] VehColor2:[%d] VehLocked:[%d] Impounded:[%d] ImpoundPrice:[%d] SID:[%d]\n"CarInfo[carkey2][cDescription], CarInfo[carkey2][cValue], CarInfo[carkey2][cColorOne], CarInfo[carkey2][cColorTwo], CarInfo[carkey2][cLock],CarInfo[carkey2][cImpounded],CarInfo[carkey2][cImpoundedPrice],ForwardOwnCarID(2,targetid));
            
strcat(catstrcoordsstringsizeof(coordsstring));
        }
        if (
PlayerInfo[targetid][pCarkey3] != SCRIPT_CARS)
        {
            
format(coordsstringsizeof(coordsstring), "{33CCFF}[Vehicle]:{FFFFFF} 3| VehModel:[%s] VehValue:[%d] VehColor1:[%d] VehColor2:[%d] VehLocked:[%d] Impounded:[%d] ImpoundPrice:[%d] SID:[%d]\n"CarInfo[carkey3][cDescription], CarInfo[carkey3][cValue], CarInfo[carkey3][cColorOne], CarInfo[carkey3][cColorTwo], CarInfo[carkey3][cLock],CarInfo[carkey3][cImpounded],CarInfo[carkey3][cImpoundedPrice],ForwardOwnCarID(3,targetid));
            
strcat(catstrcoordsstringsizeof(coordsstring));
        }
        if (
PlayerInfo[playerid][pAdmin] >= 1)
        {
            
format(coordsstringsizeof(coordsstring), "{33CCFF}[Admin]:{FFFFFF} Business key [%d] Veh1[%d] Veh2[%d] Veh3[%d] HireKey [%d] int:[%d] virworld:[%d] local[%d]\n",bizkey,carkey,carkey2,carkey3,HireCar[targetid],intir,virworld,local);
            
strcat(catstrcoordsstringsizeof(coordsstring));
        }
        
//ShowPlayerDialog(playerid, 5133, DIALOG_STYLE_MSGBOX, "{33CCFF}Los Santos Life{FFFFFF} Stastics", catstr, "Close", "");
            
format(coordsstringsizeof(coordsstring),"____________________| %s |____________________",name);
        
SendClientMessage(playeridCOLOR_YELLOW5,coordsstring);
        
format(coordsstringsizeof(coordsstring), "[Account]: Level:[%d] DonateRank:[%s] Respect:[%d/%d] Age:[%d] Cash:[$%d] Bank:[$%d]"level,drank,exp,expamount,age,cashaccount);
        
SendClientMessage(playeridCOLOR_LIGHTYELLOW5,coordsstring);
        
format(coordsstringsizeof(coordsstring), "[General]: PlayingHours:[%d] AdminLevel:[%d] Job:[%s] WalkieFreq:[%d]",ptime,adminlevel,jtext,freq);
        
SendClientMessage(playeridCOLOR_LIGHTYELLOW5,coordsstring);
        if(
PlayerInfo[targetid][pArrested] > 0)
        {
            
format(coordsstringsizeof(coordsstring), "[Criminal Record]: CrimesCommited:[%d] TimesArrested:[%d]"crimes,arrests);
            
SendClientMessage(playeridCOLOR_LIGHTYELLOW5,coordsstring);
        }
        if(
PlayerInfo[playerid][pCellphone] == 0)
        {
            
format(coordsstringsizeof(coordsstring), "[Other]: Drugs:[%d] Materials:[%d] Sex:[%s] MarriedTo:[%s]",drugs,mats,atext,married);
            
SendClientMessage(playeridCOLOR_LIGHTYELLOW5,coordsstring);
        }
        else if(
PlayerInfo[playerid][pCellphone] > 0)
        {
            
format(coordsstringsizeof(coordsstring), "[Other]: Drugs:[%d] Materials:[%d] Sex:[%s] MarriedTo:[%s] Ph:[%d] Phtime:[%d]",drugs,mats,atext,married,pnumber,numtime);
            
SendClientMessage(playeridCOLOR_LIGHTYELLOW5,coordsstring);
        }
        if(
PlayerInfo[targetid][pMember] <= 6)
        {
            
format(coordsstringsizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][%d]",ftext,rtext,rank);
            
SendClientMessage(playeridCOLOR_LIGHTYELLOW5,coordsstring);
        }
        else if(
PlayerInfo[targetid][pMember] >= 7)
        {
            if(
PlayerInfo[targetid][pRank] == 0)
            {
                
format(coordsstringsizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[Outsider][0]",FamilyInfo[fam][FamilyName]);
                
SendClientMessage(playeridCOLOR_LIGHTYELLOW5,coordsstring);
            }
            else if(
PlayerInfo[targetid][pRank] == 1)
            {
                
format(coordsstringsizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][1]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
                
SendClientMessage(playeridCOLOR_LIGHTYELLOW5,coordsstring);
            }
            else if(
PlayerInfo[targetid][pRank] == 2)
            {
                
format(coordsstringsizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][2]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank2]);
                
SendClientMessage(playeridCOLOR_LIGHTYELLOW5,coordsstring);
            }
            else if(
PlayerInfo[targetid][pRank] == 3)
            {
                
format(coordsstringsizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][3]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank3]);
                
SendClientMessage(playeridCOLOR_LIGHTYELLOW5,coordsstring);
            }
            else if(
PlayerInfo[targetid][pRank] == 4)
            {
                
format(coordsstringsizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][4]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank4]);
                
SendClientMessage(playeridCOLOR_LIGHTYELLOW5,coordsstring);
            }
            else if(
PlayerInfo[targetid][pRank] == 5)
            {
                
format(coordsstringsizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][5]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank5]);
                
SendClientMessage(playeridCOLOR_LIGHTYELLOW5,coordsstring);
            }
            else if(
PlayerInfo[targetid][pRank] == 6)
            {
                
format(coordsstringsizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][6]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank6]);
                
SendClientMessage(playeridCOLOR_LIGHTYELLOW5,coordsstring);
            }
        }
        
GetPlayerName(targetidnamesizeof(name));
        if(
housekey != 255 && strcmp(nameHouseInfo[housekey][hOwner], true) == 0)
        {
            
format(coordsstringsizeof(coordsstring), "[Property]: Description:[%s] Value:[%d] Locked:[%d] Rentable:[%d] Rent:[$%d] Objects:[%d]",HouseInfo[housekey][hDiscription],HouseInfo[housekey][hValue],HouseInfo[housekey][hLock],HouseInfo[housekey][hRentabil],HouseInfo[housekey][hRent],HouseInfo[housekey][hOTaken]);
            
SendClientMessage(playeridCOLOR_LIGHTYELLOW5,coordsstring);
        }
        if (
PlayerInfo[targetid][pCarkey] != SCRIPT_CARS)
        {
            
format(coordsstringsizeof(coordsstring), "[Vehicle]: 1| VehModel:[%s] VehValue:[%d] VehColor1:[%d] VehColor2:[%d] VehLocked:[%d] Impounded:[%d] ImpoundPrice:[%d]"CarInfo[carkey][cDescription], CarInfo[carkey][cValue], CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cLock],CarInfo[carkey][cImpounded],CarInfo[carkey][cImpoundedPrice]);
            
SendClientMessage(playeridCOLOR_LIGHTYELLOW5,coordsstring);
        }
        if (
PlayerInfo[targetid][pCarkey2] != SCRIPT_CARS)
        {
            
format(coordsstringsizeof(coordsstring), "[Vehicle]: 2| VehModel:[%s] VehValue:[%d] VehColor1:[%d] VehColor2:[%d] VehLocked:[%d] Impounded:[%d] ImpoundPrice:[%d]"CarInfo[carkey2][cDescription], CarInfo[carkey2][cValue], CarInfo[carkey2][cColorOne], CarInfo[carkey2][cColorTwo], CarInfo[carkey2][cLock],CarInfo[carkey2][cImpounded],CarInfo[carkey2][cImpoundedPrice]);
            
SendClientMessage(playeridCOLOR_LIGHTYELLOW5,coordsstring);
        }
        if (
PlayerInfo[targetid][pCarkey3] != SCRIPT_CARS)
        {
            
format(coordsstringsizeof(coordsstring), "[Vehicle]: 3| VehModel:[%s] VehValue:[%d] VehColor1:[%d] VehColor2:[%d] VehLocked:[%d] Impounded:[%d] ImpoundPrice:[%d]"CarInfo[carkey3][cDescription], CarInfo[carkey3][cValue], CarInfo[carkey3][cColorOne], CarInfo[carkey3][cColorTwo], CarInfo[carkey3][cLock],CarInfo[carkey3][cImpounded],CarInfo[carkey3][cImpoundedPrice]);
            
SendClientMessage(playeridCOLOR_LIGHTYELLOW5,coordsstring);
        }
        if (
PlayerInfo[playerid][pAdmin] >= 1)
        {
            
format(coordsstringsizeof(coordsstring), "[Admin]: House key [%d] Business key [%d] Veh1[%d](ID:%d) Veh2[%d](ID:%d) Veh3[%d](ID:%d) HireKey [%d] int:[%d] virworld:[%d] local[%d]"housekey,bizkey,carkey,ForwardOwnCarID(1,targetid),carkey2,ForwardOwnCarID(2,targetid),carkey3,ForwardOwnCarID(3,targetid),HireCar[targetid],intir,virworld,local);
            
SendClientMessage(playeridCOLOR_LIGHTYELLOW5,coordsstring);
        }
        
SendClientMessage(playeridCOLOR_YELLOW5,"___________________________________________________________");
    }

Reply


Messages In This Thread
Need some help with a command - by showarn - 29.06.2013, 20:11
Re: Need some help with a command - by Mafiaday - 29.06.2013, 21:15
Re : Need some help with a command - by yusei - 29.06.2013, 22:29
Re: Need some help with a command - by showarn - 29.06.2013, 22:54
Re: Need some help with a command - by Red_Dragon. - 29.06.2013, 23:19
Re: Need some help with a command - by showarn - 30.06.2013, 00:08

Forum Jump:


Users browsing this thread: 1 Guest(s)