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]); }
format(wstring, sizeof(wstring), "[GERAL:] Nome: %s - Vida: %.1f - Grana: $%d - Nivel: %d - Experiencia: %d/%d - Materiais: %d - Drogas: %d",GetPlayerNameEx(targetid),hp,GetPlayerCash(targetid),level,exp,expamount,mats,drugs);
SendClientMessage(playerid,COLOR_WHITE, wstring);
format(wstring, sizeof(wstring), "[GERAL:] Chave Casa: %d - Chave Negocio: %d - Localizacao: %s - Banco: $%d - Avisos: %d - Idade: %d", housekey,bizkey,location,bank,warnings,age);
SendClientMessage(playerid,COLOR_WHITE, wstring);
format(wstring, sizeof(wstring), "[GERAL:] HorasJogadas: %d - Emprestimo: %d - Frequencia: %d - Multas: %d", playinghours, emprestime, freq, Multinhas);
SendClientMessage(playerid,COLOR_WHITE, wstring);
format(wstring, sizeof(wstring), "[GERAL:] Numero de Telefone: %s - Rede Telefonica: %s - Golds: %d - Emprego: %s - Productos: %d", phonenumbertext,phonenetwork,golds,jobtext,products);
SendClientMessage(playerid,COLOR_WHITE, wstring);
format(wstring, sizeof(wstring), "[LICENCAS:] Carta de Mota: %s - Carta de Ligeiros: %s - Carta de Pesados: %s - Carta de Navegaзгo: %s", biklicense, carlicense, peslicense, navlicense);
SendClientMessage(playerid,COLOR_WHITE, wstring);
format(wstring, sizeof(wstring), "[LICENCAS:] Licenca de aviacao: %s - Licenca de armas: %s - Cartao do Cidadao: %s", flylicense, weplicense, Bilicense);
SendClientMessage(playerid,COLOR_WHITE, wstring);
format(wstring, sizeof(wstring), "[CURSOS:] Engenharia: %s - Agronomia: %s - Medicina: %s - Investigacao Criminal: %s", cursoeng, cursoagro, cursomed, cursopol);
SendClientMessage(playerid,COLOR_WHITE, wstring);
format(wstring, sizeof(wstring), "[CURSOS:] Portugues: %s - Ingles: %s - Italiano: %s - Holandes: %s - Japones: %s", LinguPort, LinguIng, LinguIta, LinguHol, LinguJap);
SendClientMessage(playerid,COLOR_WHITE, wstring);
format(wstring, sizeof(wstring), "[Skills:] Pistol: %d - Silence: %d - Desert: %d - ShotG: %d - Sawn: %d - Comb: %d - Uzi: %d - Smg: %d", pist, Silen, Desert, Shotg, Sawn, Comb, Uzi, Smg);
SendClientMessage(playerid,COLOR_WHITE, wstring);
format(wstring, sizeof(wstring), "[Skills:] AK: %d - M4: %d", AK, M4);
SendClientMessage(playerid,COLOR_WHITE, wstring);
format(wstring, sizeof(wstring), "[VEICULOS:] Chave do veнculo:[%d] | Segunda Chave do veнculo:[%d]",chave1,chave2);
SendClientMessage(playerid, COLOR_WHITE,wstring);
format(wstring, sizeof(wstring), "[VEICULOS:] Terceira Chave do veнculo:[%d] | Quarta Chave do veнculo:[%d]",chave3,chave4);
SendClientMessage(playerid, COLOR_WHITE,wstring);
format(wstring, sizeof(wstring), "[VEICULOS:] Quinta Chave do veнculo:[%d] | Sexta Chave do veнculo:[%d]",chave5,chave6);
SendClientMessage(playerid, COLOR_WHITE,wstring);
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), "[FACTION:] Faction: %s - Rank: %s",DynamicFactions[PlayerInfo[targetid][pFaction]][fName],ranktext);
SendClientMessage(playerid,COLOR_WHITE, wstring);
}
else
{
SendClientMessage(playerid,COLOR_WHITE, "[FACTION:] Faction: None - Rank: None");
}
SendClientMessage(playerid,COLOR_NEWOOC,"__________________________________________________________________________________________________________");
}
}
}
#define LOL 1997 // TOPO DO GM
public Status(playerid,targetid)
{
if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
if(gPlayerLogged[targetid])
{
new wstring[1024];
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)); // bugou aki no forum... apenas alinhar com o chave6.
ShowPlayerDialog( playerid, LOL, DIALOG_STYLE_MSGBOX, "{FFFFFF}Seu stats!", wstring, "LOL", "");
}
}
}
pawn Код:
|
new wstring[2000];
(2966) : error 017: undefined symbol "ShowServerPassword"
(2976) : error 004: function "KickPlayer" is not implemented
(2981) : error 017: undefined symbol "GetPlayerNameEx"
(2993) : error 004: function "BanPlayerAccount" is not implemented
(2994) : error 004: function "BanPlayer" is not implemented
(3028) : error 004: function "CriarTextDraws" is not implemented
(3872) : warning 216: nested comment
(3969) : warning 216: nested comment
(5552) : error 004: function "FixHour" is not implemented
(5557) : error 004: function "ChangeWeather" is not implemented
(5613) : error 017: undefined symbol "RPName"
(5639) : error 004: function "KickPlayer" is not implemented
(5655) : error 004: function "KickPlayer" is not implemented
(5781) : error 017: undefined symbol "ClearScreen"
(5782) : error 017: undefined symbol "GetPlayerNameEx"
(5784) : error 004: function "ShowScriptStats" is not implemented
(5974) : error 004: function "ResetPlayerWantedLevelEx" is not implemented
(6246) : error 017: undefined symbol "PlayerName"
(6247) : error 017: undefined symbol "PlayerName"
(6268) : error 004: function "PlayerLocalMessage" is not implemented
(6269) : error 017: undefined symbol "GetPlayerNameEx"
(6275) : error 017: undefined symbol "GetPlayerNameEx"
(6280) : error 017: undefined symbol "GetPlayerNameEx"
(6289) : error 017: undefined symbol "PlayerName"
(6290) : error 017: undefined symbol "PlayerName"
(6290) : error 017: undefined symbol "PlayerName"
(6298) : error 004: function "PlayerFixRadio" is not implemented
(6324) : error 004: function "ResetPlayerWantedLevelEx" is not implemented
if(strcmp(cmd, "/statusplayer", true) == 0) // {00FBFA} {FFFFFF}
{
new targetid;
// 1
new level = PlayerInfo[targetid][pLevel];
new exp = PlayerInfo[targetid][pExp];
new mats = PlayerInfo[targetid][pMaterials];
new drugs = PlayerInfo[targetid][pDrugs];
new Float:hp;
GetPlayerHealth(targetid,hp);
new nxtlevel = PlayerInfo[targetid][pLevel]+1;
new expamount = nxtlevel*levelexp;
// 2
new housekey = PlayerInfo[targetid][pHouseKey];
new bizkey = PlayerInfo[targetid][pBizKey];
new location[MAX_ZONE_NAME];
GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
new bank = PlayerInfo[targetid][pBank];
new warnings = PlayerInfo[targetid][pWarnings];
new age = PlayerInfo[targetid][pAge];
// 3
new emprestime = PlayerInfo[targetid][pEmprestimo];
new freq = PlayerInfo[targetid][WalkieFrequency];
new Multinhas = PlayerInfo[targetid][pMultas];
new playinghours = PlayerInfo[targetid][pPlayingHours];
// 4
new phonenumbertext[30];
if(PlayerInfo[targetid][pPhoneNumber] == 0) { phonenumbertext = "None"; } else { format(phonenumbertext, sizeof(phonenumbertext), "%d",PlayerInfo[targetid][pPhoneNumber]); }
new phonenetwork[30];
if(PlayerInfo[targetid][pPhoneC] == 255) { phonenetwork = "None"; } else { format(phonenetwork, sizeof(phonenetwork), "%s",Businesses[PlayerInfo[targetid][pPhoneC]][BusinessName]); }
new golds = PlayerInfo[targetid][pVipActive];
new jobtext[30];
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 Caminhгo do Lixo";
case 9: jobtext = "Limpador de 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";
}
new products = PlayerInfo[targetid][pProducts];
// 5
new biklicense[4];
switch(PlayerInfo[targetid][pBikLic])
{
case 0: biklicense = "Nao";
case 1: biklicense = "Sim";
}
new carlicense[4];
switch(PlayerInfo[targetid][pCarLic])
{
case 0: carlicense = "Nao";
case 1: carlicense = "Sim";
}
new peslicense[4];
switch(PlayerInfo[targetid][pPesLic])
{
case 0: peslicense = "Nao";
case 1: peslicense = "Sim";
}
new navlicense[4];
switch(PlayerInfo[targetid][pNavLic])
{
case 0: navlicense = "Nao";
case 1: navlicense = "Sim";
}
// 6
new flylicense[4];
switch(PlayerInfo[targetid][pFlyLic])
{
case 0: flylicense = "Nao";
case 1: flylicense = "Sim";
}
new weplicense[4];
switch(PlayerInfo[targetid][pWepLic])
{
case 0: weplicense = "Nao";
case 1: weplicense = "Sim";
}
new Bilicense[13];
switch(PlayerInfo[playerid][pBiLic])
{
case 0: Bilicense = "Nгo Possui";
case 1: Bilicense = "Possui";
}
// 7
new cursoeng[4];
switch(PlayerInfo[targetid][pCursEng])
{
case 0: cursoeng = "Nao";
case 1: cursoeng = "Sim";
}
new cursomed[4];
switch(PlayerInfo[targetid][pCursMed])
{
case 0: cursomed = "Nao";
case 1: cursomed = "Sim";
}
new cursoagro[4];
switch(PlayerInfo[targetid][pCursAgro])
{
case 0: cursoagro = "Nao";
case 1: cursoagro = "Sim";
}
new cursopol[4];
switch(PlayerInfo[targetid][pCursPol])
{
case 0: cursopol = "Nao";
case 1: cursopol = "Sim";
}
// 8
new LinguPort[4];
new LinguIng[4];
new LinguJap[4];
new LinguIta[4];
new LinguHol[4];
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";
}
// 9
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 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 string1[30];
new coordsstring1[128];
new coordsstring2[128];
new coordsstring3[128];
new coordsstring4[128];
new coordsstring5[128];
new coordsstring6[128];
new coordsstring7[128];
new coordsstring8[128];
new coordsstring9[128];
new coordsstring10[128];
//
format(coordsstring1, sizeof(coordsstring2),"Nome: %s - Vida: %.1f - Dinheiro: $%d - Nivel: %d - Experiencia: %d/%d - Materiais: %d - Drogas: %d\n",GetPlayerNameEx(targetid),hp,GetPlayerCash(targetid),level,exp,expamount,mats,drugs);
format(coordsstring2, sizeof(coordsstring3)," Chave Casa: %d - Chave Negocio: %d - Localizacao: %s - Banco: $%d - Avisos: %d - Idade: %d\n", housekey,bizkey,location,bank,warnings,age);
format(coordsstring3, sizeof(coordsstring4)," Horas Jogadas: %d - Emprestimo: %d - Frequencia: %d - {FF4500}Multas: %d\n", playinghours, emprestime, freq, Multinhas);
format(coordsstring4, sizeof(coordsstring5)," Numero de Tlm: %s - Rede Tlm: %s - Golds: %d - Emprego: %s - Productos: %d\n", phonenumbertext,phonenetwork,golds,jobtext,products);
format(coordsstring5, sizeof(coordsstring6)," Carta de Mota: %s - Carta de Ligeiros: %s - Carta de Pesados: %s - Carta de Navegaзгo: %s\n", biklicense, carlicense, peslicense, navlicense);
format(coordsstring6, sizeof(coordsstring7)," Licenca de aviacao: %s - Licenca de armas: %s - Cartao do Cidadao: %s\n", biklicense, carlicense, peslicense);
format(coordsstring7, sizeof(coordsstring8)," Engenharia: %s - Agronomia: %s - Medicina: %s - Investigacao Criminal: %s\n", cursoeng, cursoagro, cursomed, cursopol);
format(coordsstring8, sizeof(coordsstring9)," Portugues: %s - Ingles: %s - Italiano: %s - Holandes: %s - Japones: %s\n", LinguPort, LinguIng, LinguIta, LinguHol, LinguJap);
format(coordsstring9, sizeof(coordsstring10)," Pistol: %d - Silence: %d - Desert: %d - ShotG: %d - Sawn: %d - Comb: %d - Uzi: %d - Smg: %d - AK: %d - M4: %d\n", pist, Silen, Desert, Shotg, Sawn, Comb, Uzi, Smg,AK, M4);
format(coordsstring10, sizeof(coordsstring10)," Chave1: [%d] - Chave2: [%d] - Chave3: [%d] - Chave4: [%d] - Chave5: [%d] - Chave6: [%d]\n",chave1,chave2,chave3,chave4,chave5,chave6);
format(string1, 1028," %s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n",coordsstring1,coordsstring2,coordsstring3,coordsstring4,coordsstring5,coordsstring6,coordsstring7,coordsstring8,coordsstring9,coordsstring10);
ShowPlayerDialog(playerid, 9985, DIALOG_STYLE_MSGBOX,"{42c1ea}Terra Nova RolePlay | {d29f5e}Estatisticas",string1,"Ok","");
return 1;
}