[POMOC]Stats

Započeo Richyâ„¢, Oktobar 19, 2012, 21:18:44 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Edit NL moda od zeljka
Detaljan opis problema:Pa on je mjeno stats i kada na serveru kada napisem /stats uvijek mi pise da sam lvl 65 probo sam vratiti i strati stats sa NL-a ali kada ga ubaicm okrene se naopako >.<
Evo slika trenutnog statsa: http://www.zaslike.com/files/7wb9myol7u3b7bcjq6q8.png
Dio skripte:
Evo iz pawna za TD
}
public StatusTD(playerid, kreiraj)
{
if(kreiraj == 1)
{
    if(TDInfo[playerid][tdStatusTD0] == 0)
    {
StatusTD0[playerid] = TextDrawCreate(265.000000, 118.000000, "l");
TextDrawBackgroundColor(StatusTD0[playerid], 255);
TextDrawFont(StatusTD0[playerid], 1);
TextDrawLetterSize(StatusTD0[playerid], -0.019998, 26.100000);
TextDrawColor(StatusTD0[playerid], -1);
TextDrawSetOutline(StatusTD0[playerid], 0);
TextDrawSetProportional(StatusTD0[playerid], 1);
TextDrawSetShadow(StatusTD0[playerid], 1);
TextDrawUseBox(StatusTD0[playerid], 1);
TextDrawBoxColor(StatusTD0[playerid], 84215160);
TextDrawTextSize(StatusTD0[playerid], 182.000000, 0.000000);
TDInfo[playerid][tdStatusTD0] = 1;
}
    if(TDInfo[playerid][tdStatusTD1] == 0)
    {
StatusTD1[playerid] = TextDrawCreate(460.000000, 118.000000, "l");
TextDrawBackgroundColor(StatusTD1[playerid], 255);
TextDrawFont(StatusTD1[playerid], 1);
TextDrawLetterSize(StatusTD1[playerid], -0.019998, 26.100000);
TextDrawColor(StatusTD1[playerid], -1);
TextDrawSetOutline(StatusTD1[playerid], 0);
TextDrawSetProportional(StatusTD1[playerid], 1);
TextDrawSetShadow(StatusTD1[playerid], 1);
TextDrawUseBox(StatusTD1[playerid], 1);
TextDrawBoxColor(StatusTD1[playerid], 84215160);
TextDrawTextSize(StatusTD1[playerid], 182.000000, 0.000000);
TDInfo[playerid][tdStatusTD1] = 1;
}
    if(TDInfo[playerid][tdStatusTD2] == 0)
    {
StatusTD2[playerid] = TextDrawCreate(186.000000, 117.000000, "Carbon");
TextDrawBackgroundColor(StatusTD2[playerid], 255);
TextDrawFont(StatusTD2[playerid], 0);
TextDrawLetterSize(StatusTD2[playerid], 0.500000, 1.000000);
TextDrawColor(StatusTD2[playerid], -16776961);
TextDrawSetOutline(StatusTD2[playerid], 0);
TextDrawSetProportional(StatusTD2[playerid], 1);
TextDrawSetShadow(StatusTD2[playerid], 1);
TDInfo[playerid][tdStatusTD2] = 1;
}
    if(TDInfo[playerid][tdStatusTD3] == 0)
    {
StatusTD3[playerid] = TextDrawCreate(199.000000, 202.000000, "Racun");
TextDrawBackgroundColor(StatusTD3[playerid], 255);
TextDrawFont(StatusTD3[playerid], 3);
TextDrawLetterSize(StatusTD3[playerid], 0.500000, 1.000000);
TextDrawColor(StatusTD3[playerid], -65281);
TextDrawSetOutline(StatusTD3[playerid], 0);
TextDrawSetProportional(StatusTD3[playerid], 1);
TextDrawSetShadow(StatusTD3[playerid], 1);
TextDrawSetSelectable(StatusTD3[playerid], 1);
TDInfo[playerid][tdStatusTD3] = 1;
}
    if(TDInfo[playerid][tdStatusTD4] == 0)
    {
StatusTD4[playerid] = TextDrawCreate(200.000000, 224.000000, "Zivot");
TextDrawBackgroundColor(StatusTD4[playerid], 255);
TextDrawFont(StatusTD4[playerid], 3);
TextDrawLetterSize(StatusTD4[playerid], 0.500000, 1.000000);
TextDrawColor(StatusTD4[playerid], -65281);
TextDrawSetOutline(StatusTD4[playerid], 0);
TextDrawSetProportional(StatusTD4[playerid], 1);
TextDrawSetShadow(StatusTD4[playerid], 1);
TextDrawSetSelectable(StatusTD4[playerid], 1);
TextDrawTextSize(StatusTD4[playerid], 30.0, 10.0);
TDInfo[playerid][tdStatusTD4] = 1;
}
    if(TDInfo[playerid][tdStatusTD5] == 0)
    {
StatusTD5[playerid] = TextDrawCreate(191.000000, 248.000000, "Imovina");
TextDrawBackgroundColor(StatusTD5[playerid], 255);
TextDrawFont(StatusTD5[playerid], 3);
TextDrawLetterSize(StatusTD5[playerid], 0.500000, 1.000000);
TextDrawColor(StatusTD5[playerid], -65281);
TextDrawSetOutline(StatusTD5[playerid], 0);
TextDrawSetProportional(StatusTD5[playerid], 1);
TextDrawSetShadow(StatusTD5[playerid], 1);
TextDrawSetSelectable(StatusTD5[playerid], 1);
TDInfo[playerid][tdStatusTD5] = 1;
}
    if(TDInfo[playerid][tdStatusTD6] == 0)
    {
StatusTD6[playerid] = TextDrawCreate(185.000000, 292.000000, "Stvari");
TextDrawBackgroundColor(StatusTD6[playerid], 255);
TextDrawFont(StatusTD6[playerid], 3);
TextDrawLetterSize(StatusTD6[playerid], 0.450000, 1.100000);
TextDrawColor(StatusTD6[playerid], -65281);
TextDrawSetOutline(StatusTD6[playerid], 0);
TextDrawSetProportional(StatusTD6[playerid], 1);
TextDrawSetShadow(StatusTD6[playerid], 1);
TextDrawSetSelectable(StatusTD6[playerid], 1);
TDInfo[playerid][tdStatusTD6] = 1;
}
    if(TDInfo[playerid][tdStatusTD7] == 0)
    {
StatusTD7[playerid] = TextDrawCreate(198.000000, 270.000000, "Dosje");
TextDrawBackgroundColor(StatusTD7[playerid], 255);
TextDrawFont(StatusTD7[playerid], 3);
TextDrawLetterSize(StatusTD7[playerid], 0.500000, 1.000000);
TextDrawColor(StatusTD7[playerid], -65281);
TextDrawSetOutline(StatusTD7[playerid], 0);
TextDrawSetProportional(StatusTD7[playerid], 1);
TextDrawSetShadow(StatusTD7[playerid], 1);
TextDrawSetSelectable(StatusTD7[playerid], 1);
TDInfo[playerid][tdStatusTD7] = 1;
}
    if(TDInfo[playerid][tdStatusTD8] == 0)
    {
StatusTD8[playerid] = TextDrawCreate(269.000000, 341.000000, "      ");
TextDrawBackgroundColor(StatusTD8[playerid], 255);
TextDrawFont(StatusTD8[playerid], 2);
TextDrawLetterSize(StatusTD8[playerid], 0.409999, 1.299999);
TextDrawColor(StatusTD8[playerid], -1);
TextDrawSetOutline(StatusTD8[playerid], 0);
TextDrawSetProportional(StatusTD8[playerid], 1);
TextDrawSetShadow(StatusTD8[playerid], 1);
TDInfo[playerid][tdStatusTD8] = 1;
}
    if(TDInfo[playerid][tdStatusTD9] == 0)
    {
StatusTD9[playerid] = TextDrawCreate(196.000000, 129.000000, "Gaming");
TextDrawBackgroundColor(StatusTD9[playerid], 255);
TextDrawFont(StatusTD9[playerid], 0);
TextDrawLetterSize(StatusTD9[playerid], 0.500000, 1.000000);
TextDrawColor(StatusTD9[playerid], -16776961);
TextDrawSetOutline(StatusTD9[playerid], 0);
TextDrawSetProportional(StatusTD9[playerid], 1);
TextDrawSetShadow(StatusTD9[playerid], 1);
TDInfo[playerid][tdStatusTD9] = 1;
}
    if(TDInfo[playerid][tdStatusTD10] == 0)
    {
StatusTD10[playerid] = TextDrawCreate(227.000000, 141.000000, "Stats");
TextDrawBackgroundColor(StatusTD10[playerid], 255);
TextDrawFont(StatusTD10[playerid], 0);
TextDrawLetterSize(StatusTD10[playerid], 0.500000, 1.000000);
TextDrawColor(StatusTD10[playerid], -16776961);
TextDrawSetOutline(StatusTD10[playerid], 0);
TextDrawSetProportional(StatusTD10[playerid], 1);
TextDrawSetShadow(StatusTD10[playerid], 1);
TDInfo[playerid][tdStatusTD10] = 1;
}
    if(TDInfo[playerid][tdStatusTD11] == 0)
    {
StatusTD11[playerid] = TextDrawCreate(273.000000, 128.000000, "       ");
TextDrawBackgroundColor(StatusTD11[playerid], 255);
TextDrawFont(StatusTD11[playerid], 1);
TextDrawLetterSize(StatusTD11[playerid], 0.290000, 1.200000);
TextDrawColor(StatusTD11[playerid], -1);
TextDrawSetOutline(StatusTD11[playerid], 0);
TextDrawSetProportional(StatusTD11[playerid], 1);
TextDrawSetShadow(StatusTD11[playerid], 1);
TDInfo[playerid][tdStatusTD11] = 1;
}
    /*if(TDInfo[playerid][tdStatusTD12] == 0)
    {
StatusTD12[playerid] = TextDrawCreate(216.000000, 190.000000, "~W~Ucitavanje...");
TextDrawBackgroundColor(StatusTD12[playerid], 255);
TextDrawFont(StatusTD12[playerid], 1);
TextDrawLetterSize(StatusTD12[playerid], 0.400000, 1.499999);
TextDrawColor(StatusTD12[playerid], -1);
TextDrawSetOutline(StatusTD12[playerid], 0);
TextDrawSetProportional(StatusTD12[playerid], 1);
TextDrawSetShadow(StatusTD12[playerid], 1);
TDInfo[playerid][tdStatusTD12] = 1;
}*/
}
else
{
    if(TDInfo[playerid][tdStatusTD0] == 1)
    {
        TextDrawHideForPlayer(playerid, StatusTD0[playerid]);
TextDrawDestroy(StatusTD0[playerid]);
TDInfo[playerid][tdStatusTD0] = 0;
StatusTD0[playerid] = Text:INVALID_TEXT_DRAW;
}
    if(TDInfo[playerid][tdStatusTD1] == 1)
    {
        TextDrawHideForPlayer(playerid, StatusTD1[playerid]);
TextDrawDestroy(StatusTD1[playerid]);
TDInfo[playerid][tdStatusTD1] = 0;
StatusTD1[playerid] = Text:INVALID_TEXT_DRAW;
}
    if(TDInfo[playerid][tdStatusTD2] == 1)
    {
        TextDrawHideForPlayer(playerid, StatusTD2[playerid]);
TextDrawDestroy(StatusTD2[playerid]);
TDInfo[playerid][tdStatusTD2] = 0;
StatusTD2[playerid] = Text:INVALID_TEXT_DRAW;
}
    if(TDInfo[playerid][tdStatusTD3] == 1)
    {
        TextDrawHideForPlayer(playerid, StatusTD3[playerid]);
TextDrawDestroy(StatusTD3[playerid]);
TDInfo[playerid][tdStatusTD3] = 0;
StatusTD3[playerid] = Text:INVALID_TEXT_DRAW;
}
    if(TDInfo[playerid][tdStatusTD4] == 1)
    {
        TextDrawHideForPlayer(playerid, StatusTD4[playerid]);
TextDrawDestroy(StatusTD4[playerid]);
TDInfo[playerid][tdStatusTD4] = 0;
StatusTD4[playerid] = Text:INVALID_TEXT_DRAW;
}
    if(TDInfo[playerid][tdStatusTD5] == 1)
    {
        TextDrawHideForPlayer(playerid, StatusTD5[playerid]);
TextDrawDestroy(StatusTD5[playerid]);
TDInfo[playerid][tdStatusTD5] = 0;
StatusTD5[playerid] = Text:INVALID_TEXT_DRAW;
}
    if(TDInfo[playerid][tdStatusTD6] == 1)
    {
        TextDrawHideForPlayer(playerid, StatusTD6[playerid]);
TextDrawDestroy(StatusTD6[playerid]);
TDInfo[playerid][tdStatusTD6] = 0;
StatusTD6[playerid] = Text:INVALID_TEXT_DRAW;
}
    if(TDInfo[playerid][tdStatusTD7] == 1)
    {
        TextDrawHideForPlayer(playerid, StatusTD7[playerid]);
TextDrawDestroy(StatusTD7[playerid]);
TDInfo[playerid][tdStatusTD7] = 0;
StatusTD7[playerid] = Text:INVALID_TEXT_DRAW;
}
    if(TDInfo[playerid][tdStatusTD8] == 1)
    {
        TextDrawHideForPlayer(playerid, StatusTD8[playerid]);
TextDrawDestroy(StatusTD8[playerid]);
TDInfo[playerid][tdStatusTD8] = 0;
StatusTD8[playerid] = Text:INVALID_TEXT_DRAW;
}
    if(TDInfo[playerid][tdStatusTD9] == 1)
    {
        TextDrawHideForPlayer(playerid, StatusTD9[playerid]);
TextDrawDestroy(StatusTD9[playerid]);
TDInfo[playerid][tdStatusTD9] = 0;
StatusTD9[playerid] = Text:INVALID_TEXT_DRAW;
}
    if(TDInfo[playerid][tdStatusTD10] == 1)
    {
        TextDrawHideForPlayer(playerid, StatusTD10[playerid]);
TextDrawDestroy(StatusTD10[playerid]);
TDInfo[playerid][tdStatusTD10] = 0;
StatusTD10[playerid] = Text:INVALID_TEXT_DRAW;
}
    if(TDInfo[playerid][tdStatusTD11] == 1)
    {
        TextDrawHideForPlayer(playerid, StatusTD11[playerid]);
TextDrawDestroy(StatusTD11[playerid]);
TDInfo[playerid][tdStatusTD11] = 0;
StatusTD11[playerid] = Text:INVALID_TEXT_DRAW;
}
    /*if(TDInfo[playerid][tdStatusTD12] == 1)
    {
        TextDrawHideForPlayer(playerid, StatusTD12[playerid]);
TextDrawDestroy(StatusTD12[playerid]);
TDInfo[playerid][tdStatusTD12] = 0;
StatusTD12[playerid] = Text:INVALID_TEXT_DRAW;
}*/
}
return 1;
}




Evo gdije pise ono status racuna,novac,level i to
}
}
if(newkeys & KEY_ANALOG_RIGHT)
{
if(hGledaStats[playerid] > 0)
{
if(hGledaStats[playerid] == STATS_RACUN)
  {
      new pol[12], string[512], ubraku[3];
        if(PI[playerid][Pol] == 0) { pol = "Musko"; }
          else if(PI[playerid][Pol] == 1) { pol = "Zensko"; }
            else { pol = "Nepoznat"; }
            if(PI[playerid][UBraku] == 0) ubraku = "Ne";
            else ubraku = "Da";
format(string, sizeof string, "~b~Pol: ~w~%s~n~\
~b~Starost: ~w~%d~n~\
~g~Novcanik: ~r~$~w~%d~n~\
~g~Banka: ~r~$~w~%d~n~\
~y~Posao: ~w~%s~n~\
~y~U braku: ~w~%s~n~\
~r~Stari posao: ~w~%s~n~\
~r~PIN: ~w~%d~n~\
~p~Telefon: ~w~%d~n~\
~p~Kredit: ~r~$~w~%d",
pol, PI[playerid][Godine], PI[playerid][Novac], PI[playerid][Banka], ImePosla(PI[playerid][Posao]), ubraku,
PI[playerid][StariPosao], PI[playerid][KarticaPin], PI[playerid][Telefon], PI[playerid][KreditMobilni]);
TextDrawSetString(StatusTD4[playerid], "~r~Zivot");
TextDrawSetString(StatusTD11[playerid], string);
hGledaStats[playerid] = STATS_ZIVOT;
}
else if(hGledaStats[playerid] == STATS_ZIVOT)
{
    new string[256], auto1[3], auto2[3], motor[3], bicikla[3], letelica[3],
plovilo[3], kuca[3], firma[3], jfirma[3], hotel[3], vikendica[3], Stanxx[3];
if(PI[playerid][Auto1] == -1) auto1 = "Ne";
else if(PI[playerid][Auto1] != -1) auto1 = "Da";
if(PI[playerid][Auto2] == -1) auto2 = "Ne";
else if(PI[playerid][Auto2] != -1) auto2 = "Da";
if(PI[playerid][Motor] == -1) motor = "Ne";
else if(PI[playerid][Motor] != -1) motor = "Da";
if(PI[playerid][Bicikla] == -1) bicikla = "Ne";
else if(PI[playerid][Bicikla] != -1) bicikla = "Da";
if(PI[playerid][Letelica] == -1) letelica = "Ne";
else if(PI[playerid][Letelica] != -1) letelica = "Da";
if(PI[playerid][Plovilo] == -1) plovilo = "Ne";
else if(PI[playerid][Plovilo] != -1) plovilo = "Da";
if(PI[playerid][Kuca] == -1) kuca = "Ne";
else if(PI[playerid][Kuca] != -1) kuca = "Da";
if(PI[playerid][Firma] == -1) firma = "Ne";
else if(PI[playerid][Firma] != -1) firma = "Da";
if(PI[playerid][JFirma] == -1) jfirma = "Ne";
else if(PI[playerid][JFirma] != -1) jfirma = "Da";
if(PI[playerid][Hotel] == -1) hotel = "Ne";
else if(PI[playerid][Hotel] != -1) hotel = "Da";
if(PI[playerid][Vikendica] == -1) vikendica = "Ne";
else if(PI[playerid][Vikendica] != -1) vikendica = "Da";
if(PI[playerid][Stan] == -1) Stanxx = "Ne";
else if(PI[playerid][Stan] != -1) Stanxx = "Da";
format(string, sizeof string, "~g~Kuca: ~w~%s~n~\
                                ~g~Stan: ~w~%s~n~\
                                ~g~Vikendica: ~w~%s~n~\
                                ~b~Firma 1: ~w~%s~n~\
                                ~b~Firma 2: ~w~%s~n~\
                                ~b~Hotel: ~w~%s~n~\
                                ~p~Auto 1: ~w~%s~n~\
                                ~p~Auto 2: ~w~%s~n~\
                                ~p~Motor: ~w~%s~n~\
                                ~p~Bicikla: ~w~%s~n~\
                                ~p~Letelica: ~w~%s~n~\
                                ~p~Plovilo: ~w~%s",
kuca, Stanxx, vikendica, firma, jfirma, hotel, auto1, auto2,
motor, bicikla, letelica, plovilo);
TextDrawSetString(StatusTD4[playerid], "~y~Zivot");
TextDrawSetString(StatusTD5[playerid], "~r~Imovina");
TextDrawSetString(StatusTD11[playerid], string);
hGledaStats[playerid] = STATS_IMOVINA;
}
else if(hGledaStats[playerid] == STATS_IMOVINA)
{
new string[256];
format(string, sizeof string, "~y~Pizza: ~w~%d~n~\
~r~Droga: ~w~%d~n~\
~r~Koka: ~w~%d kila~n~\
~r~Semena: ~w~%d~n~\
                                ~b~Oruzje: ~w~%d~n~\
                                ~b~Municija: ~w~%d~n~\
                                ~g~Zice: ~w~%d~n~\
                                ~g~Kanister: ~w~%d/5 litara",
Stvari[playerid][zPizza], Stvari[playerid][zDroga]+Dzep[playerid][xDroga], Stvari[playerid][zKoka]+Dzep[playerid][xKoka],
Stvari[playerid][zSemena]+Dzep[playerid][xSemena], Stvari[playerid][zGDOruzje], Stvari[playerid][zGDProdaja], Stvari[playerid][zZice]+Dzep[playerid][xZice],
Stvari[playerid][zKanister]);
TextDrawSetString(StatusTD5[playerid], "~y~Imovina");
TextDrawSetString(StatusTD6[playerid], "~r~Stvari");
TextDrawSetString(StatusTD11[playerid], string);
hGledaStats[playerid] = STATS_STVARI;
}
else if(hGledaStats[playerid] == STATS_STVARI)
{
    new string[256], rank[6];
      if(PI[playerid][Rank] == 0) rank = "0";
    else if(PI[playerid][Rank] == 1) rank = "1";
    else if(PI[playerid][Rank] == 2) rank = "2";
    else if(PI[playerid][Rank] == 3) rank = "3";
    else if(PI[playerid][Rank] == 4) rank = "4";
    else if(PI[playerid][Rank] == 5) rank = "5";
    else if(PI[playerid][Rank] == 6) rank = "6";
    if(PI[playerid][Lider] > 0) rank = "Lider";
format(string, sizeof string, "~g~Organizacija: ~w~%s~n~\
~g~Rank: ~w~%s~n~\
~r~Ubistava: ~w~%d~n~\
~r~Smrti: ~w~%d~n~\
~r~Zlocini: ~w~%d~n~\
~r~Uhapsen puta: ~w~%d~n~\
~r~Trazeni nivo: ~w~%d",
ImeOrganizacije(PI[playerid][Clan]), rank, PI[playerid][Ubistava], PI[playerid][Smrti], PI[playerid][Zlocini], PI[playerid][UhapsenPuta],
PI[playerid][TrazeniNivo]);
TextDrawSetString(StatusTD6[playerid], "~y~Stvari");
TextDrawSetString(StatusTD7[playerid], "~r~Dosje");
TextDrawSetString(StatusTD12[playerid], string);
hGledaStats[playerid] = STATS_OSTALO;
}
return 1;
}
}
if(newkeys & KEY_ANALOG_LEFT)
{
if(hGledaStats[playerid] > 0)
{
    if(hGledaStats[playerid] == STATS_ZIVOT)
    {
new string[256], hIme[MAX_PLAYER_NAME], iskustvo;
RPIme(playerid, hIme);
iskustvo = (PI[playerid][Nivo] * 2) + 2;
format(string, sizeof string, "~y~Ime i prezime: ~w~%s~n~\
~g~Nivo: ~w~%d~n~\
~g~Iskustvo: ~w~%d/%d~n~\
~b~Sati igre: ~w~%d~n~\
~b~PayDay poeni: ~w~%d~n~\
~r~Upozorenja: ~w~%d~n~\
~r~Kaznjen puta: ~w~%d~n~\
~r~Vreme u org: ~w~%d~n~\
~r~Kazna ugovor: ~w~%d~n~\
~p~GOLD: ~w~%d",
hIme, PI[playerid][Nivo], PI[playerid][Iskustvo], iskustvo, PI[playerid][SatiIgre], PI[playerid][PayDayPoeni],
PI[playerid][Opomenut], PI[playerid][KaznjenPuta], PI[playerid][TimUgovor], PI[playerid][KaznaUgovor], PI[playerid][Donator]);
TextDrawSetString(StatusTD3[playerid], "~r~Zivot");
TextDrawSetString(StatusTD11[playerid], string);
hGledaStats[playerid] = STATS_RACUN;
}
else if(hGledaStats[playerid] == STATS_IMOVINA)
{
        new pol[12], string[256], ubraku[3];
        if(PI[playerid][Pol] == 0) { pol = "Musko"; }
          else if(PI[playerid][Pol] == 1) { pol = "Zensko"; }
            else { pol = "Nepoznat"; }
            if(PI[playerid][UBraku] == 0) ubraku = "Ne";
            else ubraku = "Da";
format(string, sizeof string, "~b~Pol: ~w~%s~n~\
~b~Starost: ~w~%d~n~\
~g~Novcanik: ~r~$~w~%d~n~\
~g~Banka: ~r~$~w~%d~n~\
~y~Posao: ~w~%s~n~\
~y~U braku: ~w~%s~n~\
~r~Stari posao: ~w~%s~n~\
~r~PIN: ~w~%d~n~\
~p~Telefon: ~w~%d~n~\
~p~Kredit: ~r~$~w~%d",
pol, PI[playerid][Godine], PI[playerid][Novac], PI[playerid][Banka], ImePosla(PI[playerid][Posao]), ubraku,
PI[playerid][StariPosao], PI[playerid][KarticaPin], PI[playerid][Telefon], PI[playerid][KreditMobilni]);
TextDrawSetString(StatusTD3[playerid], "~y~Zivot");
TextDrawSetString(StatusTD4[playerid], "~r~Zivot");
TextDrawSetString(StatusTD11[playerid], string);
hGledaStats[playerid] = STATS_ZIVOT;
}
else if(hGledaStats[playerid] == STATS_STVARI)
{
    new string[256], auto1[3], auto2[3], motor[3], bicikla[3], letelica[3],
plovilo[3], kuca[3], firma[3], jfirma[3], hotel[3], vikendica[3], Stanxx[3];
if(PI[playerid][Auto1] == -1) auto1 = "Ne";
else if(PI[playerid][Auto1] != -1) auto1 = "Da";
if(PI[playerid][Auto2] == -1) auto2 = "Ne";
else if(PI[playerid][Auto2] != -1) auto2 = "Da";
if(PI[playerid][Motor] == -1) motor = "Ne";
else if(PI[playerid][Motor] != -1) motor = "Da";
if(PI[playerid][Bicikla] == -1) bicikla = "Ne";
else if(PI[playerid][Bicikla] != -1) bicikla = "Da";
if(PI[playerid][Letelica] == -1) letelica = "Ne";
else if(PI[playerid][Letelica] != -1) letelica = "Da";
if(PI[playerid][Plovilo] == -1) plovilo = "Ne";
else if(PI[playerid][Plovilo] != -1) plovilo = "Da";
if(PI[playerid][Kuca] == -1) kuca = "Ne";
else if(PI[playerid][Kuca] != -1) kuca = "Da";
if(PI[playerid][Firma] == -1) firma = "Ne";
else if(PI[playerid][Firma] != -1) firma = "Da";
if(PI[playerid][JFirma] == -1) jfirma = "Ne";
else if(PI[playerid][JFirma] != -1) jfirma = "Da";
if(PI[playerid][Hotel] == -1) hotel = "Ne";
else if(PI[playerid][Hotel] != -1) hotel = "Da";
if(PI[playerid][Vikendica] == -1) vikendica = "Ne";
else if(PI[playerid][Vikendica] != -1) vikendica = "Da";
if(PI[playerid][Stan] == -1) Stanxx = "Ne";
else if(PI[playerid][Stan] != -1) Stanxx = "Da";
format(string, sizeof string, "~g~Kuca: ~w~%s~n~\
                                ~g~Stan: ~w~%s~n~\
                                ~g~Vikendica: ~w~%s~n~\
                                ~b~Firma 1: ~w~%s~n~\
                                ~b~Firma 2: ~w~%s~n~\
                                ~b~Hotel: ~w~%s~n~\
                                ~p~Auto 1: ~w~%s~n~\
                                ~p~Auto 2: ~w~%s~n~\
                                ~p~Motor: ~w~%s~n~\
                                ~p~Bicikla: ~w~%s~n~\
                                ~p~Letelica: ~w~%s~n~\
                                ~p~Plovilo: ~w~%s",
kuca, Stanxx, vikendica, firma, jfirma, hotel, auto1, auto2,
motor, bicikla, letelica, plovilo);
TextDrawSetString(StatusTD4[playerid], "~y~Zivot");
TextDrawSetString(StatusTD5[playerid], "~r~Imovina");
TextDrawSetString(StatusTD12[playerid], string);
hGledaStats[playerid] = STATS_IMOVINA;
}
else if(hGledaStats[playerid] == STATS_OSTALO)
{
new string[256];
format(string, sizeof string, "~y~Pizza: ~w~%d~n~\
~r~Droga: ~w~%d~n~\
~r~Koka: ~w~%d kila~n~\
~r~Semena: ~w~%d~n~\
                                ~b~Oruzje: ~w~%d~n~\
                                ~b~Municija: ~w~%d~n~\
                                ~g~Zice: ~w~%d~n~\
                                ~g~Kanister: ~w~%d/5 litara",
Stvari[playerid][zPizza], Stvari[playerid][zDroga]+Dzep[playerid][xDroga], Stvari[playerid][zKoka], Stvari[playerid][zSemena],
Stvari[playerid][zGDOruzje], Stvari[playerid][zGDProdaja], Stvari[playerid][zZice], Stvari[playerid][zKanister]);
TextDrawSetString(StatusTD5[playerid], "~y~Imovina");
TextDrawSetString(StatusTD6[playerid], "~r~Stvari");
TextDrawSetString(StatusTD12[playerid], string);
hGledaStats[playerid] = STATS_STVARI;
}
}
}
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
if(!success)
{
    new ip2[24];
    foreach(Player, i)
    {
GetPlayerIp(i, ip2, 24);
if(!strcmp(ip, ip2)) Kick(i);
    }
}
return 1;
}
forward CheckMoney(playerid);
public CheckMoney(playerid)
{
    new string[128];
    format(string, sizeof(string), "~r~%08d", GetPlayerMoney(playerid));
    TextDrawSetString(Cash[playerid], string);
    TextDrawShowForPlayer(playerid, Cash[playerid]);
    return 1;
}


Neke slike/video za lakse dobivanje pomoci(neobavezno):Stavio sam gore :P
Poslednja Izmena: Oktobar 19, 2012, 21:23:31 POSLE PODNE od Richyâ„¢

BUMP otislo na 3 stranu ? Zna neko ?