[POMOC]Neradi komanda /stats

Započeo darac123, Mart 04, 2012, 01:12:26 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Ime moda: moj
Dio scripte: }
CMD:stats(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if (gPlayerLogged[playerid] != 0)
{
if(statsi[playerid] == 1)
{
new sendername[MAX_PLAYER_NAME];
new string[512];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s gleda svoj stats (/stats).", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GetPlayerName(playerid, sendername, sizeof(sendername));
SCM(playerid,COLOR_WHITE,"[INFO] {00C0FF}Da zatvorite stats pritisnite LIJEVI KLIK !");
//stats kreece
stats0[playerid] = TextDrawCreate(314.000000, 78.000000, "_");
TextDrawAlignment(stats0[playerid], 2);
TextDrawBackgroundColor(stats0[playerid], 255);
TextDrawFont(stats0[playerid], 1);
TextDrawLetterSize(stats0[playerid], 0.500000, 29.599996);
TextDrawColor(stats0[playerid], -1);
TextDrawSetOutline(stats0[playerid], 0);
TextDrawSetProportional(stats0[playerid], 1);
TextDrawSetShadow(stats0[playerid], 1);
TextDrawUseBox(stats0[playerid], 1);
TextDrawBoxColor(stats0[playerid], 50);
TextDrawTextSize(stats0[playerid], 0.000000, 350.000000);

stats1[playerid] = TextDrawCreate(314.000000, 343.000000, "_");
TextDrawAlignment(stats1[playerid], 2);
TextDrawBackgroundColor(stats1[playerid], 255);
TextDrawFont(stats1[playerid], 1);
TextDrawLetterSize(stats1[playerid], 0.500000, 1.000000);
TextDrawColor(stats1[playerid], -1);
TextDrawSetOutline(stats1[playerid], 0);
TextDrawSetProportional(stats1[playerid], 1);
TextDrawSetShadow(stats1[playerid], 1);
TextDrawUseBox(stats1[playerid], 1);
TextDrawBoxColor(stats1[playerid], 848756735);
TextDrawTextSize(stats1[playerid], 0.000000, 350.000000);

stats2[playerid] = TextDrawCreate(314.000000, 73.000000, "_");
TextDrawAlignment(stats2[playerid], 2);
TextDrawBackgroundColor(stats2[playerid], 255);
TextDrawFont(stats2[playerid], 1);
TextDrawLetterSize(stats2[playerid], 0.500000, 1.000000);
TextDrawColor(stats2[playerid], -1);
TextDrawSetOutline(stats2[playerid], 0);
TextDrawSetProportional(stats2[playerid], 1);
TextDrawSetShadow(stats2[playerid], 1);
TextDrawUseBox(stats2[playerid], 1);
TextDrawBoxColor(stats2[playerid], 848756735);
TextDrawTextSize(stats2[playerid], 0.000000, 350.000000);

stats3[playerid] = TextDrawCreate(246.000000, 71.000000, "Black City RolePlay Stats");
TextDrawBackgroundColor(stats3[playerid], 255);
TextDrawFont(stats3[playerid], 1);
TextDrawLetterSize(stats3[playerid], 0.289999, 1.299999);
TextDrawColor(stats3[playerid], -1);
TextDrawSetOutline(stats3[playerid], 0);
TextDrawSetProportional(stats3[playerid], 1);
TextDrawSetShadow(stats3[playerid], 1);

rankorg[playerid] = TextDrawCreate(145.000000, 244.000000, "Rank: Rank 1");
TextDrawBackgroundColor(rankorg[playerid], 255);
TextDrawFont(rankorg[playerid], 1);
TextDrawLetterSize(rankorg[playerid], 0.370000, 1.600000);
TextDrawColor(rankorg[playerid], 848756735);
TextDrawSetOutline(rankorg[playerid], 0);
TextDrawSetProportional(rankorg[playerid], 1);
TextDrawSetShadow(rankorg[playerid], 1);

imeig[playerid] = TextDrawCreate(145.000000, 106.000000, "Ime: Nikola_Mitrovicsas");
TextDrawBackgroundColor(imeig[playerid], 255);
TextDrawFont(imeig[playerid], 1);
TextDrawLetterSize(imeig[playerid], 0.370000, 1.600000);
TextDrawColor(imeig[playerid], 848756735);
TextDrawSetOutline(imeig[playerid], 0);
TextDrawSetProportional(imeig[playerid], 1);
TextDrawSetShadow(imeig[playerid], 1);

levelstats[playerid] = TextDrawCreate(145.000000, 121.000000, "level[playerid]: 30");
TextDrawBackgroundColor(levelstats[playerid], 255);
TextDrawFont(levelstats[playerid], 1);
TextDrawLetterSize(levelstats[playerid], 0.370000, 1.600000);
TextDrawColor(levelstats[playerid], 848756735);
TextDrawSetOutline(levelstats[playerid], 0);
TextDrawSetProportional(levelstats[playerid], 1);
TextDrawSetShadow(levelstats[playerid], 1);

satig[playerid] = TextDrawCreate(145.000000, 136.000000, "Sati Igranja: 1500");
TextDrawBackgroundColor(satig[playerid], 255);
TextDrawFont(satig[playerid], 1);
TextDrawLetterSize(satig[playerid], 0.370000, 1.600000);
TextDrawColor(satig[playerid], 848756735);
TextDrawSetOutline(satig[playerid], 0);
TextDrawSetProportional(satig[playerid], 1);
TextDrawSetShadow(satig[playerid], 1);

respekt[playerid] = TextDrawCreate(145.000000, 151.000000, "respekt[playerid]i: 100/200");
TextDrawBackgroundColor(respekt[playerid], 255);
TextDrawFont(respekt[playerid], 1);
TextDrawLetterSize(respekt[playerid], 0.370000, 1.600000);
TextDrawColor(respekt[playerid], 848756735);
TextDrawSetOutline(respekt[playerid], 0);
TextDrawSetProportional(respekt[playerid], 1);
TextDrawSetShadow(respekt[playerid], 1);

donator[playerid] = TextDrawCreate(145.000000, 166.000000, "donator[playerid]: donator[playerid] level[playerid] 2");
TextDrawBackgroundColor(donator[playerid], 255);
TextDrawFont(donator[playerid], 1);
TextDrawLetterSize(donator[playerid], 0.349999, 1.600000);
TextDrawColor(donator[playerid], 848756735);
TextDrawSetOutline(donator[playerid], 0);
TextDrawSetProportional(donator[playerid], 1);
TextDrawSetShadow(donator[playerid], 1);

godine[playerid] = TextDrawCreate(145.000000, 182.000000, "godine[playerid]: 20");
TextDrawBackgroundColor(godine[playerid], 255);
TextDrawFont(godine[playerid], 1);
TextDrawLetterSize(godine[playerid], 0.370000, 1.600000);
TextDrawColor(godine[playerid], 848756735);
TextDrawSetOutline(godine[playerid], 0);
TextDrawSetProportional(godine[playerid], 1);
TextDrawSetShadow(godine[playerid], 1);

pol[playerid] = TextDrawCreate(145.000000, 197.000000, "pol[playerid]: Musko");
TextDrawBackgroundColor(pol[playerid], 255);
TextDrawFont(pol[playerid], 1);
TextDrawLetterSize(pol[playerid], 0.370000, 1.600000);
TextDrawColor(pol[playerid], 848756735);
TextDrawSetOutline(pol[playerid], 0);
TextDrawSetProportional(pol[playerid], 1);
TextDrawSetShadow(pol[playerid], 1);

drzava[playerid] = TextDrawCreate(145.000000, 212.000000, "drzava[playerid]: Bosna i Hercegovina");
TextDrawBackgroundColor(drzava[playerid], 255);
TextDrawFont(drzava[playerid], 1);
TextDrawLetterSize(drzava[playerid], 0.330000, 1.600000);
TextDrawColor(drzava[playerid], 848756735);
TextDrawSetOutline(drzava[playerid], 0);
TextDrawSetProportional(drzava[playerid], 1);
TextDrawSetShadow(drzava[playerid], 1);

posao[playerid] = TextDrawCreate(145.000000, 260.000000, "posao[playerid]: Raznosac Novina");
TextDrawBackgroundColor(posao[playerid], 255);
TextDrawFont(posao[playerid], 1);
TextDrawLetterSize(posao[playerid], 0.370000, 1.600000);
TextDrawColor(posao[playerid], 848756735);
TextDrawSetOutline(posao[playerid], 0);
TextDrawSetProportional(posao[playerid], 1);
TextDrawSetShadow(posao[playerid], 1);

orgstats[playerid] = TextDrawCreate(145.000000, 228.000000, "org[playerid]anizacija: The Escobar Cartel");
TextDrawBackgroundColor(orgstats[playerid], 255);
TextDrawFont(orgstats[playerid], 1);
TextDrawLetterSize(orgstats[playerid], 0.319999, 1.700000);
TextDrawColor(orgstats[playerid], 848756735);
TextDrawSetOutline(orgstats[playerid], 0);
TextDrawSetProportional(orgstats[playerid], 1);
TextDrawSetShadow(orgstats[playerid], 1);

droga1[playerid] = TextDrawCreate(145.000000, 275.000000, "droga[playerid]: 1000");
TextDrawBackgroundColor(droga1[playerid], 255);
TextDrawFont(droga1[playerid], 1);
TextDrawLetterSize(droga1[playerid], 0.370000, 1.600000);
TextDrawColor(droga1[playerid], 848756735);
TextDrawSetOutline(droga1[playerid], 0);
TextDrawSetProportional(droga1[playerid], 1);
TextDrawSetShadow(droga1[playerid], 1);

materijalistats[playerid] = TextDrawCreate(145.000000, 291.000000, "materijali[playerid]: 1000");
TextDrawBackgroundColor(materijalistats[playerid], 255);
TextDrawFont(materijalistats[playerid], 1);
TextDrawLetterSize(materijalistats[playerid], 0.370000, 1.600000);
TextDrawColor(materijalistats[playerid], 848756735);
TextDrawSetOutline(materijalistats[playerid], 0);
TextDrawSetProportional(materijalistats[playerid], 1);
TextDrawSetShadow(materijalistats[playerid], 1);

telkred[playerid] = TextDrawCreate(145.000000, 307.000000, "Tel.Kredit: 100");
TextDrawBackgroundColor(telkred[playerid], 255);
TextDrawFont(telkred[playerid], 1);
TextDrawLetterSize(telkred[playerid], 0.370000, 1.600000);
TextDrawColor(telkred[playerid], 848756735);
TextDrawSetOutline(telkred[playerid], 0);
TextDrawSetProportional(telkred[playerid], 1);
TextDrawSetShadow(telkred[playerid], 1);

kucak[playerid] = TextDrawCreate(371.000000, 106.000000, "Kuca Kljuc: 255");
TextDrawBackgroundColor(kucak[playerid], 255);
TextDrawFont(kucak[playerid], 1);
TextDrawLetterSize(kucak[playerid], 0.370000, 1.600000);
TextDrawColor(kucak[playerid], 848756735);
TextDrawSetOutline(kucak[playerid], 0);
TextDrawSetProportional(kucak[playerid], 1);
TextDrawSetShadow(kucak[playerid], 1);

stank[playerid] = TextDrawCreate(371.000000, 120.000000, "Stan Kljuc: 255");
TextDrawBackgroundColor(stank[playerid], 255);
TextDrawFont(stank[playerid], 1);
TextDrawLetterSize(stank[playerid], 0.370000, 1.600000);
TextDrawColor(stank[playerid], 848756735);
TextDrawSetOutline(stank[playerid], 0);
TextDrawSetProportional(stank[playerid], 1);
TextDrawSetShadow(stank[playerid], 1);

firmak[playerid] = TextDrawCreate(370.000000, 135.000000, "Firma Kljuc: 255");
TextDrawBackgroundColor(firmak[playerid], 255);
TextDrawFont(firmak[playerid], 1);
TextDrawLetterSize(firmak[playerid], 0.370000, 1.600000);
TextDrawColor(firmak[playerid], 848756735);
TextDrawSetOutline(firmak[playerid], 0);
TextDrawSetProportional(firmak[playerid], 1);
TextDrawSetShadow(firmak[playerid], 1);

vozilok1[playerid] = TextDrawCreate(371.000000, 149.000000, "Vozilo 1: 999");
TextDrawBackgroundColor(vozilok1[playerid], 255);
TextDrawFont(vozilok1[playerid], 1);
TextDrawLetterSize(vozilok1[playerid], 0.370000, 1.600000);
TextDrawColor(vozilok1[playerid], 848756735);
TextDrawSetOutline(vozilok1[playerid], 0);
TextDrawSetProportional(vozilok1[playerid], 1);
TextDrawSetShadow(vozilok1[playerid], 1);

vozilok2[playerid] = TextDrawCreate(371.000000, 163.000000, "Vozilo 2: 999");
TextDrawBackgroundColor(vozilok2[playerid], 255);
TextDrawFont(vozilok2[playerid], 1);
TextDrawLetterSize(vozilok2[playerid], 0.370000, 1.600000);
TextDrawColor(vozilok2[playerid], 848756735);
TextDrawSetOutline(vozilok2[playerid], 0);
TextDrawSetProportional(vozilok2[playerid], 1);
TextDrawSetShadow(vozilok2[playerid], 1);

vozilok3[playerid] = TextDrawCreate(371.000000, 178.000000, "Vozilo 3: 999");
TextDrawBackgroundColor(vozilok3[playerid], 255);
TextDrawFont(vozilok3[playerid], 1);
TextDrawLetterSize(vozilok3[playerid], 0.370000, 1.600000);
TextDrawColor(vozilok3[playerid], 848756735);
TextDrawSetOutline(vozilok3[playerid], 0);
TextDrawSetProportional(vozilok3[playerid], 1);
TextDrawSetShadow(vozilok3[playerid], 1);

intidstats[playerid] = TextDrawCreate(371.000000, 192.000000, "Interior ID: 50");
TextDrawBackgroundColor(intidstats[playerid], 255);
TextDrawFont(intidstats[playerid], 1);
TextDrawLetterSize(intidstats[playerid], 0.370000, 1.600000);
TextDrawColor(intidstats[playerid], 848756735);
TextDrawSetOutline(intidstats[playerid], 0);
TextDrawSetProportional(intidstats[playerid], 1);
TextDrawSetShadow(intidstats[playerid], 1);

novacstats[playerid] = TextDrawCreate(371.000000, 207.000000, "Novac: 20000000");
TextDrawBackgroundColor(novacstats[playerid], 255);
TextDrawFont(novacstats[playerid], 1);
TextDrawLetterSize(novacstats[playerid], 0.370000, 1.600000);
TextDrawColor(novacstats[playerid], 848756735);
TextDrawSetOutline(novacstats[playerid], 0);
TextDrawSetProportional(novacstats[playerid], 1);
TextDrawSetShadow(novacstats[playerid], 1);

bankastats[playerid] = TextDrawCreate(371.000000, 221.000000, "Banka: 20000000");
TextDrawBackgroundColor(bankastats[playerid], 255);
TextDrawFont(bankastats[playerid], 1);
TextDrawLetterSize(bankastats[playerid], 0.370000, 1.600000);
TextDrawColor(bankastats[playerid], 848756735);
TextDrawSetOutline(bankastats[playerid], 0);
TextDrawSetProportional(bankastats[playerid], 1);
TextDrawSetShadow(bankastats[playerid], 1);
///////////////////////////
TextDrawShowForPlayer(playerid, stats0[playerid]);
TextDrawShowForPlayer(playerid, stats1[playerid]);
TextDrawShowForPlayer(playerid, stats2[playerid]);
TextDrawShowForPlayer(playerid, stats3[playerid]);
TextDrawShowForPlayer(playerid, rankorg[playerid]);
TextDrawShowForPlayer(playerid, imeig[playerid]);
TextDrawShowForPlayer(playerid, levelstats[playerid]);
TextDrawShowForPlayer(playerid, satig[playerid]);
TextDrawShowForPlayer(playerid, respekt[playerid]);
TextDrawShowForPlayer(playerid, donator[playerid]);
TextDrawShowForPlayer(playerid, godine[playerid]);
TextDrawShowForPlayer(playerid, pol[playerid]);
TextDrawShowForPlayer(playerid, drzava[playerid]);
TextDrawShowForPlayer(playerid, posao[playerid]);
TextDrawShowForPlayer(playerid, orgstats[playerid]);
TextDrawShowForPlayer(playerid, droga1[playerid]);
TextDrawShowForPlayer(playerid, materijalistats[playerid]);
TextDrawShowForPlayer(playerid, telkred[playerid]);
TextDrawShowForPlayer(playerid, kucak[playerid]);
TextDrawShowForPlayer(playerid, stank[playerid]);
TextDrawShowForPlayer(playerid, firmak[playerid]);
TextDrawShowForPlayer(playerid, vozilok1[playerid]);
TextDrawShowForPlayer(playerid, vozilok2[playerid]);
TextDrawShowForPlayer(playerid, vozilok3[playerid]);
TextDrawShowForPlayer(playerid, intidstats[playerid]);
TextDrawShowForPlayer(playerid, novacstats[playerid]);
TextDrawShowForPlayer(playerid, bankastats[playerid]);
/////////////////////////////////////////////

Nece otvorizi stats
Poslednja Izmena: Mart 04, 2012, 01:13:05 PRE PODNE od darac123
HostName: United on Balkan RP[Cetvrtak,20h VELIKO OTVORENJE]
Address:  78.46.21.212:7784
Players:  0 / 50
Ping:     43
Mode:     UBRP v1.3.1
Map:      gamehosting.rs


tvoj gm ?? GM je South europe role play !

Kako ocekujes da radi kada si postavio text a nigde nemas

TextDrawSetString

da promenis varijable :S

Sada dole moras da napravis za svaki textdraw koji treba da ispise nesto da napravis

TextDrawSetString kako bi se to menjalo za svakog igraca pojedinacno...

Imam i to... Neradi ja kada upisem /stats te komande nema
HostName: United on Balkan RP[Cetvrtak,20h VELIKO OTVORENJE]
Address:  78.46.21.212:7784
Players:  0 / 50
Ping:     43
Mode:     UBRP v1.3.1
Map:      gamehosting.rs

Citat: darac123 poslato Mart 04, 2012, 01:33:31 PRE PODNE
Imam i to... Neradi ja kada upisem /stats te komande nema

da ne koristis pola zcmd pola strcmp jer moze biti do toga...

Koristim samo cmd komande ali nje nigdje nema
HostName: United on Balkan RP[Cetvrtak,20h VELIKO OTVORENJE]
Address:  78.46.21.212:7784
Players:  0 / 50
Ping:     43
Mode:     UBRP v1.3.1
Map:      gamehosting.rs

Citat: darac123 poslato Mart 04, 2012, 01:45:23 PRE PODNE
Koristim samo cmd komande ali nje nigdje nema

kako je nema? ocekujes da ti komanda radi a nemas je u gamemodu? ne razumem :S pojasni malo

Ma gle ja upisem /stats    i on meni samo javi onako u texstu stisnite ljevi klik da ugasite /stats ali nis mi se ne pojavljuje
HostName: United on Balkan RP[Cetvrtak,20h VELIKO OTVORENJE]
Address:  78.46.21.212:7784
Players:  0 / 50
Ping:     43
Mode:     UBRP v1.3.1
Map:      gamehosting.rs