Need some help with a command
#1

Hello everyone alright this is what i need help with when i press /stats on my server it looks like this!


My server



how i want it to look like.





if somebody could help me it would be great cuz then my server will be finished and me and my friends will start play (its a private server only with friends)



Currently Script

Код:
    if (strcmp(cmd, "/stats", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (gPlayerLogged[playerid] != 0)
			{
				ShowStats(playerid,playerid);
				/*GetPlayerName(playerid, sendername, sizeof(sendername));
				GiveNameSpace(sendername);
				if(PlayerInfo[playerid][pMaskUse] == 1) { format(sendername, sizeof(sendername), "Stranger_%d", RandMask[playerid]); }
				if(PlayerInfo[playerid][pSex] == 1) { format(string, sizeof(string), "* %s flips open his PDA and looks at his stats.", sendername); }
				else { format(string, sizeof(string), "* %s flips open her PDA and looks at her stats.", sendername); }
			    ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);*/
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   You aren't logged in!");
			}
		}
		return 1;
	}
Код:
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(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(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(targetid, name, sizeof(name));
	    GiveNameSpace(name);
		new coordsstring[1024], catstr[1024];
		format(coordsstring, sizeof(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,cash, account);
		strcat(catstr, coordsstring, sizeof(coordsstring));
		format(coordsstring, sizeof(coordsstring), "{33CCFF}[General]:{FFFFFF} PlayingHours:[%d] AdminLevel:[%d] Job:[%s] WalkieFreq:[%d]\n",ptime,adminlevel,jtext,freq);
		strcat(catstr, coordsstring, sizeof(coordsstring));
		if(PlayerInfo[targetid][pArrested] > 0)
		{
		    format(coordsstring, sizeof(coordsstring), "{33CCFF}[Criminal Record]:{FFFFFF} CrimesCommited:[%d] TimesArrested:[%d]\n", crimes,arrests);
		    strcat(catstr, coordsstring, sizeof(coordsstring));
		}
		if(PlayerInfo[playerid][pCellphone] == 0)
		{
            format(coordsstring, sizeof(coordsstring), "{33CCFF}[Other]:{FFFFFF} Drugs:[%d] Materials:[%d] Sex:[%s] MarriedTo:[%s]\n",drugs,mats,atext,married);
            strcat(catstr, coordsstring, sizeof(coordsstring));
        }
        else if(PlayerInfo[playerid][pCellphone] > 0)
		{
            format(coordsstring, sizeof(coordsstring), "{33CCFF}[Other]:{FFFFFF} Drugs:[%d] Materials:[%d] Sex:[%s] MarriedTo:[%s] Ph:[%d] PhoneCredit:[%d]\n",drugs,mats,atext,married,pnumber,numtime);
            strcat(catstr, coordsstring, sizeof(coordsstring));
        }
        if(PlayerInfo[targetid][pMember] <= 6)
		{
		    format(coordsstring, sizeof(coordsstring), "{33CCFF}[Faction]:{FFFFFF} Faction:[%s] Rank:[%s][%d]\n",ftext,rtext,rank);
		    strcat(catstr, coordsstring, sizeof(coordsstring));
		}
		else if(PlayerInfo[targetid][pMember] >= 7)
		{
            if(PlayerInfo[targetid][pRank] == 0)
			{
			    format(coordsstring, sizeof(coordsstring), "{33CCFF}[Faction]:{FFFFFF} Faction:[%s] Rank:[Outsider][0]\n",FamilyInfo[fam][FamilyName]);
		        strcat(catstr, coordsstring, sizeof(coordsstring));
            }
            else if(PlayerInfo[targetid][pRank] == 1)
			{
			    format(coordsstring, sizeof(coordsstring), "{33CCFF}[Faction]:{FFFFFF} Faction:[%s] Rank:[%s][1]\n",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		        strcat(catstr, coordsstring, sizeof(coordsstring));
            }
            else if(PlayerInfo[targetid][pRank] == 2)
			{
			    format(coordsstring, sizeof(coordsstring), "{33CCFF}[Faction]:{FFFFFF} Faction:[%s] Rank:[%s][2]\n",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank2]);
		        strcat(catstr, coordsstring, sizeof(coordsstring));
            }
            else if(PlayerInfo[targetid][pRank] == 3)
			{
			    format(coordsstring, sizeof(coordsstring), "{33CCFF}[Faction]:{FFFFFF} Faction:[%s] Rank:[%s][3]\n",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank3]);
		        strcat(catstr, coordsstring, sizeof(coordsstring));
            }
            else if(PlayerInfo[targetid][pRank] == 4)
			{
			    format(coordsstring, sizeof(coordsstring), "{33CCFF}[Faction]:{FFFFFF} Faction:[%s] Rank:[%s][4]\n",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank4]);
		        strcat(catstr, coordsstring, sizeof(coordsstring));
            }
            else if(PlayerInfo[targetid][pRank] == 5)
			{
			    format(coordsstring, sizeof(coordsstring), "{33CCFF}[Faction]:{FFFFFF} Faction:[%s] Rank:[%s][5]\n",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank5]);
		        strcat(catstr, coordsstring, sizeof(coordsstring));
            }
            else if(PlayerInfo[targetid][pRank] == 6)
			{
			    format(coordsstring, sizeof(coordsstring), "{33CCFF}[Faction]:{FFFFFF} Faction:[%s] Rank:[%s][6]\n",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank6]);
		        strcat(catstr, coordsstring, sizeof(coordsstring));
            }
		}
		GetPlayerName(targetid, name, sizeof(name));
		if(housekey != 255 && strcmp(name, HouseInfo[housekey][hOwner], true) == 0)
		{
		    format(coordsstring, sizeof(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(catstr, coordsstring, sizeof(coordsstring));
		}
		if (PlayerInfo[targetid][pCarkey] != SCRIPT_CARS)
		{
		    format(coordsstring, sizeof(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(catstr, coordsstring, sizeof(coordsstring));
		}
		if (PlayerInfo[targetid][pCarkey2] != SCRIPT_CARS)
		{
		    format(coordsstring, sizeof(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(catstr, coordsstring, sizeof(coordsstring));
		}
		if (PlayerInfo[targetid][pCarkey3] != SCRIPT_CARS)
		{
		    format(coordsstring, sizeof(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(catstr, coordsstring, sizeof(coordsstring));
		}
		if (PlayerInfo[playerid][pAdmin] >= 1)
		{
			format(coordsstring, sizeof(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(catstr, coordsstring, sizeof(coordsstring));
		}
		ShowPlayerDialog(playerid, 5133, DIALOG_STYLE_MSGBOX, "{33CCFF}Los Santos Life{FFFFFF} Stastics", catstr, "Close", "");
		/*format(coordsstring, sizeof(coordsstring),"____________________| %s |____________________",name);
		SendClientMessage(playerid, COLOR_YELLOW5,coordsstring);
		format(coordsstring, sizeof(coordsstring), "[Account]: Level:[%d] DonateRank:[%s] Respect:[%d/%d] Age:[%d] Cash:[$%d] Bank:[$%d]", level,drank,exp,expamount,age,cash, account);
		SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		format(coordsstring, sizeof(coordsstring), "[General]: PlayingHours:[%d] AdminLevel:[%d] Job:[%s] WalkieFreq:[%d]",ptime,adminlevel,jtext,freq);
		SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		if(PlayerInfo[targetid][pArrested] > 0)
		{
		    format(coordsstring, sizeof(coordsstring), "[Criminal Record]: CrimesCommited:[%d] TimesArrested:[%d]", crimes,arrests);
		    SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		if(PlayerInfo[playerid][pCellphone] == 0)
		{
            format(coordsstring, sizeof(coordsstring), "[Other]: Drugs:[%d] Materials:[%d] Sex:[%s] MarriedTo:[%s]",drugs,mats,atext,married);
            SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
        }
        else if(PlayerInfo[playerid][pCellphone] > 0)
		{
            format(coordsstring, sizeof(coordsstring), "[Other]: Drugs:[%d] Materials:[%d] Sex:[%s] MarriedTo:[%s] Ph:[%d] Phtime:[%d]",drugs,mats,atext,married,pnumber,numtime);
            SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
        }
        if(PlayerInfo[targetid][pMember] <= 6)
		{
		    format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][%d]",ftext,rtext,rank);
		    SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		else if(PlayerInfo[targetid][pMember] >= 7)
		{
            if(PlayerInfo[targetid][pRank] == 0)
			{
			    format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[Outsider][0]",FamilyInfo[fam][FamilyName]);
		        SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
            }
            else if(PlayerInfo[targetid][pRank] == 1)
			{
			    format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][1]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank1]);
		        SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
            }
            else if(PlayerInfo[targetid][pRank] == 2)
			{
			    format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][2]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank2]);
		        SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
            }
            else if(PlayerInfo[targetid][pRank] == 3)
			{
			    format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][3]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank3]);
		        SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
            }
            else if(PlayerInfo[targetid][pRank] == 4)
			{
			    format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][4]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank4]);
		        SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
            }
            else if(PlayerInfo[targetid][pRank] == 5)
			{
			    format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][5]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank5]);
		        SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
            }
            else if(PlayerInfo[targetid][pRank] == 6)
			{
			    format(coordsstring, sizeof(coordsstring), "[Faction]: Faction:[%s] Rank:[%s][6]",FamilyInfo[fam][FamilyName],FamilyInfo[fam][FamilyRank6]);
		        SendClientMessage(playerid, COLOR_LIGHTYELLOW5,coordsstring);
            }
		}
		GetPlayerName(targetid, name, sizeof(name));
		if(housekey != 255 && strcmp(name, HouseInfo[housekey][hOwner], true) == 0)
		{
		    format(coordsstring, sizeof(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(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		if (PlayerInfo[targetid][pCarkey] != SCRIPT_CARS)
		{
		    format(coordsstring, sizeof(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(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		if (PlayerInfo[targetid][pCarkey2] != SCRIPT_CARS)
		{
		    format(coordsstring, sizeof(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(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		if (PlayerInfo[targetid][pCarkey3] != SCRIPT_CARS)
		{
		    format(coordsstring, sizeof(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(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		if (PlayerInfo[playerid][pAdmin] >= 1)
		{
			format(coordsstring, sizeof(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(playerid, COLOR_LIGHTYELLOW5,coordsstring);
		}
		SendClientMessage(playerid, COLOR_YELLOW5,"___________________________________________________________");*/
	}
}
Thanks in regards
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)