14.10.2012, 15:36
Edit Resolvido
+REP JQuery < Axo q й isso o Nick, valeu a ajuda
+REP JQuery < Axo q й isso o Nick, valeu a ajuda
public ShowStats(playerid,targetid)
{
if(IsPlayerConnected(playerid) && IsPlayerConnected(targetid))
{
new atext[12];
if(PlayerInfo[targetid][pSex] == 1)
atext = "Masculino";
else if(PlayerInfo[targetid][pSex] == 2)
atext = "Feminino";
new otext[12];
if(PlayerInfo[targetid][pOrigin] == 1)
otext = "Brasil";
else if(PlayerInfo[targetid][pOrigin] == 2)
otext = "Europa";
//ORG
new ttext[24];
if(PlayerInfo[targetid][pLeader] != 0)
format(ttext,24,"%s",OrgsNames[PlayerInfo[targetid][pLeader]]);
else if(PlayerInfo[targetid][pMember] != 0)
format(ttext,24,"%s",OrgsNames[PlayerInfo[targetid][pMember]]);
else
ttext = "Nenhuma";
new dtext[12];
if(STDPlayer[targetid] == 1)
dtext = "Clamнdia";
else if(STDPlayer[targetid] == 2)
dtext = "Gonorrйia";
else if(STDPlayer[targetid] == 3)
dtext = "Sнfilis";
else
dtext = "Nenhuma";
new rtext[48];
format(rtext,48,"%s",GetPlayerRank(targetid));
new jtext[20];
if(PlayerInfo[targetid][pJob] == 1) { jtext = "Detetive"; }
else if(PlayerInfo[targetid][pJob] == 2) { jtext = "Advogado"; }
else if(PlayerInfo[targetid][pJob] == 3) { jtext = "Prostituta"; }
else if(PlayerInfo[targetid][pJob] == 4) { jtext = "Vendedor de drogas"; }
else if(PlayerInfo[targetid][pJob] == 5) { jtext = "Ladrгo de carros"; }
//else if(PlayerInfo[targetid][pJob] == 6) { jtext = "Vendedor de sorvete"; }
else if(PlayerInfo[targetid][pJob] == 7) { jtext = "Mecвnico"; }
else if(PlayerInfo[targetid][pJob] == 8) { jtext = "Seguranзa"; }
else if(PlayerInfo[targetid][pJob] == 9) { jtext = "Vendedor de armas"; }
else if(PlayerInfo[targetid][pJob] == 10) { jtext = "Vendedor de carros"; }
else if(PlayerInfo[targetid][pJob] == 12) { jtext = "Boxer"; }
else if(PlayerInfo[targetid][pJob] == 13) { jtext = "Taxista"; }
else if(PlayerInfo[targetid][pJob] == 15) { jtext = "Jornaleiro"; }
else if(PlayerInfo[targetid][pJob] == 16) { jtext = "Caminhoneiro"; }
else if(PlayerInfo[targetid][pJob] == 18) { jtext = "Entregador"; }
else if(PlayerInfo[targetid][pJob] == 19) { jtext = "Motorista de onibus"; }
else if(PlayerInfo[targetid][pJob] == 20) { jtext = "Entregador de Pizza"; }
else if(PlayerInfo[targetid][pJob] == 22) { jtext = "Lixeiro"; }
else { jtext = "Desempregado"; }
new bigfish = PlayerInfo[targetid][pBiggestFish];
new arrests = PlayerInfo[targetid][pArrested];
new mortes = PlayerInfo[targetid][pDeaths];
new matadas = PlayerInfo[targetid][pKills];
new drugs = PlayerInfo[targetid][pDrugs];
new mats = PlayerInfo[targetid][pMats];
new level = PlayerInfo[targetid][pLevel];
new exp = PlayerInfo[targetid][pExp];
new ptime = PlayerInfo[targetid][pConnectTime];
new cash = GetPlayerMoney(targetid);
new drank[20];
if(PlayerInfo[targetid][pDonateRank] == 1) { drank = "Vipinho"; }
else if(PlayerInfo[targetid][pDonateRank] == 2){ drank = "Vip Master"; }
else if(PlayerInfo[targetid][pDonateRank] == 3){ drank = "Vip Socio"; }
else { drank = "Nгo"; }
new pnumber = PlayerInfo[targetid][pPnumber];
new nxtlevel = PlayerInfo[targetid][pLevel]+1;
new account = PlayerInfo[targetid][pAccount];
new expamount = nxtlevel*levelexp;
new chavecasa = PlayerInfo[targetid][pPhousekey];
new chaveempresa = PlayerInfo[targetid][pPbiskey];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(targetid, sendername, sizeof(sendername));
new Float:px,Float:py,Float:pz;
GetPlayerPos(targetid, px, py, pz);
new coordsstring[128];
format(coordsstring, sizeof(coordsstring),"_______________[ Meu RG %s ]____________________",sendername);
SendClientMessage(playerid, COLOR_YELLOW,coordsstring);
format(coordsstring, sizeof(coordsstring), "Nome:[%s] - VIP:[%s] - Level:[%d] - Sexo:[%s] - Dolar:[$%d] - R$:[$%d] - Banco:[$%d]", sendername,drank,level,atext,cash,GetPlayerGP(targetid),account);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "Horas jogadas:[%d] - Trabalho:[%s] - Respeito:[%d/%d] - Tel:[%d] - Drogas:[%d] - Materiais:[%d]", ptime,jtext,exp,expamount,pnumber,drugs,mats);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "Chave da casa:[%d] - Chave da empresa:[%d] - Organizaзгo:[%s] - Cargo:[%s]",chavecasa, chaveempresa,ttext,rtext);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "Mortes:[%d] - Assassinatos:[%d] - Maior Peixe:[%d] - Vezes Preso:[%d]",mortes,matadas, bigfish,arrests);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
if (PlayerInfo[playerid][pAdmin] >= 0)
{
if(PlayerInfo[targetid][pMember] == 1)
{
SendClientMessage(playerid, COLOR_GREEN, "|- Policia Militar -| /trocarskin (/r)adio (/d)epartmentos (/m)egafone (/su)speito /ficha /abrirdp /rf /rcr ");
SendClientMessage(playerid, COLOR_GREEN, "|- Policia Militar -| /revistar /apreender /multar (/gov)erno (fechar) /arrombarporta");
SendClientMessage(playerid, COLOR_GREEN, "|- Policia Militar -| /soltarrefem /procurados /algemar /imobilizar /radar /arrombarporta /deter /limparmultas /limpar");
}
if(PlayerInfo[targetid][pMember] == 2)
{
SendClientMessage(playerid, COLOR_GREEN, "|- Policia Federal -| /trocarskin /abrirfbi (/r)adio (/d)epartmentos (/m)egafone (/su)speito /ficha ");
SendClientMessage(playerid, COLOR_GREEN, "|- Policia Federal -| /revistar /apreender /multar (/gov)erno /arrombarporta");
SendClientMessage(playerid, COLOR_GREEN, "|- Policia Federal -| /soltarrefem /procurados /algemar /imobilizar /radar /arrombarporta /deter /limparmultas /limpar");
}
if(PlayerInfo[targetid][pMember] == 3)
{
SendClientMessage(playerid, COLOR_GREEN, "|- Forcas Armadas -| /trocarskin /irbase /irarea51 (/r)adio (/d)epartmentos (/m)egafone (/su)speito /limparmultas /ficha ");
SendClientMessage(playerid, COLOR_GREEN, "|- Forcas Armadas -| /subirhydra /descerhydra /revistar /apreender /multar (/gov)erno /arrombarporta");
SendClientMessage(playerid, COLOR_GREEN, "|- Forcas Armadas -| /subircarrier /descercarrier /soltarrefem /procurados /algemar /imobilizar /radar /deter /limpar");
}
if(PlayerInfo[targetid][pMember] == 4)
{
SendClientMessage(playerid, COLOR_GREEN, "|- Medicos] /trocarskin (/r)adio (/d)epartamentos /curar /batercartao");
}
if(PlayerInfo[targetid][pMember] == 5)
{
SendClientMessage(playerid, COLOR_GREEN, "|- Front Yard Ballas -| /gf /rgf (/f)amilia)/plantarbomba /roubarnorte /roubarsub /roubarloterica /roubarpredio");
SendClientMessage(playerid, COLOR_GREEN, "|- Front Yard Ballas -| /trocarskin /assaltar /roubarpref /roubarcassino /roubardeposito /dominar ");
}
if(PlayerInfo[targetid][pMember] == 6)
{
SendClientMessage(playerid, COLOR_GREEN, "|- Grove Street Families -| /gf /rgf (/f)amilia)/plantarbomba /roubarnorte /roubarsub /roubarloterica /roubarpredio");
SendClientMessage(playerid, COLOR_GREEN, "|- Grove Street Families -| /trocarskin /assaltar /roubarpref /roubarcassino /roubardeposito /dominar ");
}
if(PlayerInfo[targetid][pMember] == 7)
{
SendClientMessage(playerid, COLOR_GREEN, "|- Prefeito -| /trocarskin (/f)amilia /d /r");
}
if(PlayerInfo[targetid][pMember] == 8)
{
SendClientMessage(playerid, COLOR_GREEN, "|- Hitman -| /trocarskin (/f)amilia) /contrato /laptop");
}
if(PlayerInfo[targetid][pMember] == 9)
{
SendClientMessage(playerid, COLOR_GREEN, "|- San News -| /trocarskin (/f)amilia) /noticias /aovivo /jornal /jornais /aovivo /noticias ");
}
if(PlayerInfo[targetid][pMember] == 10)
{
SendClientMessage(playerid, COLOR_GREEN, "|- Lowriders -| /gf /rgf (/f)amilia) /plantarbomba /roubarnorte /roubarsub /roubarloterica /roubarpredio");
SendClientMessage(playerid, COLOR_GREEN, "|- Lowriders -| /trocarskin /assaltar /roubarpref /roubarcassino /roubardeposito /dominar");
}
if(PlayerInfo[targetid][pMember] == 11)
{
SendClientMessage(playerid, COLOR_GREEN, "|- San Fierro Riffa -| /gf /rgf (/f)amilia)/plantarbomba /roubarnorte /roubarsub /roubarloterica /roubarpredio");
SendClientMessage(playerid, COLOR_GREEN, "|- San Fierro Riffa -| /trocarskin /assaltar /roubarpref /roubarcassino /roubardeposito /dominar ");
}
if(PlayerInfo[targetid][pMember] == 12)
{
SendClientMessage(playerid, COLOR_GREEN, "|- Los Santos Vagos -| /gf /rgf (/f)amilia)/plantarbomba /roubarnorte /roubarsub /roubarloterica /roubarpredio");
SendClientMessage(playerid, COLOR_GREEN, "|- Los Santos Vagos -| /trocarskin /assaltar /roubarpref /roubarcassino /roubardeposito /dominar ");
}
if(PlayerInfo[targetid][pMember] == 13)
{
SendClientMessage(playerid, COLOR_GREEN, "|- Asphalt -| /gf /rgf (/f)amilia)/plantarbomba /roubarnorte /roubarsub /roubarloterica /roubarpredio");
SendClientMessage(playerid, COLOR_GREEN, "|- Asphalt -| /trocarskin /assaltar /roubarpref /roubarcassino /roubardeposito /dominar ");
}
if(PlayerInfo[targetid][pMember] == 14)
{
SendClientMessage(playerid, COLOR_GREEN, "|- Policia Rodoviaria -| /trocarskin (/r)adio (/d)epartmentos (/m)egafone (/su)speito /bafometro /ficha /abrir(fechar)porta dp");
SendClientMessage(playerid, COLOR_GREEN, "|- Policia Rodoviaria -| /cone /rcone /rtcone /checarcinto /apreendercarro /liberarcarro /revistar /limparmultas /apreender /multar (/gov)erno /arrombarporta");
SendClientMessage(playerid, COLOR_GREEN, "|- Policia Rodoviaria -| /corrente /rcorrente /rtodascorrentes /soltarrefem /procurados /algemar /imobilizar /radar /arrombarporta /deter /limpar");
}
if(PlayerInfo[targetid][pMember] == 15)
{
SendClientMessage(playerid, COLOR_GREEN, "|- Varrio Los Aztecas -| /gf /rgf (/f)amilia)/plantarbomba /roubarnorte /roubarsub /roubarloterica /roubarpredio");
SendClientMessage(playerid, COLOR_GREEN, "|- Varrio Los Aztecas -| /trocarskin /assaltar /roubarpref /roubarcassino /roubardeposito /dominar ");
}
if(PlayerInfo[targetid][pMember] == 16)
{
SendClientMessage(playerid, COLOR_GREEN, "|- The Triads -| /gf /rgf /trocarskin /dominar (/f)amilia) /roubardeposito /roubarnorte /roubarsub /roubarloterica /roubarcassino /plantarbomba ");
}
if(PlayerInfo[targetid][pMember] == 17)
{
SendClientMessage(playerid, COLOR_GREEN, "|- Yakuza -| /gf /rgf /trocarskin /dominar (/f)amilia) /roubardeposito /roubarnorte /roubarsub /roubarloterica /roubarcassino /plantarbomba ");
}
if(PlayerInfo[targetid][pMember] == 18)
{
SendClientMessage(playerid, COLOR_GREEN, "|- Drifters -| /gf /rgf (/f)amilia)/plantarbomba /roubarnorte /roubarsub /roubarloterica /roubarpredio");
SendClientMessage(playerid, COLOR_GREEN, "|- Drifters -| /trocarskin /assaltar /roubarpref /roubarcassino /roubardeposito /dominar ");
}
if(PlayerInfo[targetid][pMember] == 19)
{
SendClientMessage(playerid, COLOR_GREEN, "|- Comando Vermelho -| /gf /rgf (/f)amilia)/plantarbomba /roubarnorte /roubarsub /roubarloterica /roubarpredio");
SendClientMessage(playerid, COLOR_GREEN, "|- Comando Vermelho -| /trocarskin /assaltar /roubarpref /roubarcassino /roubardeposito /dominar ");
}
if(PlayerInfo[targetid][pMember] == 20)
{
SendClientMessage(playerid, COLOR_GREEN, "|- Pcc -| /gf /rgf (/f)amilia)/plantarbomba /roubarnorte /roubarsub /roubarloterica /roubarpredio");
SendClientMessage(playerid, COLOR_GREEN, "|- Pcc -| /trocarskin /assaltar /roubarpref /roubarcassino /roubardeposito /dominar ");
}
if(PlayerInfo[targetid][pMember] == 21)
{
SendClientMessage(playerid, COLOR_GREEN, "|- G.A.T.E -| /trocarskin (/r)adio (/d)epartmentos (/m)egafone (/su)speito /bafometro /ficha /abrir(fechar)porta dp");
SendClientMessage(playerid, COLOR_GREEN, "|- G.A.T.E -| /revistar /apreender /multar (/gov)erno /arrombarporta");
SendClientMessage(playerid, COLOR_GREEN, "|- G.A.T.E -| /soltarrefem /procurados /algemar /imobilizar /radar /arrombarporta /deter /limpar");
}
if(PlayerInfo[targetid][pMember] == 22 || PlayerInfo[targetid][pLeader] == 22)
{
SendClientMessage(playerid, COLOR_GREEN, "[As-Farc] /gf /rgf /trocarskin (/f)amilia /bomba /atentado /alq");
}
if(PlayerInfo[targetid][pMember] == 23|| PlayerInfo[targetid][pLeader] == 23)
{
SendClientMessage(playerid, COLOR_GREEN, "[Policia Civнl] /trocarskin (/r)adio (/d)epartmentos (/m)egafone (/su)speito /bafometro /ficha /abrir(fechar)porta dp");
SendClientMessage(playerid, COLOR_GREEN, "[Policia Civнl] /checarcinto /apreendercarro /liberarcarro /revistar /apreender /multar (/gov)erno /arrombarporta");
SendClientMessage(playerid, COLOR_GREEN, "[Policia Civнl] /corrente /rcorrente /rtodascorrentes /soltarrefem /procurados /algemar /imobilizar /radar /arrombarporta /deter /limpar");
}
if(PlayerInfo[targetid][pJob] == 1) { SendClientMessage(playerid,COLOR_YELLOW2,"[Emprego] /encontrar - (Caso de bug use /rdet)"); }
if(PlayerInfo[targetid][pJob] == 2) { SendClientMessage(playerid,COLOR_YELLOW2,"[Emprego] /libertar - /presos"); }
if(PlayerInfo[targetid][pJob] == 3) { SendClientMessage(playerid,COLOR_YELLOW2,"[Emprego] /sexo"); }
if(PlayerInfo[targetid][pJob] == 4) { SendClientMessage(playerid,COLOR_YELLOW2,"[Emprego] /venderdrogas - /liberardrogas - /j"); }
if(PlayerInfo[targetid][pJob] == 5) { SendClientMessage(playerid,COLOR_YELLOW2,"[Emprego] /desmanchar - /j"); }
//if(PlayerInfo[targetid][pJob] == 6) { SendClientMessage(playerid,COLOR_YELLOW2,"[Emprego] /vendersorvete"); }
if(PlayerInfo[targetid][pJob] == 7) { SendClientMessage(playerid,COLOR_YELLOW2,"[Emprego] /concerto - /abastecimento - /j - /batercartao e busina guincha um carro!"); }
if(PlayerInfo[targetid][pJob] == 8) { SendClientMessage(playerid,COLOR_YELLOW2,"[Emprego] /proteger"); }
if(PlayerInfo[targetid][pJob] == 9) { SendClientMessage(playerid,COLOR_YELLOW2,"[Emprego] /contrabando - /venderarmas - /j - /liberarmateriais"); }
if(PlayerInfo[targetid][pJob] == 10) { SendClientMessage(playerid,COLOR_YELLOW2,"[Emprego] /vendercarro"); }
//if(PlayerInfo[targetid][pJob] == 11) { SendClientMessage(playerid,COLOR_YELLOW2,"[Emprego] /venderhotdog"); }
if(PlayerInfo[targetid][pJob] == 12) { SendClientMessage(playerid,COLOR_YELLOW2,"[Emprego] /lutar - /boxstats"); }
if(PlayerInfo[targetid][pJob] == 13) { SendClientMessage(playerid,COLOR_YELLOW2,"[Emprego] /contagem"); }
if(PlayerInfo[targetid][pJob] == 15) { SendClientMessage(playerid,COLOR_YELLOW2,"[Emprego] /jornais - /pegarjornal - /venderjornal"); }
if(PlayerInfo[targetid][pJob] == 16) { SendClientMessage(playerid,COLOR_YELLOW2,"[Emprego] Vб onde estгo os caminhхes /gps empregos /j"); }
if(PlayerInfo[targetid][pJob] == 18) { SendClientMessage(playerid,COLOR_YELLOW2,"[Emprego] /compraprods - /venderprods - /carregar"); }
if(PlayerInfo[targetid][pJob] == 20) { SendClientMessage(playerid,COLOR_YELLOW2,"[Emprego] /batercartao - /venderpizza"); }
if(PlayerInfo[targetid][pJob] == 22) { SendClientMessage(playerid,COLOR_YELLOW2,"[Emprego] Vб onde estгo os caminhхes /gps empregos /j"); }
}
}
}