Pare u Firmi


Započeo Fojnica, Novembar 27, 2017, 15:51:30 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Edit SA uglavnom
Detaljan opis problema:Imam problem sa Firmama, naprimjer kupim Pušku/Pištolj od 5k, a u Kasu mi ubaci 200k ili više ne znam tačno, i tako igrači dobijaju više para, sve sam fixao oko moda, samo me to našlo zajebavat, nije neki velik bag a'l da fixam, da pomognete.
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
• Sve sam u stanju da pustim da ide
Nisam od onih što svima se svide. •

Posalji taj deo gde kupuje tj gde pare idu u biz

ako je edit SA, to je onda UP, nadji FirmaNovac( i trazi po tome
heroin rap - Moskri u kuci, od sledece lajne glava ce mi puci

Citat: Tosic ãƒ,, poslato Novembar 27, 2017, 16:04:52 POSLE PODNE
Posalji taj deo gde kupuje tj gde pare idu u biz
Citat: Łukmember=1996][/member] link=topic=116715.msg785669#msg785669 date=1511795319]
ako je edit SA, to je onda UP, nadji FirmaNovac( i trazi po tome
Jel ovo?
fDialog(74)
{
	if(!response) return 1;
	if(response)
	{
		if(PlayerInfo[playerid][pPosedovanjeFirme] == -1) return SCM(playerid,-1, ""ZUTA"[GL:RPG] "BELA"Nemate firmu!");
		new i = PlayerInfo[playerid][pPosedovanjeFirme];
		switch(listitem)
		{
			case 0:
			{
				if(FirmaInfo[i][fVrsta] == VRSTA_SBIZZ)
				{
					if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ])) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Niste ispred vase firme!");
					new string1[275], string2[275], string[550],z[3]; if(FirmaInfo[i][fZatvoreno] == 1) z = "Da"; else z = "Ne";
					format(string1,sizeof(string1),""BELA"_______________________________________\n\n"ZPLAVA"Vlasnik Firme: "CRVENA"%s\n"ZPLAVA"Naziv Firme: "CRVENA"%s\n"ZPLAVA"Reket: "CRVENA"%s\n"ZPLAVA"Level: "BELA"%d\n"ZPLAVA"Cena: "BELA"%d\n",FirmaInfo[i][fVlasnik],FirmaInfo[i][fNaziv],FirmaInfo[i][fIznuda],FirmaInfo[i][fLevel],FirmaInfo[i][fCena]);
					format(string2,sizeof(string2),""ZPLAVA"ID: "BELA"%d\n"ZPLAVA"Zatvoreno: "BELA"%s\n"ZPLAVA"Kasa: "BELA"%d$\n"ZPLAVA"Proizvodi: "BELA"%d/%d\n_______________________________________",i,z,FirmaInfo[i][fKasa],FirmaInfo[i][fProizvodi],FirmaInfo[i][fMaxProizvodi]);
					format(string, sizeof(string), "%s%s", string1, string2);
					SPD(playerid, 110, DIALOG_STYLE_MSGBOX, ""BELA"Firma Informacije", string, "Ok", "Izlaz");
				}
				else
				{
					if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[i][fIzlazX], FirmaInfo[i][fIzlazY], FirmaInfo[i][fIzlazZ])) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Niste u vasoj firmi!");
					new string1[275], string2[275], string[550],z[3]; if(FirmaInfo[i][fZatvoreno] == 1) z = "Da"; else z = "Ne";
					format(string1,sizeof(string1),""BELA"_______________________________________\n\n"ZPLAVA"Vlasnik Firme: "CRVENA"%s\n"ZPLAVA"Naziv Firme: "CRVENA"%s\n"ZPLAVA"Reket: "CRVENA"%s\n"ZPLAVA"Level: "BELA"%d\n"ZPLAVA"Cena: "BELA"%d\n",FirmaInfo[i][fVlasnik],FirmaInfo[i][fNaziv],FirmaInfo[i][fIznuda],FirmaInfo[i][fLevel],FirmaInfo[i][fCena]);
					format(string2,sizeof(string2),""ZPLAVA"ID: "BELA"%d\n"ZPLAVA"Zatvoreno: "BELA"%s\n"ZPLAVA"Kasa: "BELA"%d$\n"ZPLAVA"Proizvodi: "BELA"%d/%d\n_______________________________________",i,z,FirmaInfo[i][fKasa],FirmaInfo[i][fProizvodi],FirmaInfo[i][fMaxProizvodi]);
					format(string, sizeof(string), "%s%s", string1, string2);
					SPD(playerid, 110, DIALOG_STYLE_MSGBOX, ""BELA"Firma Informacije", string, "Ok", "Izlaz");
				}
			}
			case 1:
			{
				if(PlayerInfo[playerid][pPosedovanjeFirme] == -1) return SCM(playerid,-1, ""ZUTA"[GL:RPG] "BELA"Nemate firmu!");
				if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ]) && !IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[i][fIzlazX], FirmaInfo[i][fIzlazY], FirmaInfo[i][fIzlazZ])) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Niste ispred ili u vasoj firmi!");
				if(FirmaInfo[i][fZatvoreno] == 0) return SCM(playerid,-1,""ZPLAVA"[Firma]: "BELA"Vec je otkljucana!");
				FirmaInfo[i][fZatvoreno] = 0;
				SCM(playerid,-1, ""ZPLAVA"[Firma]: "BELA"Firma otkljucana!");
				SacuvajFirmu(i);
			}
			case 2:
			{
				if(PlayerInfo[playerid][pPosedovanjeFirme] == -1) return SCM(playerid,-1, ""ZUTA"[GL:RPG] "BELA"Nemate firmu!");
				if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ]) && !IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[i][fIzlazX], FirmaInfo[i][fIzlazY], FirmaInfo[i][fIzlazZ])) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Niste ispred ili u vasoj firmi!");
				if(FirmaInfo[i][fZatvoreno] == 1) return SCM(playerid,-1,""ZPLAVA"[Firma]: "BELA"Vec je zakljucana!");
				FirmaInfo[i][fZatvoreno] = 1;
				SCM(playerid,-1, ""ZPLAVA"[Firma]: "BELA"Firma zakljucana!");
				SacuvajFirmu(i);
			}
			case 3:
			{
				if(FirmaInfo[i][fVrsta] == VRSTA_SBIZZ)
				{
					if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ])) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Niste ispred vase firme!");
					new string[128];
					format(string,sizeof(string), ""BELA"Unesite kolicinu novca koji zelite da podignete\n"ZUTA"U kasi trenutno ima %d$!", FirmaInfo[i][fKasa]);
					SPD(playerid, 76, DIALOG_STYLE_INPUT, ""ZUTA"Dizanje novca iz Firme", string, "Podigni", "Izlaz");
				}
				else
				{
					if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[i][fIzlazX], FirmaInfo[i][fIzlazY], FirmaInfo[i][fIzlazZ])) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Niste u vasoj firmi!");
					new string[128];
					format(string,sizeof(string), ""BELA"Unesite kolicinu novca koji zelite da podignete\n"ZUTA"U kasi trenutno ima %d$!", FirmaInfo[i][fKasa]);
					SPD(playerid, 76, DIALOG_STYLE_INPUT, ""ZUTA"Dizanje novca iz Firme", string, "Podigni", "Izlaz");
				}
			}
			case 4:
			{
				if(FirmaInfo[i][fVrsta] == VRSTA_SBIZZ)
				{
					if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ])) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Niste ispred vase firme!");
					new string[128];
					format(string,sizeof(string), ""BELA"Upisite kolicinu novca koji zelite da ostavite u firmu\n"ZUTA"U kasi treutno ima %d$!", FirmaInfo[i][fKasa]);
					SPD(playerid, 78, DIALOG_STYLE_INPUT, ""ZUTA"Ostavljanje novca u firmu", string, "Ostavi", "Izlaz");
				}
				else
				{
					if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[i][fIzlazX], FirmaInfo[i][fIzlazY], FirmaInfo[i][fIzlazZ])) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Niste u vasoj firmi!");
					new string[128];
					format(string,sizeof(string), ""BELA"Upisite kolicinu novca koji zelite da ostavite u firmu\n"ZUTA"U kasi treutno ima %d$!", FirmaInfo[i][fKasa]);
					SPD(playerid, 78, DIALOG_STYLE_INPUT, ""ZUTA"Ostavljanje novca u firmu", string, "Ostavi", "Izlaz");
				}
			}
			case 5:
			{
				//new stringp[128];
				if(FirmaInfo[i][fVrsta] == VRSTA_SBIZZ) return SCM(playerid,-1,""ZUTA"[GL:RPG] | "BELA"U vasoj firmi nisu potrebni proizvodi!");
				if(FirmaInfo[i][fProizvodi] >= 200) return SCM(playerid,-1,""ZUTA"[GL:RPG] | "BELA"U vasoj firmi nisu potrebni proizvodi imate preko 200!");
				SCM(playerid,-1,""ZPLAVA"[Firma]: "BELA"Narucili ste proizvode za vasu firmu, obavestili smo sve online dostavljace!");
				/*format(stringp, sizeof(stringp),""HZELENA"Potrebni Proizvodi | "BELA"Firma: %s | Lokacija: %s | Vlasnik/Narucio: %s!",FirmaInfo[i][fNaziv],UlicaFirme(i), GetName(playerid));
				foreach(Player, iplayer)
				{
					if(PlayerInfo[iplayer][pPosao] == POSAO_DOSTAVLJAC)
					{
						SCM(iplayer,-1,stringp);
					}
				}*/
			}
			case 6:
			{
				if(FirmaInfo[i][fVrsta] == VRSTA_SBIZZ)
				{
					if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ])) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Niste ispred vase firme!");
					SPD(playerid, 80, DIALOG_STYLE_INPUT, ""ZUTA"Firma Ime", ""BELA"Upisite novo ime firme\n"CRVENA"Zabranjeno je stavljati OOC ime firme!", "Promeni", "Izlaz");
				}
				else
				{
					if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[i][fIzlazX], FirmaInfo[i][fIzlazY], FirmaInfo[i][fIzlazZ])) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Niste u vasoj firmi!");
					SPD(playerid, 80, DIALOG_STYLE_INPUT, ""ZUTA"Firma Ime", ""BELA"Upisite novo ime firme\n"CRVENA"Zabranjeno je stavljati OOC ime firme!", "Promeni", "Izlaz");
				}
			}
			case 7:
			{
				if(PlayerInfo[playerid][pPosedovanjeFirme] == -1) return SCM(playerid,-1, ""CRVENA"[GRESKA] "BELA"Nemate firmu!");
				if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ])) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Niste ispred vase firme!");
				new cena1 = (FirmaInfo[i][fCena]/4)*2;
				new string[256];
				format(string,sizeof(string), ""BELA"Prodaja firme drzavi\n\n"ZPLAVA"Dali ste sigurni da zelite da prodate firmu drzavi za %d$!\n\n"BELA"Ako ste sigurni kliknite na 'Prodaj' ako ne kliknite na 'Izlaz'", cena1);
				SPD(playerid, 84, DIALOG_STYLE_MSGBOX, ""BELA"Prodaja firme drzavi", string, "Prodaj", "Izlaz");
			}
			case 8:
			{
				if(FirmaInfo[i][fVrsta] == VRSTA_SBIZZ)
				{
					if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ])) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Niste ispred vase firme!");
					SPD(playerid, 96, DIALOG_STYLE_LIST, ""BELA"Postavljanje iznude", ""ZPLAVA"(1). "BELA"The Vinci Family\n"ZPLAVA"(2). "BELA"Black Dragon Triads", "Postavi", "Izlaz");
				}
				else
				{
					if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[i][fIzlazX], FirmaInfo[i][fIzlazY], FirmaInfo[i][fIzlazZ])) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Niste u vasoj firmi!");
					SPD(playerid, 96, DIALOG_STYLE_LIST, ""BELA"Postavljanje iznude", ""ZPLAVA"(1). "BELA"The Vinci Family\n"ZPLAVA"(2). "BELA"Black Dragon Triads", "Postavi", "Izlaz");
				}
			}
			case 9:
			{
				if(FirmaInfo[i][fVrsta] == VRSTA_SBIZZ)
				{
					if(!IsPlayerInRangeOfPoint(playerid, 5.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ])) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Niste ispred vase firme!");
					strmid(FirmaInfo[i][fIznuda], "Niko", 0, strlen("Niko"), 255);
					SCM(playerid,-1, ""ZPLAVA"[Firma]: "BELA"Uklonili ste iznudu sa svoje firme!");
					FirmaLabelIPickup(i); SacuvajFirmu(i);
				}
				else
				{
					if(!IsPlayerInRangeOfPoint(playerid, 15.0, FirmaInfo[i][fIzlazX], FirmaInfo[i][fIzlazY], FirmaInfo[i][fIzlazZ])) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Niste u vasoj firmi!");
					strmid(FirmaInfo[i][fIznuda], "Niko", 0, strlen("Niko"), 255);
					SCM(playerid,-1, ""ZPLAVA"[Firma]: "BELA"Uklonili ste iznudu sa svoje firme!");
					FirmaLabelIPickup(i); SacuvajFirmu(i);
				}
			}
		}
	}
	return 1;
}

@Tosic ãƒ,,
• Sve sam u stanju da pustim da ide
Nisam od onih što svima se svide. •

daj dio od gun shopa ili cega vec gdje kupujes oruzije..
heroin rap - Moskri u kuci, od sledece lajne glava ce mi puci

Citat: Łukmember=1996][/member] link=topic=116715.msg785771#msg785771 date=1511805728]
daj dio od gun shopa ili cega vec gdje kupujes oruzije..
1.
else if(FirmaInfo[i][fVrsta] == VRSTA_GUNSHOP)
			if(IsPlayerInRangeOfPoint(playerid,3,308.3803,-141.4574,999.6016))
			{
				x++;
				if(FirmaInfo[UsaoFirma[playerid]][fProizvodi] <= 0) return SCM(playerid,-1,""ZPLAVA"[Firma]: "BELA"Nemamo vise proizvoda!");
			    if(PlayerInfo[playerid][pLevel] < 2) return SCM(playerid,-1, "[GL:RPG] | "ZUTA"Morate biti najmanje level 2 da bi mogli kupovati oruzije!");
				if(PlayerInfo[playerid][pGunDozvola] == 0) return SCM(playerid,-1, ""ZUTA"[GL:RPG] "BELA"Morate imati dozvolu za oruzije da bi kupili oruzije!");
				SPD(playerid, 90, DIALOG_STYLE_LIST, ""BELA"Gun Shop", ""ZUTA"- "BELA"Noz (1000$)\n"ZUTA"- "BELA"Palica (60$)\n"ZUTA"- "BELA"Shotgun (5000$)\n"ZUTA"- "BELA"Padobran (250$)\n"ZUTA"- "BELA"Dezert (3000$)\n"ZUTA"- "BELA"M4 (5000$)\n"ZUTA"- "BELA"AK-47 (5000$)\n"ZUTA"- "BELA"MP5 (5500$)\n"ZUTA"- "BELA"Sniper (5000$)\n"ZUTA"- "BELA"Pancir (2000$)", "Kupi", "Izlaz");
				break;
			}

2.
fDialog(90)
{
	if(!response) return 1;
	if(FirmaInfo[UsaoFirma[playerid]][fProizvodi] <= 0) return SCM(playerid,-1,""ZPLAVA"[Firma]: "BELA"Nemamo vise proizvoda!");
	if(PlayerInfo[playerid][pLevel] < 3) return SCM(playerid,-1, ""ZUTA"[GL:RPG] "ZUTA"Morate biti level 2 da bi mogli kupovati oruzije!");
	if(PlayerInfo[playerid][pGunDozvola] == 0) return SCM(playerid,-1, ""ZUTA"[GL:RPG] "BELA"Nemate dozvolu za oruzije!");
	FirmaInfo[UsaoFirma[playerid]][fProizvodi]--;
	switch(listitem)
	{
		case 0:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 500) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 500$!");
			GivePlayerWeapon(playerid,4,1);
			FirmaNovac(UsaoFirma[playerid], 20000);
			g_NovacMinus(playerid,500);
			SCM(playerid,-1,""ZUTA"Kupili ste noz za 500$!");
		}
		case 1:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 60) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 60$!");
			GivePlayerWeapon(playerid,5,1);
			FirmaNovac(UsaoFirma[playerid], 40000);
			g_NovacMinus(playerid,60);
			SCM(playerid,-1,""ZUTA"Kupili ste palicu za 60$!");
		}
		case 2:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 5000) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 5000$!");
			GivePlayerWeapon(playerid,25,120);
			FirmaNovac(UsaoFirma[playerid], 20000);
			g_NovacMinus(playerid,5000);
			SCM(playerid,-1,""ZUTA"Kupili ste shotgun za 5000$!");
		}
		case 3:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 250) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 250$!");
			GivePlayerWeapon(playerid,46,1);
			FirmaNovac(UsaoFirma[playerid], 70000);
			g_NovacMinus(playerid,250);
			SCM(playerid,-1,""ZUTA"Kupili ste padobran za 250$!");
		}
		case 4:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 5000) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 5000$!");
			GivePlayerWeapon(playerid,24,120);
			FirmaNovac(UsaoFirma[playerid], 200000);
			g_NovacMinus(playerid,5000);
			SCM(playerid,-1,""ZUTA"Kupili ste dezert za 5000$!");
		}
		case 5:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 5000) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 5000$!");
			GivePlayerWeapon(playerid,31,300);
			FirmaNovac(UsaoFirma[playerid], 200000);
			g_NovacMinus(playerid,5000);
			SCM(playerid,-1,""ZUTA"Kupili ste M4 za 5000$!");
		}
		case 6:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 5000) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 5000$!");
			GivePlayerWeapon(playerid,30,300);
			FirmaNovac(UsaoFirma[playerid], 150000);
			g_NovacMinus(playerid,5000);
			SCM(playerid,-1,""ZUTA"Kupili ste AK-47 za 5000$!");
		}
		case 7:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 5500) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 5500$!");
			GivePlayerWeapon(playerid,29,300);
			FirmaNovac(UsaoFirma[playerid], 150000);
			g_NovacMinus(playerid,5500);
			SCM(playerid,-1,""ZUTA"Kupili ste MP5 za 5500$!");
		}
		case 8:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 10000) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 5000$!");
			GivePlayerWeapon(playerid,34,120);
			FirmaNovac(UsaoFirma[playerid], 200000);
			g_NovacMinus(playerid,10000);
			SCM(playerid,-1,""ZUTA"Kupili ste Sniper za 5000$!");
		}
		case 9:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 2000) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 2000$!");
			SetPlayerArmour(playerid, 100.0);
			FirmaNovac(UsaoFirma[playerid], 100000);
			g_NovacMinus(playerid,2000);
			SCM(playerid,-1,""ZUTA"Kupili ste pancir za 2000$!");
		}
	}
	return 1;
}
• Sve sam u stanju da pustim da ide
Nisam od onih što svima se svide. •

c0x

*

Citat: [GL] Eldin poslato Novembar 27, 2017, 19:10:09 POSLE PODNE
Citat: Łukmember=1996][/member] link=topic=116715.msg785771#msg785771 date=1511805728]
daj dio od gun shopa ili cega vec gdje kupujes oruzije..
1.
else if(FirmaInfo[i][fVrsta] == VRSTA_GUNSHOP)
			if(IsPlayerInRangeOfPoint(playerid,3,308.3803,-141.4574,999.6016))
			{
				x++;
				if(FirmaInfo[UsaoFirma[playerid]][fProizvodi] <= 0) return SCM(playerid,-1,""ZPLAVA"[Firma]: "BELA"Nemamo vise proizvoda!");
			    if(PlayerInfo[playerid][pLevel] < 2) return SCM(playerid,-1, "[GL:RPG] | "ZUTA"Morate biti najmanje level 2 da bi mogli kupovati oruzije!");
				if(PlayerInfo[playerid][pGunDozvola] == 0) return SCM(playerid,-1, ""ZUTA"[GL:RPG] "BELA"Morate imati dozvolu za oruzije da bi kupili oruzije!");
				SPD(playerid, 90, DIALOG_STYLE_LIST, ""BELA"Gun Shop", ""ZUTA"- "BELA"Noz (1000$)\n"ZUTA"- "BELA"Palica (60$)\n"ZUTA"- "BELA"Shotgun (5000$)\n"ZUTA"- "BELA"Padobran (250$)\n"ZUTA"- "BELA"Dezert (3000$)\n"ZUTA"- "BELA"M4 (5000$)\n"ZUTA"- "BELA"AK-47 (5000$)\n"ZUTA"- "BELA"MP5 (5500$)\n"ZUTA"- "BELA"Sniper (5000$)\n"ZUTA"- "BELA"Pancir (2000$)", "Kupi", "Izlaz");
				break;
			}

2.
fDialog(90)
{
	if(!response) return 1;
	if(FirmaInfo[UsaoFirma[playerid]][fProizvodi] <= 0) return SCM(playerid,-1,""ZPLAVA"[Firma]: "BELA"Nemamo vise proizvoda!");
	if(PlayerInfo[playerid][pLevel] < 3) return SCM(playerid,-1, ""ZUTA"[GL:RPG] "ZUTA"Morate biti level 2 da bi mogli kupovati oruzije!");
	if(PlayerInfo[playerid][pGunDozvola] == 0) return SCM(playerid,-1, ""ZUTA"[GL:RPG] "BELA"Nemate dozvolu za oruzije!");
	FirmaInfo[UsaoFirma[playerid]][fProizvodi]--;
	switch(listitem)
	{
		case 0:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 500) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 500$!");
			GivePlayerWeapon(playerid,4,1);
			FirmaNovac(UsaoFirma[playerid], 20000);
			g_NovacMinus(playerid,500);
			SCM(playerid,-1,""ZUTA"Kupili ste noz za 500$!");
		}
		case 1:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 60) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 60$!");
			GivePlayerWeapon(playerid,5,1);
			FirmaNovac(UsaoFirma[playerid], 40000);
			g_NovacMinus(playerid,60);
			SCM(playerid,-1,""ZUTA"Kupili ste palicu za 60$!");
		}
		case 2:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 5000) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 5000$!");
			GivePlayerWeapon(playerid,25,120);
			FirmaNovac(UsaoFirma[playerid], 20000);
			g_NovacMinus(playerid,5000);
			SCM(playerid,-1,""ZUTA"Kupili ste shotgun za 5000$!");
		}
		case 3:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 250) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 250$!");
			GivePlayerWeapon(playerid,46,1);
			FirmaNovac(UsaoFirma[playerid], 70000);
			g_NovacMinus(playerid,250);
			SCM(playerid,-1,""ZUTA"Kupili ste padobran za 250$!");
		}
		case 4:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 5000) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 5000$!");
			GivePlayerWeapon(playerid,24,120);
			FirmaNovac(UsaoFirma[playerid], 200000);
			g_NovacMinus(playerid,5000);
			SCM(playerid,-1,""ZUTA"Kupili ste dezert za 5000$!");
		}
		case 5:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 5000) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 5000$!");
			GivePlayerWeapon(playerid,31,300);
			FirmaNovac(UsaoFirma[playerid], 200000);
			g_NovacMinus(playerid,5000);
			SCM(playerid,-1,""ZUTA"Kupili ste M4 za 5000$!");
		}
		case 6:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 5000) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 5000$!");
			GivePlayerWeapon(playerid,30,300);
			FirmaNovac(UsaoFirma[playerid], 150000);
			g_NovacMinus(playerid,5000);
			SCM(playerid,-1,""ZUTA"Kupili ste AK-47 za 5000$!");
		}
		case 7:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 5500) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 5500$!");
			GivePlayerWeapon(playerid,29,300);
			FirmaNovac(UsaoFirma[playerid], 150000);
			g_NovacMinus(playerid,5500);
			SCM(playerid,-1,""ZUTA"Kupili ste MP5 za 5500$!");
		}
		case 8:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 10000) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 5000$!");
			GivePlayerWeapon(playerid,34,120);
			FirmaNovac(UsaoFirma[playerid], 200000);
			g_NovacMinus(playerid,10000);
			SCM(playerid,-1,""ZUTA"Kupili ste Sniper za 5000$!");
		}
		case 9:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 2000) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 2000$!");
			SetPlayerArmour(playerid, 100.0);
			FirmaNovac(UsaoFirma[playerid], 100000);
			g_NovacMinus(playerid,2000);
			SCM(playerid,-1,""ZUTA"Kupili ste pancir za 2000$!");
		}
	}
	return 1;
}

Ovde gde ti pise
FirmaNovac(UsaoFirma[playerid], "iznos novca koji ce ici u firmu pri kupovini nekog oruzja"
.. ;)
Poslednja Izmena: Novembar 27, 2017, 19:15:01 POSLE PODNE od c0x

Citat: c0x poslato Novembar 27, 2017, 19:13:18 POSLE PODNE
Citat: [GL] Eldin poslato Novembar 27, 2017, 19:10:09 POSLE PODNE
Citat: Łukmember=1996][/member] link=topic=116715.msg785771#msg785771 date=1511805728]
daj dio od gun shopa ili cega vec gdje kupujes oruzije..
1.
else if(FirmaInfo[i][fVrsta] == VRSTA_GUNSHOP)
			if(IsPlayerInRangeOfPoint(playerid,3,308.3803,-141.4574,999.6016))
			{
				x++;
				if(FirmaInfo[UsaoFirma[playerid]][fProizvodi] <= 0) return SCM(playerid,-1,""ZPLAVA"[Firma]: "BELA"Nemamo vise proizvoda!");
			    if(PlayerInfo[playerid][pLevel] < 2) return SCM(playerid,-1, "[GL:RPG] | "ZUTA"Morate biti najmanje level 2 da bi mogli kupovati oruzije!");
				if(PlayerInfo[playerid][pGunDozvola] == 0) return SCM(playerid,-1, ""ZUTA"[GL:RPG] "BELA"Morate imati dozvolu za oruzije da bi kupili oruzije!");
				SPD(playerid, 90, DIALOG_STYLE_LIST, ""BELA"Gun Shop", ""ZUTA"- "BELA"Noz (1000$)\n"ZUTA"- "BELA"Palica (60$)\n"ZUTA"- "BELA"Shotgun (5000$)\n"ZUTA"- "BELA"Padobran (250$)\n"ZUTA"- "BELA"Dezert (3000$)\n"ZUTA"- "BELA"M4 (5000$)\n"ZUTA"- "BELA"AK-47 (5000$)\n"ZUTA"- "BELA"MP5 (5500$)\n"ZUTA"- "BELA"Sniper (5000$)\n"ZUTA"- "BELA"Pancir (2000$)", "Kupi", "Izlaz");
				break;
			}

2.
fDialog(90)
{
	if(!response) return 1;
	if(FirmaInfo[UsaoFirma[playerid]][fProizvodi] <= 0) return SCM(playerid,-1,""ZPLAVA"[Firma]: "BELA"Nemamo vise proizvoda!");
	if(PlayerInfo[playerid][pLevel] < 3) return SCM(playerid,-1, ""ZUTA"[GL:RPG] "ZUTA"Morate biti level 2 da bi mogli kupovati oruzije!");
	if(PlayerInfo[playerid][pGunDozvola] == 0) return SCM(playerid,-1, ""ZUTA"[GL:RPG] "BELA"Nemate dozvolu za oruzije!");
	FirmaInfo[UsaoFirma[playerid]][fProizvodi]--;
	switch(listitem)
	{
		case 0:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 500) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 500$!");
			GivePlayerWeapon(playerid,4,1);
			FirmaNovac(UsaoFirma[playerid], 20000);
			g_NovacMinus(playerid,500);
			SCM(playerid,-1,""ZUTA"Kupili ste noz za 500$!");
		}
		case 1:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 60) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 60$!");
			GivePlayerWeapon(playerid,5,1);
			FirmaNovac(UsaoFirma[playerid], 40000);
			g_NovacMinus(playerid,60);
			SCM(playerid,-1,""ZUTA"Kupili ste palicu za 60$!");
		}
		case 2:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 5000) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 5000$!");
			GivePlayerWeapon(playerid,25,120);
			FirmaNovac(UsaoFirma[playerid], 20000);
			g_NovacMinus(playerid,5000);
			SCM(playerid,-1,""ZUTA"Kupili ste shotgun za 5000$!");
		}
		case 3:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 250) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 250$!");
			GivePlayerWeapon(playerid,46,1);
			FirmaNovac(UsaoFirma[playerid], 70000);
			g_NovacMinus(playerid,250);
			SCM(playerid,-1,""ZUTA"Kupili ste padobran za 250$!");
		}
		case 4:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 5000) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 5000$!");
			GivePlayerWeapon(playerid,24,120);
			FirmaNovac(UsaoFirma[playerid], 200000);
			g_NovacMinus(playerid,5000);
			SCM(playerid,-1,""ZUTA"Kupili ste dezert za 5000$!");
		}
		case 5:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 5000) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 5000$!");
			GivePlayerWeapon(playerid,31,300);
			FirmaNovac(UsaoFirma[playerid], 200000);
			g_NovacMinus(playerid,5000);
			SCM(playerid,-1,""ZUTA"Kupili ste M4 za 5000$!");
		}
		case 6:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 5000) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 5000$!");
			GivePlayerWeapon(playerid,30,300);
			FirmaNovac(UsaoFirma[playerid], 150000);
			g_NovacMinus(playerid,5000);
			SCM(playerid,-1,""ZUTA"Kupili ste AK-47 za 5000$!");
		}
		case 7:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 5500) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 5500$!");
			GivePlayerWeapon(playerid,29,300);
			FirmaNovac(UsaoFirma[playerid], 150000);
			g_NovacMinus(playerid,5500);
			SCM(playerid,-1,""ZUTA"Kupili ste MP5 za 5500$!");
		}
		case 8:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 10000) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 5000$!");
			GivePlayerWeapon(playerid,34,120);
			FirmaNovac(UsaoFirma[playerid], 200000);
			g_NovacMinus(playerid,10000);
			SCM(playerid,-1,""ZUTA"Kupili ste Sniper za 5000$!");
		}
		case 9:
		{
			if(PlayerInfo[playerid][pNovacDzep] < 2000) return SCM(playerid,-1,""ZUTA"[GL:RPG] "BELA"Nemate dovoljno novca 2000$!");
			SetPlayerArmour(playerid, 100.0);
			FirmaNovac(UsaoFirma[playerid], 100000);
			g_NovacMinus(playerid,2000);
			SCM(playerid,-1,""ZUTA"Kupili ste pancir za 2000$!");
		}
	}
	return 1;
}

Ovde gde ti pise
FirmaNovac(UsaoFirma[playerid], "iznos novca koji ce ici u firmu pri kupovini nekog oruzja"
.. ;)
A sam glup, da sam znao da je takav problem, mogo sam sam haahhahaha, hvala opet, ispo sam glup a'l ajd. :)
Lock
• Sve sam u stanju da pustim da ide
Nisam od onih što svima se svide. •