25.12.2011, 21:35
(
Последний раз редактировалось BigBaws; 26.12.2011 в 11:57.
)
arnt fixed yet
if (strcmp(cmd, "/stats", true) == 0) { if(IsPlayerConnected(playerid)) { if (gPlayerLogged[playerid] != 0) { ShowStats(playerid,playerid); } else { SendClientMessage(playerid, COLOR_GRAD1, " Vous devez d'abord ouvrir une session!"); } } return 1; }
SendClientMessage(playerid, COLOR_WHITE,"___________________________________________________________");
}
SendClientMessage(playerid, COLOR_WHITE,"___________________________________________________________");
}
return 1;
public ShowStats(playerid,targetid)
{
if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
new cash = GetPlayerMoney(targetid);
new atext[20];
if(PlayerInfo[targetid][pSex] == 1) { atext = "Homme"; }
else if(PlayerInfo[targetid][pSex] == 2) { atext = "Femme"; }
new otext[20];
if(PlayerInfo[targetid][pOrigin] == 1) { otext = "USA"; }
else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "Europe"; }
else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Asie"; }
else if(PlayerInfo[targetid][pOrigin] == 4) { otext = "Afrique"; }
new ttext[20];
if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "Medecin"; }
else if(gTeam[targetid] == 3 || gTeam[targetid] == 4) { ttext = "Civil"; }
else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1) { ttext = "Chef LSPD"; }
else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3) { ttext = "Chef Armйe"; }
else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "Pompier/Paramedic"; }
else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6) { ttext = "Bug Du Faction"; }
else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { ttext = "Leader Vagos"; }
else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7) { ttext = "Le Maire"; }
else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8) { ttext = "Leader Hitman"; }
else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9) { ttext = "Leader Journaliste"; }
else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10) { ttext = "Leader Taximan"; }
else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { ttext = "Leader Instructeur"; }
else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14) { ttext = "Leader Mafia"; }
else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15) { ttext = "Leader Crip'Z"; }
else if(PlayerInfo[targetid][pMember] == 16 || PlayerInfo[targetid][pLeader] == 16) { ttext = "Leader Corleone"; }
else if(PlayerInfo[targetid][pMember] == 17 || PlayerInfo[targetid][pLeader] == 17) { ttext = "Leader Blood'Z"; }
else if(PlayerInfo[targetid][pMember] == 18 || PlayerInfo[targetid][pLeader] == 18) { ttext = "Leader Terroriste"; }
new dtext[20];
if(STDPlayer[targetid] == 1) { dtext = "Chlamydia"; }
else if(STDPlayer[targetid] == 2) { dtext = "Gonorrhea"; }
else if(STDPlayer[targetid] == 3) { dtext = "Syphilis"; }
else { dtext = "Aucun"; }
new ftext[30];
if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)
{ ftext = "Police Departementale"; }
else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)
{ ftext = "Paramedic/Medecin"; }
else if(PlayerInfo[targetid][pMember] == 20 || PlayerInfo[targetid][pLeader] == 20)
{ ftext = "La Famille Diaz"; }
else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5)
{ ftext = "Vagos"; }
else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11)
{ ftext = "Instructeur"; }
else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14)
{ ftext = "Mafia"; }
else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15)
{ ftext = "Crip'Z"; }
else if(PlayerInfo[targetid][pMember] == 16 || PlayerInfo[targetid][pLeader] == 16)
{ ftext = "Corleone"; }
else if(PlayerInfo[targetid][pMember] == 17 || PlayerInfo[targetid][pLeader] == 17)
{ ftext = "Blood'Z"; }
else if(PlayerInfo[targetid][pMember] == 18 || PlayerInfo[targetid][pLeader] == 18)
{ ftext = "Terroriste"; }
else
{ ftext = "Aucun"; }
new f2text[20];
if(PlayerInfo[targetid][pFMember] < 255) { f2text = FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyName]; }
else { f2text = "Aucun"; }
new rtext[64];
if(gTeam[targetid] == 5 || PlayerInfo[targetid][pFMember] < 255)//The 2 Organisations
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Etranger"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Associer"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Soldat"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Caporal"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Sous Boss"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Parrin"; }
else { rtext = "Etranger"; }
}
else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)//PD Ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Cadet"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Officier de police"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Caporal"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Sergeant"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Lieutenant"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Capitaine"; }
else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Chef Depute"; }
else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Chef"; }
else { rtext = "Cadet"; }
}
else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3)//NG Ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Soldat"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Caporale"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Capitaine"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Lieutenant"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Colonel"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "General"; }
else { rtext = "Recrue"; }
}
else if(PlayerInfo[targetid][pMember] == 20 || PlayerInfo[targetid][pLeader] == 20)//Famille Diaz
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Parain"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Bras Droit"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Recruteur"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Gros Bras"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Larbin"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Outsider"; }
else { rtext = "Zssocier"; }
}
else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5)//Vagos Rang
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Parrain"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Sous-Chef"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Recruteur"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Bras Droit"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Bras Gauche"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Membre"; }
else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Larbin"; }
else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Nouveau"; }
else { rtext = "Nouveau"; }
}
else if(PlayerInfo[targetid][pMember] == 7)//Mayor ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Chauffeur du maire"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Garde du maire"; }
else { rtext = "Aucun"; }
}
else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8)//Yakuza Ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Brute"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Espion"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Ninja"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Kasiko "; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Sensei"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Don"; }
else { rtext = "Brute"; }
}
else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9)//NR Ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Intern Worker"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Journaliste"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Head Journalist"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Company Secretary"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "ABC Manager"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Network Producer"; }
else { rtext = "Intern Worker"; }
}
else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10)//Taxi Company Ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Chauffeur de limousine "; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Chauffeur de TaXi"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Chauffeur de BuS"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Pilote d'avion"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Superviseur"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Directeur de la Companie"; }
else { rtext = "Stagiaire"; }
}
else if(IsAnInstructor(targetid))//Driving/Flying School Ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Stagiaire"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Instructeur"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Instructeur"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Manageur"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Sous Chef"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Chef"; }
else { rtext = "Stagiaire"; }
}
else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14)//Diabls Ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Chef"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Chef Discrit"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Mafia"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Nigga"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Gangsta"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Racaille"; }
else { rtext = "Associer"; }
}
else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15)//Crip'Z
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Stagiaire"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Petit racer"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Racer"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Racer Pro"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Bras Gauche"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Recruteur"; }
else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Dirigeant"; }
else { rtext = "Stagiaire"; }
}
else if(PlayerInfo[targetid][pMember] == 16 || PlayerInfo[targetid][pLeader] == 16)//Rangs des Corleones
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Le Nouveau"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Le Driver"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Le Execliver"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Le Bras-Droit"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Sous boss"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Boss"; }
else { rtext = "Le Nouveau"; }
}
else if(PlayerInfo[targetid][pMember] == 17 || PlayerInfo[targetid][pLeader] == 17)//Rangs des Blood'Z
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Larbin"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Recrue"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Gangsta"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Bras Droit"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Bras Gauche"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Chef"; }
else { rtext = "Larbin"; }
}
else if(PlayerInfo[targetid][pMember] == 18 || PlayerInfo[targetid][pLeader] == 18)//Terroriste
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Nouveau"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Soldat"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Guerrier"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Sous-Chef"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Chef"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Boss"; }
else { rtext = "Salariй"; }
}
else
{
rtext = "Aucun";
}
new jtext[20];
if(PlayerInfo[targetid][pJob] == 1) { jtext = "Detective"; }
else if(PlayerInfo[targetid][pJob] == 2) { jtext = "Avocat"; }
else if(PlayerInfo[targetid][pJob] == 3) { jtext = "Prostituйe"; }
else if(PlayerInfo[targetid][pJob] == 4) { jtext = "Dealer de Drogue"; }
else if(PlayerInfo[targetid][pJob] == 6) { jtext = "Journaliste"; }
else if(PlayerInfo[targetid][pJob] == 7) { jtext = "Mйcanicien"; }
else if(PlayerInfo[targetid][pJob] == 8) { jtext = "Garde du corps"; }
else if(PlayerInfo[targetid][pJob] == 9) { jtext = "Dealer D'armes"; }
else if(PlayerInfo[targetid][pJob] == 10) { jtext = "Dealer de Voiture"; }
else if(PlayerInfo[targetid][pJob] == 12) { jtext = "Boxeur"; }
else if(PlayerInfo[targetid][pJob] == 14) { jtext = "Chauffeur de Bus"; }
else if(PlayerInfo[targetid][pJob] == 15) { jtext = "Livreur de Journaux"; }
else if(PlayerInfo[targetid][pJob] == 16) { jtext = "Camionneur"; }
else if(PlayerInfo[targetid][pJob] == 17) { jtext = "Pizza Boy"; }
else if(PlayerInfo[targetid][pJob] == 18) { jtext = "Fermier"; }
else if(PlayerInfo[targetid][pJob] == 19) { jtext = "Fermier Illegal"; }
else if(PlayerInfo[targetid][pJob] == 20) { jtext = "Contrebande drogue"; }
else if(PlayerInfo[targetid][pJob] == 21) { jtext = "Balayeure"; }
else if(PlayerInfo[targetid][pJob] == 22) { jtext = "Contreband matйriel"; }
else if(PlayerInfo[targetid][pJob] == 23) { jtext = "Fabricant d'arme"; }
else { jtext = "Aucun"; }
new drank[20];
if(PlayerInfo[targetid][pDonateRank] == 1) { drank = "Donateur Normale"; }
else if(PlayerInfo[targetid][pDonateRank] >= 2) { drank = "Donateur Plus"; }
else { drank = "Aucun"; }
/*new married[20];
strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);*/
new age = PlayerInfo[targetid][pAge];
new ptime = PlayerInfo[targetid][pConnectTime];
//new lotto = PlayerInfo[targetid][pLottoNr];
//new deaths = PlayerInfo[targetid][pDeaths];
//new fishes = PlayerInfo[targetid][pFishes];
//new crimes = PlayerInfo[targetid][pCrimes];
new arrests = PlayerInfo[targetid][pArrested];
//new warrests = PlayerInfo[targetid][pWantedDeaths];
new drugs = PlayerInfo[targetid][pDrugs];
new mats = PlayerInfo[targetid][pMats];
//new wanted = WantedLevel[targetid];
new level = PlayerInfo[targetid][pLevel];
new exp = PlayerInfo[targetid][pExp];
//new kills = PlayerInfo[targetid][pKills];
new pnumber = PlayerInfo[targetid][pPnumber];
new account = PlayerInfo[targetid][pAccount];
new nxtlevel = PlayerInfo[targetid][pLevel]+1;
new expamount = nxtlevel*levelexp;
//new costlevel = nxtlevel*levelcost;//10k for testing purposes
new housekey = PlayerInfo[targetid][pPhousekey];
new bizkey = PlayerInfo[targetid][pPbiskey];
new carkey = PlayerInfo[targetid][pPcarkey];
new carkey2 = PlayerInfo[targetid][pPcarkey2];
new carkey3 = PlayerInfo[targetid][pPcarkey3];
new intir = PlayerInfo[targetid][pInt];
new virworld = PlayerInfo[targetid][pVirWorld];
new local = PlayerInfo[targetid][pLocal];
//new Float:shealth = PlayerInfo[targetid][pSHealth];
new Float:health;
new name[MAX_PLAYER_NAME];
GetPlayerName(targetid, name, sizeof(name));
GetPlayerHealth(targetid,health);
new Float:px,Float:py,Float:pz;
GetPlayerPos(targetid, px, py, pz);
new coordsstring[256];
format(coordsstring, sizeof(coordsstring),"::.____________________| %s |____________________.::",name);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "Level:[%d] Respect:[%d/%d] Sexe:[%s] Age:[%d] Poche:[%d $] Banque:[%d $] Numйro:[%d]", level,exp,expamount,atext,age,cash,account,pnumber);
SendClientMessage(playerid, COLOR_GRAD1,coordsstring);
format(coordsstring, sizeof(coordsstring), "Heure Jouer:[%d] Arrestations:[%d] Job:[%s] Rang:[%s]", ptime,arrests,jtext,drank);
SendClientMessage(playerid, COLOR_GRAD3,coordsstring);
format(coordsstring, sizeof(coordsstring), "Drogues:[%d] Materiels:[%d] Faction:[%s] Organisation:[%s] Rang:[%s]",drugs,mats,ttext,ftext,rtext);
SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
if (PlayerInfo[targetid][pPcarkey] != 999)
{
format(coordsstring, sizeof(coordsstring), "1| Vйhicule:[%s] Valeur:[%d] Couleur 1:[%d] Couleur 2:[%d] Porte:[%d]", CarInfo[carkey][cDescription], CarInfo[carkey][cValue], CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cLock]);
SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
}
if (PlayerInfo[targetid][pPcarkey2] != 999)
{
format(coordsstring, sizeof(coordsstring), "2| Vйhicule:[%s] Valeur:[%d] Couleur 1:[%d] Couleur 2:[%d] Porte:[%d]", CarInfo[carkey2][cDescription], CarInfo[carkey2][cValue], CarInfo[carkey2][cColorOne], CarInfo[carkey2][cColorTwo], CarInfo[carkey2][cLock]);
SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
}
if (PlayerInfo[targetid][pPcarkey3] != 999)
{
format(coordsstring, sizeof(coordsstring), "3| Vйhicule:[%s] Valeur:[%d] Couleur 1:[%d] Couleur 2:[%d] Porte:[%d]", CarInfo[carkey3][cDescription], CarInfo[carkey3][cValue], CarInfo[carkey3][cColorOne], CarInfo[carkey3][cColorTwo], CarInfo[carkey3][cLock]);
SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
}
if (PlayerInfo[playerid][pAdmin] >= 1)
{
format(coordsstring, sizeof(coordsstring), "Maison: [%d] Biz: [%d] Clef de location: [%d] Intйrior:[%d] Monde:[%d] Localisation:[%d]", housekey,bizkey,carkey,carkey2,carkey3,HireCar[targetid],intir,virworld,local);
SendClientMessage(playerid, COLOR_GRAD6,coordsstring);
}
SendClientMessage(playerid, COLOR_WHITE,"___________________________________________________________");
}
return 1;
}