pawn Код:
#define LOL 1997 // TOPO DO GM
public Status(playerid,targetid)
{
if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
if(gPlayerLogged[targetid])
{
SendClientMessage(playerid,COLOR_NEWOOC,"__________________________________________________________________________________________________________");
new wstring[128];
new level = PlayerInfo[targetid][pLevel];
new exp = PlayerInfo[targetid][pExp];
new nxtlevel = PlayerInfo[targetid][pLevel]+1;
new expamount = nxtlevel*levelexp;
new drugs = PlayerInfo[targetid][pDrugs];
new mats = PlayerInfo[targetid][pMaterials];
new housekey = PlayerInfo[targetid][pHouseKey];
new golds = PlayerInfo[targetid][pVipActive];
new emprestime = PlayerInfo[targetid][pEmprestimo];
new freq = PlayerInfo[targetid][WalkieFrequency];
new chave1;
new chave2;
new chave3;
new chave4;
new chave5;
new chave6;
chave1 = PlayerInfo[targetid][pChave];
chave2 = PlayerInfo[targetid][pChave2];
chave3 = PlayerInfo[targetid][pChave3];
chave4 = PlayerInfo[targetid][pChave4];
chave5 = PlayerInfo[targetid][pChave5];
chave6 = PlayerInfo[targetid][pChave6];
new bizkey = PlayerInfo[targetid][pBizKey];
new playinghours = PlayerInfo[targetid][pPlayingHours];
new bank = PlayerInfo[targetid][pBank];
new warnings = PlayerInfo[targetid][pWarnings];
new Multinhas = PlayerInfo[targetid][pMultas];
new Float:hp;
GetPlayerHealth(targetid,hp);
new age = PlayerInfo[targetid][pAge];
new products = PlayerInfo[targetid][pProducts];
new phonenumbertext[128];
new location[MAX_ZONE_NAME];
GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
new pist = PlayerInfo[targetid][pPistSkill];
new Silen = PlayerInfo[targetid][pSilenSkill];
new Desert = PlayerInfo[targetid][pDesertSkill];
new Shotg = PlayerInfo[targetid][pShotgSkill];
new Sawn = PlayerInfo[targetid][pSawnSkill];
new Comb = PlayerInfo[targetid][pCombSkill];
new Uzi = PlayerInfo[targetid][pUziSkill];
new Smg = PlayerInfo[targetid][pSmgSkill];
new AK = PlayerInfo[targetid][pAkSkill];
new M4 = PlayerInfo[targetid][pM4Skill];
new phonenetwork[128];
new jobtext[128];
new weplicense[128];
new flylicense[128];
new navlicense[128];
new carlicense[128];
new biklicense[128];
new peslicense[128];
new Bilicense[128];
new cursoeng[128];
new cursoagro[128];
new cursomed[128];
new cursopol[128];
new LinguPort[128];
new LinguIng[128];
new LinguJap[128];
new LinguIta[128];
new LinguHol[128];
new ranktext[256];
switch(PlayerInfo[targetid][pJob])
{
case 0: jobtext = "None";
case 1: jobtext = "Traficante de armas";
case 2: jobtext = "Traficante de drogas";
case 3: jobtext = "Detective";
case 4: jobtext = "Advogado";
case 5: jobtext = "Vendedor de produtos";
case 6: jobtext = "Entrega Pizzas";
case 7: jobtext = "Condutor de Autocarros";
case 8: jobtext = "Condutor do Camiгo do Lixo";
case 9: jobtext = "Limpa Ruas";
case 10: jobtext = "Pescador";
case 11: jobtext = "Caзador";
case 12: jobtext = "Mecвnico";
case 13: jobtext = "Taxista";
case 14: jobtext = "Agricultor";
case 15: jobtext = "Transportador de Cereais";
case 16: jobtext = "Carteiro";
}
switch(PlayerInfo[targetid][pBikLic])
{
case 0: biklicense = "Nao";
case 1: biklicense = "Sim";
}
switch(PlayerInfo[targetid][pPesLic])
{
case 0: peslicense = "Nao";
case 1: peslicense = "Sim";
}
switch(PlayerInfo[targetid][pCarLic])
{
case 0: carlicense = "Nao";
case 1: carlicense = "Sim";
}
switch(PlayerInfo[targetid][pFlyLic])
{
case 0: flylicense = "Nao";
case 1: flylicense = "Sim";
}
switch(PlayerInfo[targetid][pNavLic])
{
case 0: navlicense = "Nao";
case 1: navlicense = "Sim";
}
switch(PlayerInfo[targetid][pWepLic])
{
case 0: weplicense = "Nao";
case 1: weplicense = "Sim";
}
switch(PlayerInfo[targetid][pCursEng])
{
case 0: cursoeng = "Nao";
case 1: cursoeng = "Sim";
}
switch(PlayerInfo[targetid][pCursMed])
{
case 0: cursomed = "Nao";
case 1: cursomed = "Sim";
}
switch(PlayerInfo[targetid][pCursAgro])
{
case 0: cursoagro = "Nao";
case 1: cursoagro = "Sim";
}
switch(PlayerInfo[targetid][pCursPol])
{
case 0: cursopol = "Nao";
case 1: cursopol = "Sim";
}
switch(PlayerInfo[targetid][pPortu])
{
case 0: LinguPort = "Nao";
case 1: LinguPort = "Sim";
}
switch(PlayerInfo[targetid][pIngle])
{
case 0: LinguIng = "Nao";
case 1: LinguIng = "Sim";
}
switch(PlayerInfo[targetid][pJapon])
{
case 0: LinguJap = "Nao";
case 1: LinguJap = "Sim";
}
switch(PlayerInfo[targetid][pHoland])
{
case 0: LinguHol = "Nao";
case 1: LinguHol = "Sim";
}
switch(PlayerInfo[targetid][pItali])
{
case 0: LinguIta = "Nao";
case 1: LinguIta = "Sim";
}
switch(PlayerInfo[playerid][pBiLic])
{
case 0: Bilicense = "Nгo Possui";
case 1: Bilicense = "Possui";
}
if(PlayerInfo[targetid][pPhoneC] == 255) { phonenetwork = "None"; } else { format(phonenetwork, sizeof(phonenetwork), "%s",Businesses[PlayerInfo[targetid][pPhoneC]][BusinessName]); }
if(PlayerInfo[targetid][pPhoneNumber] == 0) { phonenumbertext = "None"; } else { format(phonenumbertext, sizeof(phonenumbertext), "%d",PlayerInfo[targetid][pPhoneNumber]);
if(PlayerInfo[targetid][pFaction] != 255)
{
switch(PlayerInfo[targetid][pRank])
{
case 1: format(ranktext, sizeof(ranktext), "%s", DynamicFactions[PlayerInfo[targetid][pFaction]][fRank1]);
case 2: format(ranktext, sizeof(ranktext), "%s", DynamicFactions[PlayerInfo[targetid][pFaction]][fRank2]);
case 3: format(ranktext, sizeof(ranktext), "%s", DynamicFactions[PlayerInfo[targetid][pFaction]][fRank3]);
case 4: format(ranktext, sizeof(ranktext), "%s", DynamicFactions[PlayerInfo[targetid][pFaction]][fRank4]);
case 5: format(ranktext, sizeof(ranktext), "%s", DynamicFactions[PlayerInfo[targetid][pFaction]][fRank5]);
case 6: format(ranktext, sizeof(ranktext), "%s", DynamicFactions[PlayerInfo[targetid][pFaction]][fRank6]);
case 7: format(ranktext, sizeof(ranktext), "%s", DynamicFactions[PlayerInfo[targetid][pFaction]][fRank7]);
case 8: format(ranktext, sizeof(ranktext), "%s", DynamicFactions[PlayerInfo[targetid][pFaction]][fRank8]);
case 9: format(ranktext, sizeof(ranktext), "%s", DynamicFactions[PlayerInfo[targetid][pFaction]][fRank9]);
case 10: format(ranktext, sizeof(ranktext), "%s", DynamicFactions[PlayerInfo[targetid][pFaction]][fRank10]);
}
}
format(wstring, sizeof(wstring), "[GERAL:] Nome: %s - Vida: %.1f - Grana: $%d - Nivel: %d - Experiencia: %d/%d - Materiais: %d - Drogas: %d\n\
Chave Casa: %d - Chave Negocio: %d - Localizacao: %s - Banco: $%d - Avisos: %d - Idade: %d\n\
[GERAL:] HorasJogadas: %d - Emprestimo: %d - Frequencia: %d - Multas: %d\n\
[GERAL:] Numero de Telefone: %s - Rede Telefonica: %s - Golds: %d - Emprego: %s - Productos: %d\n\
[LICENCAS:] Carta de Mota: %s - Carta de Ligeiros: %s - Carta de Pesados: %s - Carta de Navegaзгo: %s\n\
[LICENCAS:] Licenca de aviacao: %s - Licenca de armas: %s - Cartao do Cidadao: %s\n\
[CURSOS:] Engenharia: %s - Agronomia: %s - Medicina: %s - Investigacao Criminal: %s\n\
[CURSOS:] Portugues: %s - Ingles: %s - Italiano: %s - Holandes: %s - Japones: %s\n\
[Skills:] Pistol: %d - Silence: %d - Desert: %d - ShotG: %d - Sawn: %d - Comb: %d - Uzi: %d - Smg: %d\n\
[Skills:] AK: %d - M4: %d\n\
[VEICULOS:] Chave do veнculo:[%d] | Segunda Chave do veнculo:[%d]\n\
[VEICULOS:] Terceira Chave do veнculo:[%d] | Quarta Chave do veнculo:[%d]\n\
[VEICULOS:] Quinta Chave do veнculo:[%d] | Sexta Chave do veнculo:[%d]\n\
[FACTION:] Faction: %s - Rank: %s\n\",
GetPlayerNameEx(targetid),
hp,
GetPlayerCash(targetid),
level,
exp,
expamount,
mats,
drugs,
housekey,
bizkey,
location,
bank,
warnings,
age,
playinghours,
emprestime,
freq,
Multinhas,
phonenumbertext,
phonenetwork,
golds,
jobtext,
products,
biklicense,
carlicense,
peslicense,
navlicense,
flylicense,
weplicense,
Bilicense,
cursoeng,
cursoagro,
cursomed,
cursopol,
LinguPort,
LinguIng,
LinguIta,
LinguHol,
LinguJap,
pist,
Silen,
Desert,
Shotg,
Sawn,
Comb,
Uzi,
Smg,
AK,
M4,
chave1,
chave2,
chave3,
chave4,
chave5,
chave6,
ranktext));
ShowPlayerDialog( playerid, LOL, DIALOG_STYLE_MSGBOX, "{FFFFFF}Seu stats!", wstring, "LOL", "");
}
}
}