[Pomoc] Stats

Započeo [BE:RP]Dzoni
6. Jun 2013. Zaključano
1,141
pregleda
16
postova
NZirojevic
4
Shot Caller
6. Jun 2013.
Skripta koju koristim: bu-rp
Detaljan opis problema: ocu da promjenim stats,al ne znam da ga napravim,evo slika stats koji ocu da stavim.
Dio skripte:/
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Blaeks_Biofor
5
Forum Don
6. Jun 2013.
nadji funkciju showstats i tu izmenjuj
NZirojevic
4
Shot Caller
6. Jun 2013.
Ne znam, nece ... ne mogu da uspijemm nikako.. pa evo da vidite sta imam
	//STATS TEXTDRAWS
format(coordsstring, sizeof(coordsstring),"~y~Ime:~h~~h~ %s",name);
Textdraw0 = TextDrawCreate(150.000000, 341.000000, coordsstring);
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);

format(coordsstring, sizeof(coordsstring),"~y~Pol:~h~~h~ %s",atext);
Textdraw1 = TextDrawCreate(151.000000, 361.000000, coordsstring);
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.500000, 1.000000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);

    format(coordsstring, sizeof(coordsstring),"~y~Godine:~h~~h~ %d",age);
Textdraw2 = TextDrawCreate(151.000000, 381.000000,coordsstring);
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);

    format(coordsstring, sizeof(coordsstring),"~y~Level:~h~~h~ %d",level);
Textdraw3 = TextDrawCreate(151.000000, 401.000000,coordsstring);
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 1);
TextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);

    format(coordsstring, sizeof(coordsstring),"~y~Respekt:~h~~h~ %d/%d",exp,expamount);
Textdraw4 = TextDrawCreate(151.000000, 421.000000,coordsstring);
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 1);
TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
TextDrawColor(Textdraw4, -1);
TextDrawSetOutline(Textdraw4, 0);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetShadow(Textdraw4, 1);

    format(coordsstring, sizeof(coordsstring),"~y~Warns:~h~~h~ %d/5",warns);
Textdraw5 = TextDrawCreate(310.000000, 341.000000,coordsstring);
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 1);
TextDrawLetterSize(Textdraw5, 0.500000, 1.000000);
TextDrawColor(Textdraw5, -1);
TextDrawSetOutline(Textdraw5, 0);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetShadow(Textdraw5, 1);

    format(coordsstring, sizeof(coordsstring),"~y~O.Sati:~h~~h~ %d",ptime);
Textdraw6 = TextDrawCreate(310.000000, 361.000000,coordsstring);
TextDrawBackgroundColor(Textdraw6, 255);
TextDrawFont(Textdraw6, 1);
TextDrawLetterSize(Textdraw6, 0.500000, 1.000000);
TextDrawColor(Textdraw6, -1);
TextDrawSetOutline(Textdraw6, 0);
TextDrawSetProportional(Textdraw6, 1);
TextDrawSetShadow(Textdraw6, 1);

    format(coordsstring, sizeof(coordsstring),"~y~Kredit:~h~~h~ %d",kreditbr);
Textdraw7 = TextDrawCreate(310.000000, 381.000000,coordsstring);
TextDrawBackgroundColor(Textdraw7, 255);
TextDrawFont(Textdraw7, 1);
TextDrawLetterSize(Textdraw7, 0.500000, 1.000000);
TextDrawColor(Textdraw7, -1);
TextDrawSetOutline(Textdraw7, 0);
TextDrawSetProportional(Textdraw7, 1);
TextDrawSetShadow(Textdraw7, 1);

    format(coordsstring, sizeof(coordsstring),"~y~Donator:~h~~h~ %s",drank);
Textdraw8 = TextDrawCreate(310.000000, 401.000000,coordsstring);
TextDrawBackgroundColor(Textdraw8, 255);
TextDrawFont(Textdraw8, 1);
TextDrawLetterSize(Textdraw8, 0.500000, 1.000000);
TextDrawColor(Textdraw8, -1);
TextDrawSetOutline(Textdraw8, 0);
TextDrawSetProportional(Textdraw8, 1);
TextDrawSetShadow(Textdraw8, 1);

    format(coordsstring, sizeof(coordsstring),"~y~Broj:~h~~h~ %d",pnumber);
Textdraw9 = TextDrawCreate(310.000000, 421.000000,coordsstring);
TextDrawBackgroundColor(Textdraw9, 255);
TextDrawFont(Textdraw9, 1);
TextDrawLetterSize(Textdraw9, 0.500000, 1.000000);
TextDrawColor(Textdraw9, -1);
TextDrawSetOutline(Textdraw9, 0);
TextDrawSetProportional(Textdraw9, 1);
TextDrawSetShadow(Textdraw9, 1);

    format(coordsstring, sizeof(coordsstring),"~y~Posao:~h~~h~ %s",jtext);
Textdraw10 = TextDrawCreate(470.000000, 341.000000,coordsstring);
TextDrawBackgroundColor(Textdraw10, 255);
TextDrawFont(Textdraw10, 1);
TextDrawLetterSize(Textdraw10, 0.500000, 1.000000);
TextDrawColor(Textdraw10, -1);
TextDrawSetOutline(Textdraw10, 0);
TextDrawSetProportional(Textdraw10, 1);
TextDrawSetShadow(Textdraw10, 1);

    format(coordsstring, sizeof(coordsstring),"~y~Org:~h~~h~ %s",ftext);
Textdraw11 = TextDrawCreate(470.000000, 361.000000,coordsstring);
TextDrawBackgroundColor(Textdraw11, 255);
TextDrawFont(Textdraw11, 1);
TextDrawLetterSize(Textdraw11, 0.500000, 1.000000);
TextDrawColor(Textdraw11, -1);
TextDrawSetOutline(Textdraw11, 0);
TextDrawSetProportional(Textdraw11, 1);
TextDrawSetShadow(Textdraw11, 1);

    format(coordsstring, sizeof(coordsstring),"~y~Rank:~h~~h~ %s",rtext);
Textdraw12 = TextDrawCreate(470.000000, 381.000000,coordsstring);
TextDrawBackgroundColor(Textdraw12, 255);
TextDrawFont(Textdraw12, 1);
TextDrawLetterSize(Textdraw12, 0.500000, 1.000000);
TextDrawColor(Textdraw12, -1);
TextDrawSetOutline(Textdraw12, 0);
TextDrawSetProportional(Textdraw12, 1);
TextDrawSetShadow(Textdraw12, 1);

    format(coordsstring, sizeof(coordsstring),"~y~Droga:~h~~h~ %d",drugs);
Textdraw13 = TextDrawCreate(470.000000, 401.000000,coordsstring);
TextDrawBackgroundColor(Textdraw13, 255);
TextDrawFont(Textdraw13, 1);
TextDrawLetterSize(Textdraw13, 0.500000, 1.000000);
TextDrawColor(Textdraw13, -1);
TextDrawSetOutline(Textdraw13, 0);
TextDrawSetProportional(Textdraw13, 1);
TextDrawSetShadow(Textdraw13, 1);

    format(coordsstring, sizeof(coordsstring),"~y~Mats:~h~~h~ %d",mats);
Textdraw14 = TextDrawCreate(470.000000, 421.000000,coordsstring);
TextDrawBackgroundColor(Textdraw14, 255);
TextDrawFont(Textdraw14, 1);
TextDrawLetterSize(Textdraw14, 0.500000, 1.000000);
TextDrawColor(Textdraw14, -1);
TextDrawSetOutline(Textdraw14, 0);
TextDrawSetProportional(Textdraw14, 1);
TextDrawSetShadow(Textdraw14, 1);


Moze li mi neko pomoc?
NZirojevic
4
Shot Caller
6. Jun 2013.
Evo
//---------------------------------------------------------------------------------------------------------
if (strcmp(cmd, "/stats", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (gPlayerLogged != 0)
{
    if(pokazanistatsi == 0)
    {
ShowStats(playerid,playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s gleda u svoj PDA uredjaj", sendername);
    ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    TextDrawShowForPlayer(playerid,Text:Textdraw0);
    TextDrawShowForPlayer(playerid,Text:Textdraw1);
    TextDrawShowForPlayer(playerid,Text:Textdraw2);
    TextDrawShowForPlayer(playerid,Text:Textdraw3);
    TextDrawShowForPlayer(playerid,Text:Textdraw4);
    TextDrawShowForPlayer(playerid,Text:Textdraw5);
    TextDrawShowForPlayer(playerid,Text:Textdraw6);
    TextDrawShowForPlayer(playerid,Text:Textdraw7);
    TextDrawShowForPlayer(playerid,Text:Textdraw8);
    TextDrawShowForPlayer(playerid,Text:Textdraw9);
    TextDrawShowForPlayer(playerid,Text:Textdraw10);
    TextDrawShowForPlayer(playerid,Text:Textdraw11);
    TextDrawShowForPlayer(playerid,Text:Textdraw12);
    TextDrawShowForPlayer(playerid,Text:Textdraw13);
    TextDrawShowForPlayer(playerid,Text:Textdraw14);
    TextDrawShowForPlayer(playerid,Text:Textdraw15);
    pokazanistatsi = 1;
    }
    else if(pokazanistatsi == 1)
    {
TextDrawHideForPlayer(playerid, Textdraw0);
TextDrawHideForPlayer(playerid, Textdraw1);
TextDrawHideForPlayer(playerid, Textdraw2);
TextDrawHideForPlayer(playerid, Textdraw3);
TextDrawHideForPlayer(playerid, Textdraw4);
TextDrawHideForPlayer(playerid, Textdraw5);
TextDrawHideForPlayer(playerid, Textdraw6);
TextDrawHideForPlayer(playerid, Textdraw7);
TextDrawHideForPlayer(playerid, Textdraw8);
TextDrawHideForPlayer(playerid, Textdraw9);
TextDrawHideForPlayer(playerid, Textdraw10);
TextDrawHideForPlayer(playerid, Textdraw11);
TextDrawHideForPlayer(playerid, Textdraw12);
TextDrawHideForPlayer(playerid, Textdraw13);
TextDrawHideForPlayer(playerid, Textdraw14);
TextDrawHideForPlayer(playerid, Textdraw15);
TextDrawDestroy(Textdraw0);
TextDrawDestroy(Textdraw1);
TextDrawDestroy(Textdraw2);
TextDrawDestroy(Textdraw3);
TextDrawDestroy(Textdraw4);
TextDrawDestroy(Textdraw5);
TextDrawDestroy(Textdraw6);
TextDrawDestroy(Textdraw7);
TextDrawDestroy(Textdraw8);
TextDrawDestroy(Textdraw9);
TextDrawDestroy(Textdraw10);
TextDrawDestroy(Textdraw11);
TextDrawDestroy(Textdraw12);
TextDrawDestroy(Textdraw13);
TextDrawDestroy(Textdraw14);
TextDrawDestroy(Textdraw15);
pokazanistatsi = 0;
    }
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "  Niste prijavljeni!");
}
}
return 1;
}
if (strcmp(cmd, "/oldstats", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (gPlayerLogged != 0)
{
ShowOldStats(playerid,playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s gleda u svoj PDA uredjaj", sendername);
    ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "  Niste prijavljeni!");
}
}
return 1;
}
if(strcmp(cmd, "/down", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo >= 1)
{
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz-2);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "  Niste admin !");
}
}
return 1;
}
if(strcmp(cmd, "/up", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo >= 1)
{
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz+2);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "  Niste admin !");
}
}
return 1;
}
if (strcmp(cmd, "/fly", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo >= 1)
{
new Float:px, Float:py, Float:pz, Float:pa;
GetPlayerFacingAngle(playerid,pa);
if(pa >= 0.0 && pa <= 22.5) //n1
{
GetPlayerPos(playerid, px, py, pz);
SetPlayerPos(playerid, px, py+30, pz+5);
}
if(pa >= 332.5 && pa < 0.0) //n2
{
GetPlayerPos(playerid, px, py, pz);
SetPlayerPos(playerid, px, py+30, pz+5);
}
if(pa >= 22.5 && pa <= 67.5) //nw
{
GetPlayerPos(playerid, px, py, pz);
SetPlayerPos(playerid, px-15, py+15, pz+5);
}
if(pa >= 67.5 && pa <= 112.5) //w
{
GetPlayerPos(playerid, px, py, pz);
SetPlayerPos(playerid, px-30, py, pz+5);
}
if(pa >= 112.5 && pa <= 157.5) //sw
{
GetPlayerPos(playerid, px, py, pz);
SetPlayerPos(playerid, px-15, py-15, pz+5);
}
if(pa >= 157.5 && pa <= 202.5) //s
{
GetPlayerPos(playerid, px, py, pz);
SetPlayerPos(playerid, px, py-30, pz+5);
}
if(pa >= 202.5 && pa <= 247.5)//se
{
GetPlayerPos(playerid, px, py, pz);
SetPlayerPos(playerid, px+15, py-15, pz+5);
}
if(pa >= 247.5 && pa <= 292.5)//e
{
GetPlayerPos(playerid, px, py, pz);
SetPlayerPos(playerid, px+30, py, pz+5);
}
if(pa >= 292.5 && pa <= 332.5)//e
{
GetPlayerPos(playerid, px, py, pz);
SetPlayerPos(playerid, px+15, py+15, pz+5);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "  Niste admin !");
}
}
return 1;
}
if(strcmp(cmd, "/lt", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo >= 1)
{
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly+2, slz);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "  Niste admin !");
}
}
return 1;
}
if(strcmp(cmd, "/rt", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo >= 1)
{
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly-2, slz-2);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "  Niste admin !");
}
}
return 1;
}
NZirojevic
4
Shot Caller
6. Jun 2013.
Sta da radim sa tim, i kako da dodam firmu,kucu,stan,3 slota kola?
NZirojevic
4
Shot Caller
6. Jun 2013.
E hvala i jos nesto me zanima,kao da  nekim odredjenim igracima dodam novi slot za auta, ali odredjenom igracu? al mi detaljno objasni jer sam probo par puta a nisam uspio
NZirojevic
4
Shot Caller
6. Jun 2013.
Kako da ih pronadjem?
Blaeks_Biofor
5
Forum Don
6. Jun 2013.
pa svakako sa tvojom showoldstats postojecom funkcijom
NZirojevic
4
Shot Caller
6. Jun 2013.
Radi mi sad stats hvala puno 🙂
Evo ovo za dodatni slot odredjenom igracu
}
if(IsAnOwnableCar(newcar))
{
if(CarInfo==0)
{
TogglePlayerControllable(playerid, 0);
format(string,sizeof(string),"~w~Vozilo: %s~n~Cijena: ~g~%d~n~~w~/v buy da biste kupili vozilo~n~~r~/exit ~w~da izadjete",CarInfo,CarInfo);
GameTextForPlayer(playerid,string,3000,5);
Blaeks_Biofor
5
Forum Don
6. Jun 2013.
sta sa tim ?
Drobnjak
5
Crime Lord
6. Jun 2013.
|LG|Yui_Sang wrote on June 6, 2013, 10:59 pm:
Kako da ih pronadjem?
Pa tu negde kod kupovinu auta

Evo Blaeks,pa je možda mislio da je to 😛
NZirojevic
4
Shot Caller
6. Jun 2013.
Ma zanima me kako da dam odredjenom igracu slot
Blaeks_Biofor
5
Forum Don
8. Jun 2013.
carinfo enumerator, tu imas enum za slot sigurno, ako nemas, kreiraj

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha