[Pomoć]Oko stats-a

Započeo Contixo, Februar 15, 2012, 18:47:00 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: mojgm od 0
Detaljan opis problema:Neznam uopce da napravim /stats, ako neko moze da pomogne i da mi da normalan stats i da radi sve da mi neizbacuje errore i warninge, ako je moguce ikako u dialogu i da ima osnovno.
Dio skripte: /
Neke slike/video za lakse dobivanje pomoci(neobavezno): /

Vegas.

Skini neki mod sa istim pluginom kao tvojim i kopiraj /stats i editaj ... To ti je moja preporuka !

Uradi kao sto ti je rekao Vegas ja sam isto to uradio.

Napoli-Best team in the world.


Napoli-Best fans in the world.

Zelis li statse u dialogu, textdrawu ili na chatu?


new ptime = PlayerInfo[targetid][pConnectTime];
new level = PlayerInfo[targetid][pLevel];
new exp = PlayerInfo[targetid][pExp];
new drugs = PlayerInfo[targetid][pDrugs];
new mats = PlayerInfo[targetid][pMats];
new pnumber = PlayerInfo[targetid][pPnumber];
new account = PlayerInfo[targetid][pAccount];
new nxtlevel = PlayerInfo[targetid][pLevel]+1;
new expamount = nxtlevel*levelexp;
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 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 string[448];
        format(string,sizeof(string),"------------ \nLevel:[%d] \nPol:[%s] \nDzep:[$%d] \nBanka:[$%d] \nBroj Telefona:[%d] \n------------ \nSati Igranja:[%d] \nPosao:[%s] \nRespekt:[%d/%d] \nDonateRank:[%s] \n------------ \nOrganizacija:[%s] \nDroga:[%d] \nMaterijali:[%d] \n----------- \nKljuc kuce [%d] \nKljuc biznisa [%d] \nVeh1 [%d] \nVeh2 [%d] \nVeh3 [%d]",level,atext,cash,account,pnumber,ptime,jtext,exp,expamount,drank,ftext,drugs,mats,housekey,bizkey,carkey,carkey2,carkey3);
ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,"{0000FF}Stats:",string,"Dobro","Dobro!");
}
}



Ovo stavi umesto tvog statsa pod ShowStats

Evo imam ovo sta treba da izbrisem i gdje da dodam ?? :


public ShowStats(playerid,targetid)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
new cash =  GetPlayerMoney(targetid);
new atext[20];
if(PlayerInfo[targetid][pSex] == 1)
{ atext = "Male"; }
else if(PlayerInfo[targetid][pSex] == 2)
{ atext = "Female"; }
  new otext[20];
if(PlayerInfo[targetid][pPlace] == 0)
{ otext = "Los Santos"; }
else if(PlayerInfo[targetid][pPlace] == 1)
{ otext = "Bone County"; }
new drank[20];
if(PlayerInfo[targetid][pVip] == 1)
{ drank = "Golden"; }
else if(PlayerInfo[targetid][pVip] == 2)
{ drank = "Steel"; }
else { drank = "None"; }
new age = PlayerInfo[targetid][pAge];
new warns = PlayerInfo[targetid][pWarns];
//new level = PlayerInfo[targetid][pLevel];
//new exp = PlayerInfo[targetid][pExp];
//new nxtlevel = PlayerInfo[targetid][pLevel]+1;
//new expamount = nxtlevel*levelexp;
//new costlevel = nxtlevel*levelcost;
new name[MAX_PLAYER_NAME];
new pnumber = PlayerInfo[targetid][pNumber];
GetPlayerName(targetid, name, sizeof(name));
new Float:px,Float:py,Float:pz;
GetPlayerPos(targetid, px, py, pz);
new coordsstring[128];
SendClientMessage(playerid, COLOR_GREEN,"______________________________________________________________________");
format(coordsstring, sizeof(coordsstring),"                             *** %s ***",name);
SendClientMessage(playerid, COLOR_YELLOW,coordsstring);
format(coordsstring, sizeof(coordsstring), "Sex:[%s] Age:[%d] Origin:[%s] Cash:[$%d] PhoneNumber:[%d] ", atext,age,otext, cash, pnumber);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "Donaterank:[%s] Warns:[%d/5]", drank, warns);
SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);
//format(coordsstring, sizeof(coordsstring), "NextLevel:[$%d] Respect:[%d/%d]",costlevel,exp,expamount);
//SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________________________________________");
}
}
Poslednja Izmena: Februar 16, 2012, 14:19:03 POSLE PODNE od Sadin

[BT:RP] Mayor !



[BT:RP] Mayor !


Sadline ovaj tvoj stats obrises i dodas moj, ako si nov i nisi siguran nemoj to raditi

[BT:RP] Mayor !

Citat: â,,¢[Script&Map TIM] Blaeksâ,,¢ poslato Februar 16, 2012, 14:49:01 POSLE PODNE
Sadline ovaj tvoj stats obrises i dodas moj, ako si nov i nisi siguran nemoj to raditi
moze raditi al pre toga neka kopira mod ili neka kopira to sto ce obrisati

Citat: Sadin poslato Februar 16, 2012, 14:09:34 POSLE PODNE
Evo imam ovo sta treba da izbrisem i gdje da dodam ?? :


public ShowStats(playerid,targetid)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
new cash =  GetPlayerMoney(targetid);
new atext[20];
if(PlayerInfo[targetid][pSex] == 1)
{ atext = "Male"; }
else if(PlayerInfo[targetid][pSex] == 2)
{ atext = "Female"; }
  new otext[20];
if(PlayerInfo[targetid][pPlace] == 0)
{ otext = "Los Santos"; }
else if(PlayerInfo[targetid][pPlace] == 1)
{ otext = "Bone County"; }
new drank[20];
if(PlayerInfo[targetid][pVip] == 1)
{ drank = "Golden"; }
else if(PlayerInfo[targetid][pVip] == 2)
{ drank = "Steel"; }
else { drank = "None"; }
new ptime = PlayerInfo[targetid][pConnectTime];
new level = PlayerInfo[targetid][pLevel];
new exp = PlayerInfo[targetid][pExp];
new drugs = PlayerInfo[targetid][pDrugs];
new mats = PlayerInfo[targetid][pMats];
new pnumber = PlayerInfo[targetid][pPnumber];
new account = PlayerInfo[targetid][pAccount];
new nxtlevel = PlayerInfo[targetid][pLevel]+1;
new expamount = nxtlevel*levelexp;
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 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 string[448];
        format(string,sizeof(string),"------------ \nLevel:[%d] \nPol:[%s] \nDzep:[$%d] \nBanka:[$%d] \nBroj Telefona:[%d] \n------------ \nSati Igranja:[%d] \nPosao:[%s] \nRespekt:[%d/%d] \nDonateRank:[%s] \n------------ \nOrganizacija:[%s] \nDroga:[%d] \nMaterijali:[%d] \n----------- \nKljuc kuce [%d] \nKljuc biznisa [%d] \nVeh1 [%d] \nVeh2 [%d] \nVeh3 [%d]",level,atext,cash,account,pnumber,ptime,jtext,exp,expamount,drank,ftext,drugs,mats,housekey,bizkey,carkey,carkey2,carkey3);
ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,"{0000FF}Stats:",string,"Dobro","Dobro!");
}
}


Ovako radi

Sadine,preporucio bih ti da ne radis gamemod od 0 ako neznas bas dobro skriptati,najboloje ti je neki skinuti pa editovati po meni je najbolji ravens roleplay ima bugova ali je predobar ima sve.ja koristim ravens i evo moj /stats
public ShowStats(playerid,targetid)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
new cash =  GetPlayerMoney(targetid);
new atext[20];
if(PlayerInfo[targetid][pSex] == 1) { atext = "Musko"; }
else if(PlayerInfo[targetid][pSex] == 2) { atext = "Zensko"; }
  new otext[20];
if(PlayerInfo[targetid][pOrigin] == 1) { otext = "BiH"; }
else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "Srbija"; }
else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Hrvatska"; }
else if(PlayerInfo[targetid][pOrigin] == 4) { otext = "Slovenija"; }
new ttext[21];
if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "Medic"; }
else if(gTeam[targetid] == 3 || gTeam[targetid] == 4) { ttext = "Civilian"; }
else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1) { ttext = "Los Santos PD"; }
else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2) { ttext = "Los Santos FBI"; }
else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3) { ttext = "Los Santos NG"; }
else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "Los Santos MD"; }
else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { ttext = "Surenos Gang"; }
else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6) { ttext = "Signatra Mafia"; }
else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7) { ttext = "LS Government"; }
else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8) { ttext = "Hitmen Company"; }
else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9) { ttext = "News Company"; }
else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10) { ttext = "Taxi Company"; }
else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { ttext = "LS Licensers"; }
else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12) { ttext = "Los Santos FD"; }
else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 13) { ttext = "Sons of Anarchy Gang"; }
else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14) { ttext = "Yamaguchi Mafia"; }
else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15) { ttext = "Chornaya Mafia"; }
else if(PlayerInfo[targetid][pMember] == 16 || PlayerInfo[targetid][pLeader] == 16) { ttext = "La Vice Mafia"; }
    else if(PlayerInfo[targetid][pMember] == 17 || PlayerInfo[targetid][pLeader] == 17) { ttext = "Grove Street"; }
else if(PlayerInfo[targetid][pMember] == 18 || PlayerInfo[targetid][pLeader] == 18) { ttext = "Yakuza"; }
else if(PlayerInfo[targetid][pMember] == 19 || PlayerInfo[targetid][pLeader] == 19) { ttext = "La Cobra Mafia"; }
else if(PlayerInfo[targetid][pMember] == 20 || PlayerInfo[targetid][pLeader] == 20) { ttext = "Triads"; }
else if(PlayerInfo[targetid][pMember] == 21 || PlayerInfo[targetid][pLeader] == 21) { ttext = "Al Queda"; }
else if(PlayerInfo[targetid][pMember] == 22 || PlayerInfo[targetid][pLeader] == 22) { ttext = "DPD"; }
else if(PlayerInfo[targetid][pMember] == 23 || PlayerInfo[targetid][pLeader] == 23) { ttext = "LS Vagos"; }
else { ttext = "Civil"; }
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 = "None"; }
new f2text[20];
    if(PlayerInfo[targetid][pFMember] < 255) { f2text = FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyName]; }
else { f2text = "None"; }
    new rtext[64];
    if(gTeam[targetid] == 5 || PlayerInfo[targetid][pFMember] < 255)//The 2 Organisations
    {
        if(PlayerInfo[targetid][pRank] == 1) { rtext = "Outsider"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Associate"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Soldier"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Capo"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Underboss"; }
  else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Godfather"; }
else { rtext = "Outsider"; }
}
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 = "Officer"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Corporal"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Sergeant"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Lieutenant"; }
        else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Captain"; }
        else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Deputy Chief"; }
        else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Chief"; }
else { rtext = "Cadet"; }
}
else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)//FBI Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Cadet"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Agent"; }
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 = "Division Chief"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Assistant of Director"; }
else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Deputy Director"; }
    else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Director"; }
else { rtext = "Intern"; }
}
else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3)//NG Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Private"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Soldier"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Sergeant"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Major"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Lieutenant"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Captain"; }
    else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Sub General"; }
    else if(PlayerInfo[targetid][pRank] == 8) { rtext = "General"; }
else { rtext = "Private"; }
}
else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)//PD Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "EMS Explorer"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "EMS Trainee"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "BLS Medic"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "ALS Medic"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "EMS Captain"; }
        else if(PlayerInfo[targetid][pRank] == 6) { rtext = "EMS Lieutenant"; }
        else if(PlayerInfo[targetid][pRank] == 7) { rtext = "EMS Chief"; }
        else if(PlayerInfo[targetid][pRank] == 8) { rtext = "EMS Commisioner"; }
else { rtext = "EMS Explorer"; }
}
else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5)//Surenos Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Forastero"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Asociado"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Miembro"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Proscrito"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Mano Derecha"; }
  else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Corona"; }
else { rtext = "Guero"; }
}
else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6)//La Famiglia Sinatra Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Outsider"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Giovane D'honore"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Piciotto"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Sgarrista"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Capo Regime"; }
  else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Consiglieri"; }
  else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Capo Bastone"; }
  else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Capo Crimini"; }
else { rtext = "Outsider"; }
}
else if(PlayerInfo[targetid][pMember] == 7)//Mayor ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Mayor's driver"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Mayor's bodyguard"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Mayor's Drivers Chief"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Mayor's Security Chief"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Mayor's Assistant"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Mayor"; }
    else { rtext = "None"; }
}
else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8)//Hitman Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Freelancer"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Marksman"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Agent"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Special Agent"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Vice-Director"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Director"; }
else { rtext = "Freelancer"; }
}
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 = "Journalist"; }
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 = "Trainee"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Taxi Rookie"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Cabbie"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Dispatcher"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Shift Supervisor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Taxi Company Owner"; }
else { rtext = "Trainee"; }
}
else if(IsAnInstructor(targetid))//Driving/Flying School Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Instructor"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Senior Instructor"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Manager"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Under Boss"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Boss"; }
else { rtext = "Trainee"; }
}
else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12)//PD Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Explorer"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Probitionary"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Firefighter"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Driver"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "FD Lieutenant"; }
        else if(PlayerInfo[targetid][pRank] == 6) { rtext = "FD Captain"; }
        else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Assistant Chief"; }
        else if(PlayerInfo[targetid][pRank] == 8) { rtext = "FD Chief"; }
else { rtext = "EMS Explorer"; }
}
else if(PlayerInfo[targetid][pMember] == 13 || PlayerInfo[targetid][pLeader] == 13)//Yamaguchi ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Rookie Rider"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Rider of Fights"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Rider of Chaos"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Rider of Anarchy"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Son of Anarchy"; }
  else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Father of Anarchy"; }
else { rtext = "Rookie Rider"; }
}
else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14)//Yamaguchi ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Gaij in"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Wakashu"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Shatei"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Capo"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Don's right hand"; }
  else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Don"; }
else { rtext = "Gaij in"; }
}
else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15)//Chornaya Bratva gang Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Shestiorka"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Patsani"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Byki"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Capo"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Underboss"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Pakhan"; }
else { rtext = "Shestiorka"; }
}
else if(PlayerInfo[targetid][pMember] == 16 || PlayerInfo[targetid][pLeader] == 16)//La Vice Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Member"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Loyal Member"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Elite Member"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Made Man"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Advisor"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Loyal Advisor"; }
    else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Elite Advisor"; }
    else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Lower Boss"; }
    else if(PlayerInfo[targetid][pRank] == 9) { rtext = "Boss"; }
else { rtext = "Dumb Hoe"; }
}
else
{
    rtext = "None";
}
        new jtext[20];
        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 = "Waiter"; }
        else if(PlayerInfo[targetid][pJob] == 7) { jtext = "Car Mechanic"; }
        else if(PlayerInfo[targetid][pJob] == 8) { jtext = "Bodyguard"; }
        else if(PlayerInfo[targetid][pJob] == 10) { jtext = "Car Dealer"; }
        else if(PlayerInfo[targetid][pJob] == 11) { jtext = "Stuntman"; }
else if(PlayerInfo[targetid][pJob] == 12) { jtext = "Boxer"; }
else if(PlayerInfo[targetid][pJob] == 13) { jtext = "Taxi Driver"; }
        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 = "Trucker"; }
        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 = "Arms Dealer"; }
        else { jtext = "None"; }
new drank[20];
if(PlayerInfo[targetid][pRegularRank] == 1) { drank = "Regular Player"; }
else if(PlayerInfo[targetid][pRegularRank] == 2) { drank = "Regular lvl. 2"; }
else if(PlayerInfo[targetid][pRegularRank] == 3) { drank = "Platinium Regular"; }
else { drank = "None"; }
new age = PlayerInfo[targetid][pAge];
new ptime = PlayerInfo[targetid][pConnectSeconds];
new lotto = PlayerInfo[targetid][pLottoNr];
new fishes = PlayerInfo[targetid][pFishes];
new bigfish = PlayerInfo[targetid][pBiggestFish];
new crimes = PlayerInfo[targetid][pCrimes];
new arrests = PlayerInfo[targetid][pArrested];
new drugs = PlayerInfo[targetid][pDrugs];
new mats = PlayerInfo[targetid][pMats];
new level = PlayerInfo[targetid][pLevel];
new exp = PlayerInfo[targetid][pExp];
new pnumber = PlayerInfo[targetid][pPnumber];
new account = PlayerInfo[targetid][pAccount];
new nxtlevel = PlayerInfo[targetid][pLevel]+1;
new expamount = nxtlevel*levelexp;
new housekey = PlayerInfo[targetid][pPhousekey];
new bizkey = PlayerInfo[targetid][pPbiskey];
new carkey = PlayerInfo[targetid][pPcarkey];
new carkey2 = PlayerInfo[targetid][pPcarkey2];
new intir = PlayerInfo[targetid][pInt];
new virworld = GetPlayerVirtualWorld(targetid);
new local = PlayerInfo[targetid][pLocal];
new swatr[20];
  if(PlayerInfo[targetid][pSwat] == 1) { swatr = "Operative"; }
        else if(PlayerInfo[targetid][pSwat] == 2) { swatr = "Instructor"; }
        else if(PlayerInfo[targetid][pSwat] == 3) { swatr = "Team Sub-Leader"; }
        else if(PlayerInfo[targetid][pSwat] == 4) { swatr = "Team Leader"; }
        else { swatr = "None"; }
        new tacticalr[20];
  if(PlayerInfo[targetid][pTactical] == 1) { tacticalr = "Trainee Unit"; }
        else if(PlayerInfo[targetid][pTactical] == 2) { tacticalr = "Expert Agent"; }
        else if(PlayerInfo[targetid][pTactical] == 3) { tacticalr = "Elite Agent"; }
        else if(PlayerInfo[targetid][pTactical] == 4) { tacticalr = "Master Agent"; }
        else { tacticalr = "None"; }
        new specialfr[20];
  if(PlayerInfo[targetid][pSpecialF] == 1) { specialfr = "Soldier"; }
        else if(PlayerInfo[targetid][pSpecialF] == 2) { specialfr = "Masterchief"; }
        else if(PlayerInfo[targetid][pSpecialF] == 3) { specialfr = "Squad Sub-Leader"; }
        else if(PlayerInfo[targetid][pSpecialF] == 4) { specialfr = "Squad Leader"; }
        else { specialfr = "None"; }
        new fight[56];
if(PlayerInfo[targetid][pFS] == 1) { fight = "Boxing"; }
else if(PlayerInfo[targetid][pFS] == 2) { fight = "Grab'n'Kick"; }
else if(PlayerInfo[targetid][pFS] == 3) { fight = "Kung Fu"; }
else if(PlayerInfo[targetid][pFS] == 0) { fight = "Default"; }
else if(PlayerInfo[targetid][pFS] == 4) { fight = "Knee Head"; }
else if(PlayerInfo[targetid][pFS] == 5) { fight = "El Bow"; }
new warned = PlayerInfo[targetid][pWarned];
new dban = PlayerInfo[targetid][pDBanned];
new drights = PlayerInfo[targetid][pDM];
new Colt = PlayerInfo[targetid][pPistSkill];
new Silenced = PlayerInfo[targetid][pSilenSkill];
new Deagle = PlayerInfo[targetid][pDesertSkill];
new Shotgun = PlayerInfo[targetid][pShotgSkill];
new Sawn = PlayerInfo[targetid][pSawnSkill];
new Combat = PlayerInfo[targetid][pCombSkill];
new Uzi = PlayerInfo[targetid][pUziSkill];
new Smg = PlayerInfo[targetid][pSmgSkill];
new M4 = PlayerInfo[targetid][pM4Skill];
new Ak47 = PlayerInfo[targetid][pAkSkill];
new Deaths = PlayerInfo[playerid][pDeaths];
new Kills = PlayerInfo[targetid][pKills];
new tester = PlayerInfo[targetid][pTester];
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 Float:armour;
GetPlayerArmour(playerid, armour);
new Playersip[64];
GetPlayerIp(playerid, Playersip, sizeof(Playersip));
new coordsstring[128];
format(coordsstring, sizeof(coordsstring),"|***********************************************| %s (%d) |*********************************************************|",name, targetid);
SendClientMessage(playerid, COLOR_GREEN,coordsstring);
format(coordsstring, sizeof(coordsstring), "| Level: %d | Spol: %s | Godine: %d | Novac: $%d | Banka: $%d | Broj: %d | Regularni Rank: %s |", level,atext,age,cash,account,pnumber,drank);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "| Online sati: %d | Online minuta: %d | Online sekundi: %d | Najveca riba: %d | Puta uhapsen: %d |",(ptime / 3600), (ptime / 60), ptime,bigfish,arrests);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "| Respekt poena: %d/%d | Smrti: %d | Droga: %d | Materijali: %d | Organizacija: %s | Rank: %s | Ubistava: %d | Upozorenja: %d |",exp,expamount,Deaths,drugs,mats,ttext,rtext, Kills,warned);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "| Swat Rank: %s | Taktikal Rank: %s | Forces Rank: %s | DD Menadzer: %d | Loto broj: %d | Zlocina: %d |",swatr,tacticalr,specialfr,drights,lotto,crimes);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "| Stil borbe: %s | GameMaster rank: %d | ColtSkill: %d | Silenced Skill: %d | Deagle Skill: %d | Shotgun Skill: %d |",fight, tester, Colt,Silenced,Deagle, Shotgun);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "| SawnSkill: %d | Combat Skill: %d | Uzi Skill: %d | SMG Skill: %d | M4 Skill: %d | AK-47 Skill: %d |", Sawn,Combat,Uzi, Smg, M4, Ak47);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "| Snaga: %.1f | Pancir: %.1f | IP: %s | Riba: %d | Napustio zadnji put: %s | Banovan sa duznosti: %d |", health, armour, Playersip, fishes, PlayerInfo[targetid][pWhyLeft], dban);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "| Kljuc kuce: %d | Kljuc biznisa: %d | Kljuc kuce(rent): %d | Interior: %d | Virtualni Svijet: %d | Lokal: %d | Posao: %s |", housekey,bizkey,HireCar[targetid],intir,virworld,local,jtext);
SendClientMessage(playerid, COLOR_GREEN,coordsstring);
if (PlayerInfo[targetid][pPcarkey] != 9999)
{
    new vehiclename[24];
GetVehicleName(carkey, vehiclename, sizeof(vehiclename));
    format(coordsstring, sizeof(coordsstring), "| ID vozila 1: %d | Model: %s (%d) | Vrijednost: %d | Boja 1: %d | Boja 2: %d | Brava: %d | Kod: %d |",carkey,vehiclename, CarInfo[carkey][cModel], GetVehiclePrice(carkey), CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cLock], CarInfo[carkey][cCode]);
    SendClientMessage(playerid, COLOR_NICERED,coordsstring);
}
if (PlayerInfo[targetid][pPcarkey2] != 9999)
{
    new vehiclename[24];
GetVehicleName(carkey2, vehiclename, sizeof(vehiclename));
    format(coordsstring, sizeof(coordsstring), "| ID vozila 2: %d | Model: %s (%d) | Vrijednost: %d | Boja 1: %d | Boja 2: %d | Brava: %d | Kod: %d |",carkey2,vehiclename, CarInfo[carkey2][cModel], GetVehiclePrice(carkey2), CarInfo[carkey2][cColorOne], CarInfo[carkey2][cColorTwo], CarInfo[carkey2][cLock], CarInfo[carkey2][cCode]);
    SendClientMessage(playerid, COLOR_NICERED,coordsstring);
}
}
}

stisni CTRL + F i kucaj  public ShowStats  i sve ovo sto sam stavio zalijepi
a ako radis od 0 ako nisdi n paravio komandu /stats evo isto iz mog:
if (strcmp(cmd, "/stats", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (gPlayerLogged[playerid] != 0)
{
ShowStats(playerid,playerid);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /stats",d,m,y,h,mi,s,sendername);
CommandLog(string);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Niste ulogovani!");
return 1;
}
}
return 1;
}

ovo ide pod   public OnPlayerCommandText
Moj nije u dialogu ali ima znaci sve eto pogledaj sam ;)
Poslednja Izmena: Februar 16, 2012, 15:21:42 POSLE PODNE od â–º[BK:RP]Woozieâ—„

Trazio je u dialogu nemoj ulaziti i pisati ako nemas to :P