[Pomoc] Naruci


Započeo Darko a.k.a OptX, Jun 27, 2011, 15:01:41 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: SS FULL EDIT
Detaljan opis problema: Ovo sam uzeo sa FactionGame.Kako to sada da ubacim u svoj gm.Msm znam ja kako da ubacim,vec gde menjam kordinate kafica gde ce ovo da se nalazi?
Dio skripte:
if(strcmp(cmd, "/drink", true) == 0 || strcmp(cmd, "/naruci", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(IsAtBar(playerid))
	        {
	            if(PlayerDrunk[playerid] < 10)
	            {
	                new Float:health;
	                new x_nr[256];
					x_nr = strtok(cmdtext, idx);
					if(!strlen(x_nr)) {
						SendClientMessage(playerid, COLOR_WHITE, "|______________________ Pub Lista Pica________________________|");
						SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /naruci [ime pica]");
				  		SendClientMessage(playerid, COLOR_GREY, "Nealkoholna: Voda ($1), Coca-Cola($2), Fanta($2)");
				  		SendClientMessage(playerid, COLOR_GREY, "Pivo: Tuborg ($6), Becks($6), Bavaria($6)");
				  		SendClientMessage(playerid, COLOR_GREY, "Zestoko Pice: Viski($15), Vodka($12), Jeger($10)");
				  		SendClientMessage(playerid, COLOR_GREY, "Zestoko Pice: Tequila($12), Rakija($8)");
				  		SendClientMessage(playerid, COLOR_GREY, "Kokteli: Djus-Vodka($14), Sex-On-The-Beach($16), Zabice ($18)");
				  		SendClientMessage(playerid, COLOR_GREY, "Kokteli: Zemljotres($18), Tequila-Sunrise($15), Cosmopolitan($20)");
				  		SendClientMessage(playerid, COLOR_GREY, "Kokteli: Margarita($20), Blue-Lagoon($15), B-52($20)");
						SendClientMessage(playerid, COLOR_WHITE, "|____________________________________________________________|");
						return 1;
					}
					//pivo
				    if(strcmp(x_nr,"tuborg",true) == 0)
					{
						if(PlayerInfo[playerid][pAge] < 16)
						{
						    SendClientMessage(playerid, COLOR_WHITE, "Konobar: Morate imati preko 16 godina da biste pili ovo pice.");
						    return 1;
						}
					    SafeJB_GivePlayerMoney(playerid, - 6);
					    PlayerDrunk[playerid] += 1;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						GetPlayerHealth(playerid, health);
						if(health < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 10; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 10.0); }
						}
						//biznisi
						if (PlayerToPoint(4, playerid,SBizzInfo[12][sbEntranceX], SBizzInfo[12][sbEntranceY], SBizzInfo[12][sbEntranceZ]))
						{//kafic na plazi
						    SBizzInfo[12][sbTill] += 6;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[13][sbEntranceX], SBizzInfo[13][sbEntranceY], SBizzInfo[13][sbEntranceZ]))
						{//burg caffe
						    SBizzInfo[13][sbTill] += 6;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[14][sbEntranceX], SBizzInfo[14][sbEntranceY], SBizzInfo[14][sbEntranceZ]))
						{//alhambra
						    SBizzInfo[14][sbTill] += 6;
						    OnPropUpdate();
						}
					}
					else if(strcmp(x_nr,"becks",true) == 0)
					{
					    if(PlayerInfo[playerid][pAge] < 16)
						{
						    SendClientMessage(playerid, COLOR_WHITE, "Konobar: Morate imati preko 16 godina da biste pili ovo pice.");
						    return 1;
						}
					    SafeJB_GivePlayerMoney(playerid, - 6);
					    PlayerDrunk[playerid] += 1;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						GetPlayerHealth(playerid, health);
						if(health < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 15; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 15.0); }
						}
						//biznisi
						if (PlayerToPoint(4, playerid,SBizzInfo[12][sbEntranceX], SBizzInfo[12][sbEntranceY], SBizzInfo[12][sbEntranceZ]))
						{//kafic na plazi
						    SBizzInfo[12][sbTill] += 6;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[13][sbEntranceX], SBizzInfo[13][sbEntranceY], SBizzInfo[13][sbEntranceZ]))
						{//burg caffe
						    SBizzInfo[13][sbTill] += 6;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[14][sbEntranceX], SBizzInfo[14][sbEntranceY], SBizzInfo[14][sbEntranceZ]))
						{//alhambra
						    SBizzInfo[14][sbTill] += 6;
						    OnPropUpdate();
						}
					}
					else if(strcmp(x_nr,"bavaria",true) == 0)
					{
					    if(PlayerInfo[playerid][pAge] < 16)
						{
						    SendClientMessage(playerid, COLOR_WHITE, "Konobar: Morate imati preko 16 godina da biste pili ovo pice.");
						    return 1;
						}
					    SafeJB_GivePlayerMoney(playerid, - 6);
					    PlayerDrunk[playerid] += 1;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						GetPlayerHealth(playerid, health);
						if(health < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 20; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 20.0); }
						}
						//biznisi
						if (PlayerToPoint(4, playerid,SBizzInfo[12][sbEntranceX], SBizzInfo[12][sbEntranceY], SBizzInfo[12][sbEntranceZ]))
						{//kafic na plazi
						    SBizzInfo[12][sbTill] += 6;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[13][sbEntranceX], SBizzInfo[13][sbEntranceY], SBizzInfo[13][sbEntranceZ]))
						{//burg caffe
						    SBizzInfo[13][sbTill] += 6;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[14][sbEntranceX], SBizzInfo[14][sbEntranceY], SBizzInfo[14][sbEntranceZ]))
						{//alhambra
						    SBizzInfo[14][sbTill] += 6;
						    OnPropUpdate();
						}
					}
					//zestoko pice
                    else if(strcmp(x_nr,"viski",true) == 0)
					{
					    if(PlayerInfo[playerid][pAge] < 18)
						{
						    SendClientMessage(playerid, COLOR_WHITE, "Konobar: Morate imati preko 18 godina da biste pili ovo pice.");
						    return 1;
						}
					    SafeJB_GivePlayerMoney(playerid, - 15);
					    PlayerDrunk[playerid] += 3;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						GetPlayerHealth(playerid, health);
						if(health < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 27; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 27.0); }
						}
						//biznisi
						if (PlayerToPoint(4, playerid,SBizzInfo[12][sbEntranceX], SBizzInfo[12][sbEntranceY], SBizzInfo[12][sbEntranceZ]))
						{//kafic na plazi
						    SBizzInfo[12][sbTill] += 15;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[13][sbEntranceX], SBizzInfo[13][sbEntranceY], SBizzInfo[13][sbEntranceZ]))
						{//burg caffe
						    SBizzInfo[13][sbTill] += 15;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[14][sbEntranceX], SBizzInfo[14][sbEntranceY], SBizzInfo[14][sbEntranceZ]))
						{//alhambra
						    SBizzInfo[14][sbTill] += 15;
						    OnPropUpdate();
						}
					}
     				else if(strcmp(x_nr,"vodka",true) == 0)
					{
					    if(PlayerInfo[playerid][pAge] < 18)
						{
						    SendClientMessage(playerid, COLOR_WHITE, "Konobar: Morate imati preko 18 godina da biste pili ovo pice.");
						    return 1;
						}
					    SafeJB_GivePlayerMoney(playerid, - 12);
					    PlayerDrunk[playerid] += 3;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						GetPlayerHealth(playerid, health);
						if(health < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 27; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 27.0); }
						}
						//biznisi
						if (PlayerToPoint(4, playerid,SBizzInfo[12][sbEntranceX], SBizzInfo[12][sbEntranceY], SBizzInfo[12][sbEntranceZ]))
						{//kafic na plazi
						    SBizzInfo[12][sbTill] += 12;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[13][sbEntranceX], SBizzInfo[13][sbEntranceY], SBizzInfo[13][sbEntranceZ]))
						{//burg caffe
						    SBizzInfo[13][sbTill] += 12;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[14][sbEntranceX], SBizzInfo[14][sbEntranceY], SBizzInfo[14][sbEntranceZ]))
						{//alhambra
						    SBizzInfo[14][sbTill] += 12;
						    OnPropUpdate();
						}
					}
     				else if(strcmp(x_nr,"jeger",true) == 0)
					{
					    if(PlayerInfo[playerid][pAge] < 18)
						{
						    SendClientMessage(playerid, COLOR_WHITE, "Konobar: Morate imati preko 18 godina da biste pili ovo pice.");
						    return 1;
						}
					    SafeJB_GivePlayerMoney(playerid, - 10);
					    PlayerDrunk[playerid] += 3;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						GetPlayerHealth(playerid, health);
						if(health < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 27; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 27.0); }
						}
						//biznisi
						if (PlayerToPoint(4, playerid,SBizzInfo[12][sbEntranceX], SBizzInfo[12][sbEntranceY], SBizzInfo[12][sbEntranceZ]))
						{//kafic na plazi
						    SBizzInfo[12][sbTill] += 10;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[13][sbEntranceX], SBizzInfo[13][sbEntranceY], SBizzInfo[13][sbEntranceZ]))
						{//burg caffe
						    SBizzInfo[13][sbTill] += 10;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[14][sbEntranceX], SBizzInfo[14][sbEntranceY], SBizzInfo[14][sbEntranceZ]))
						{//alhambra
						    SBizzInfo[14][sbTill] += 10;
						    OnPropUpdate();
						}
					}
     				else if(strcmp(x_nr,"tequila",true) == 0)
					{
					    if(PlayerInfo[playerid][pAge] < 18)
						{
						    SendClientMessage(playerid, COLOR_WHITE, "Konobar: Morate imati preko 18 godina da biste pili ovo pice.");
						    return 1;
						}
					    SafeJB_GivePlayerMoney(playerid, - 10);
					    PlayerDrunk[playerid] += 3;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						GetPlayerHealth(playerid, health);
						if(health < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 27; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 27.0); }
						}
						//biznisi
						if (PlayerToPoint(4, playerid,SBizzInfo[12][sbEntranceX], SBizzInfo[12][sbEntranceY], SBizzInfo[12][sbEntranceZ]))
						{//kafic na plazi
						    SBizzInfo[12][sbTill] += 10;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[13][sbEntranceX], SBizzInfo[13][sbEntranceY], SBizzInfo[13][sbEntranceZ]))
						{//burg caffe
						    SBizzInfo[13][sbTill] += 10;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[14][sbEntranceX], SBizzInfo[14][sbEntranceY], SBizzInfo[14][sbEntranceZ]))
						{//alhambra
						    SBizzInfo[14][sbTill] += 10;
						    OnPropUpdate();
						}
					}
     				else if(strcmp(x_nr,"rakija",true) == 0)
					{
					    if(PlayerInfo[playerid][pAge] < 18)
						{
						    SendClientMessage(playerid, COLOR_WHITE, "Konobar: Morate imati preko 18 godina da biste pili ovo pice.");
						    return 1;
						}
					    SafeJB_GivePlayerMoney(playerid, - 10);
					    PlayerDrunk[playerid] += 3;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						GetPlayerHealth(playerid, health);
						if(health < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 27; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 27.0); }
						}
						//biznisi
						if (PlayerToPoint(4, playerid,SBizzInfo[12][sbEntranceX], SBizzInfo[12][sbEntranceY], SBizzInfo[12][sbEntranceZ]))
						{//kafic na plazi
						    SBizzInfo[12][sbTill] += 10;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[13][sbEntranceX], SBizzInfo[13][sbEntranceY], SBizzInfo[13][sbEntranceZ]))
						{//burg caffe
						    SBizzInfo[13][sbTill] += 10;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[14][sbEntranceX], SBizzInfo[14][sbEntranceY], SBizzInfo[14][sbEntranceZ]))
						{//alhambra
						    SBizzInfo[14][sbTill] += 10;
						    OnPropUpdate();
						}
					}
					//kokteli
                    else if(strcmp(x_nr,"djus-vodka",true) == 0)
					{
					    if(PlayerInfo[playerid][pAge] < 18)
						{
						    SendClientMessage(playerid, COLOR_WHITE, "Konobar: Morate imati preko 18 godina da biste pili ovo pice.");
						    return 1;
						}
					    SafeJB_GivePlayerMoney(playerid, - 14);
					    PlayerDrunk[playerid] += 3;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						GetPlayerHealth(playerid, health);
						if(health < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 27; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 27.0); }
						}
						//biznisi
						if (PlayerToPoint(4, playerid,SBizzInfo[12][sbEntranceX], SBizzInfo[12][sbEntranceY], SBizzInfo[12][sbEntranceZ]))
						{//kafic na plazi
						    SBizzInfo[12][sbTill] += 14;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[13][sbEntranceX], SBizzInfo[13][sbEntranceY], SBizzInfo[13][sbEntranceZ]))
						{//burg caffe
						    SBizzInfo[13][sbTill] += 14;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[14][sbEntranceX], SBizzInfo[14][sbEntranceY], SBizzInfo[14][sbEntranceZ]))
						{//alhambra
						    SBizzInfo[14][sbTill] += 14;
						    OnPropUpdate();
						}
					}
                    else if(strcmp(x_nr,"sex-on-the-beach",true) == 0)
					{
					    if(PlayerInfo[playerid][pAge] < 18)
						{
						    SendClientMessage(playerid, COLOR_WHITE, "Konobar: Morate imati preko 18 godina da biste pili ovo pice.");
						    return 1;
						}
					    SafeJB_GivePlayerMoney(playerid, - 16);
					    PlayerDrunk[playerid] += 4;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						GetPlayerHealth(playerid, health);
						if(health < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 40; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 40.0); }
						}
						//biznisi
						if (PlayerToPoint(4, playerid,SBizzInfo[12][sbEntranceX], SBizzInfo[12][sbEntranceY], SBizzInfo[12][sbEntranceZ]))
						{//kafic na plazi
						    SBizzInfo[12][sbTill] += 16;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[13][sbEntranceX], SBizzInfo[13][sbEntranceY], SBizzInfo[13][sbEntranceZ]))
						{//burg caffe
						    SBizzInfo[13][sbTill] += 16;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[14][sbEntranceX], SBizzInfo[14][sbEntranceY], SBizzInfo[14][sbEntranceZ]))
						{//alhambra
						    SBizzInfo[14][sbTill] += 16;
						    OnPropUpdate();
						}
					}
     				else if(strcmp(x_nr,"zabice",true) == 0)
					{
					    if(PlayerInfo[playerid][pAge] < 18)
						{
						    SendClientMessage(playerid, COLOR_WHITE, "Konobar: Morate imati preko 18 godina da biste pili ovo pice.");
						    return 1;
						}
					    SafeJB_GivePlayerMoney(playerid, - 18);
					    PlayerDrunk[playerid] += 3;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						GetPlayerHealth(playerid, health);
						if(health < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 40; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 40.0); }
						}
						//biznisi
						if (PlayerToPoint(4, playerid,SBizzInfo[12][sbEntranceX], SBizzInfo[12][sbEntranceY], SBizzInfo[12][sbEntranceZ]))
						{//kafic na plazi
						    SBizzInfo[12][sbTill] += 18;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[13][sbEntranceX], SBizzInfo[13][sbEntranceY], SBizzInfo[13][sbEntranceZ]))
						{//burg caffe
						    SBizzInfo[13][sbTill] += 18;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[14][sbEntranceX], SBizzInfo[14][sbEntranceY], SBizzInfo[14][sbEntranceZ]))
						{//alhambra
						    SBizzInfo[14][sbTill] += 18;
						    OnPropUpdate();
						}
					}
     				else if(strcmp(x_nr,"zemljotres",true) == 0)
					{
					    if(PlayerInfo[playerid][pAge] < 18)
						{
						    SendClientMessage(playerid, COLOR_WHITE, "Konobar: Morate imati preko 18 godina da biste pili ovo pice.");
						    return 1;
						}
					    SafeJB_GivePlayerMoney(playerid, - 18);
					    PlayerDrunk[playerid] += 5;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						GetPlayerHealth(playerid, health);
						if(health < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 40; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 40.0); }
						}
						//biznisi
						if (PlayerToPoint(4, playerid,SBizzInfo[12][sbEntranceX], SBizzInfo[12][sbEntranceY], SBizzInfo[12][sbEntranceZ]))
						{//kafic na plazi
						    SBizzInfo[12][sbTill] += 18;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[13][sbEntranceX], SBizzInfo[13][sbEntranceY], SBizzInfo[13][sbEntranceZ]))
						{//burg caffe
						    SBizzInfo[13][sbTill] += 18;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[14][sbEntranceX], SBizzInfo[14][sbEntranceY], SBizzInfo[14][sbEntranceZ]))
						{//alhambra
						    SBizzInfo[14][sbTill] += 18;
						    OnPropUpdate();
						}
					}
     				else if(strcmp(x_nr,"tequila-sunrise",true) == 0)
					{
					    if(PlayerInfo[playerid][pAge] < 18)
						{
						    SendClientMessage(playerid, COLOR_WHITE, "Konobar: Morate imati preko 18 godina da biste pili ovo pice.");
						    return 1;
						}
					    SafeJB_GivePlayerMoney(playerid, - 15);
					    PlayerDrunk[playerid] += 3;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						GetPlayerHealth(playerid, health);
						if(health < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 40; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 40.0); }
						}
						//biznisi
						if (PlayerToPoint(4, playerid,SBizzInfo[12][sbEntranceX], SBizzInfo[12][sbEntranceY], SBizzInfo[12][sbEntranceZ]))
						{//kafic na plazi
						    SBizzInfo[12][sbTill] += 15;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[13][sbEntranceX], SBizzInfo[13][sbEntranceY], SBizzInfo[13][sbEntranceZ]))
						{//burg caffe
						    SBizzInfo[13][sbTill] += 15;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[14][sbEntranceX], SBizzInfo[14][sbEntranceY], SBizzInfo[14][sbEntranceZ]))
						{//alhambra
						    SBizzInfo[14][sbTill] += 15;
						    OnPropUpdate();
						}
					}
     				else if(strcmp(x_nr,"cosmopolitan",true) == 0)
					{
					    if(PlayerInfo[playerid][pAge] < 18)
						{
						    SendClientMessage(playerid, COLOR_WHITE, "Konobar: Morate imati preko 18 godina da biste pili ovo pice.");
						    return 1;
						}
					    SafeJB_GivePlayerMoney(playerid, - 20);
					    PlayerDrunk[playerid] += 2;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						GetPlayerHealth(playerid, health);
						if(health < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 40; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 40.0); }
						}
						//biznisi
						if (PlayerToPoint(4, playerid,SBizzInfo[12][sbEntranceX], SBizzInfo[12][sbEntranceY], SBizzInfo[12][sbEntranceZ]))
						{//kafic na plazi
						    SBizzInfo[12][sbTill] += 20;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[13][sbEntranceX], SBizzInfo[13][sbEntranceY], SBizzInfo[13][sbEntranceZ]))
						{//burg caffe
						    SBizzInfo[13][sbTill] += 20;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[14][sbEntranceX], SBizzInfo[14][sbEntranceY], SBizzInfo[14][sbEntranceZ]))
						{//alhambra
						    SBizzInfo[14][sbTill] += 20;
						    OnPropUpdate();
						}
					}
     				else if(strcmp(x_nr,"margarita",true) == 0)
					{
					    if(PlayerInfo[playerid][pAge] < 18)
						{
						    SendClientMessage(playerid, COLOR_WHITE, "Konobar: Morate imati preko 18 godina da biste pili ovo pice.");
						    return 1;
						}
					    SafeJB_GivePlayerMoney(playerid, - 20);
					    PlayerDrunk[playerid] += 3;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						GetPlayerHealth(playerid, health);
						if(health < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 40; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 40.0); }
						}
						//biznisi
						if (PlayerToPoint(4, playerid,SBizzInfo[12][sbEntranceX], SBizzInfo[12][sbEntranceY], SBizzInfo[12][sbEntranceZ]))
						{//kafic na plazi
						    SBizzInfo[12][sbTill] += 20;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[13][sbEntranceX], SBizzInfo[13][sbEntranceY], SBizzInfo[13][sbEntranceZ]))
						{//burg caffe
						    SBizzInfo[13][sbTill] += 20;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[14][sbEntranceX], SBizzInfo[14][sbEntranceY], SBizzInfo[14][sbEntranceZ]))
						{//alhambra
						    SBizzInfo[14][sbTill] += 20;
						    OnPropUpdate();
						}
					}
     				else if(strcmp(x_nr,"blue-lagoon",true) == 0)
					{
					    if(PlayerInfo[playerid][pAge] < 18)
						{
						    SendClientMessage(playerid, COLOR_WHITE, "Konobar: Morate imati preko 18 godina da biste pili ovo pice.");
						    return 1;
						}
					    SafeJB_GivePlayerMoney(playerid, - 15);
					    PlayerDrunk[playerid] += 2;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						GetPlayerHealth(playerid, health);
						if(health < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 40; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 40.0); }
						}
						//biznisi
						if (PlayerToPoint(4, playerid,SBizzInfo[12][sbEntranceX], SBizzInfo[12][sbEntranceY], SBizzInfo[12][sbEntranceZ]))
						{//kafic na plazi
						    SBizzInfo[12][sbTill] += 15;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[13][sbEntranceX], SBizzInfo[13][sbEntranceY], SBizzInfo[13][sbEntranceZ]))
						{//burg caffe
						    SBizzInfo[13][sbTill] += 15;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[14][sbEntranceX], SBizzInfo[14][sbEntranceY], SBizzInfo[14][sbEntranceZ]))
						{//alhambra
						    SBizzInfo[14][sbTill] += 15;
						    OnPropUpdate();
						}
					}
     				else if(strcmp(x_nr,"b-52",true) == 0)
					{
					    if(PlayerInfo[playerid][pAge] < 18)
						{
						    SendClientMessage(playerid, COLOR_WHITE, "Konobar: Morate imati preko 18 godina da biste pili ovo pice.");
						    return 1;
						}
					    SafeJB_GivePlayerMoney(playerid, - 20);
					    PlayerDrunk[playerid] += 4;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						GetPlayerHealth(playerid, health);
						if(health < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 40; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 40.0); }
						}
						//biznisi
						if (PlayerToPoint(4, playerid,SBizzInfo[12][sbEntranceX], SBizzInfo[12][sbEntranceY], SBizzInfo[12][sbEntranceZ]))
						{//kafic na plazi
						    SBizzInfo[12][sbTill] += 20;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[13][sbEntranceX], SBizzInfo[13][sbEntranceY], SBizzInfo[13][sbEntranceZ]))
						{//burg caffe
						    SBizzInfo[13][sbTill] += 20;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[14][sbEntranceX], SBizzInfo[14][sbEntranceY], SBizzInfo[14][sbEntranceZ]))
						{//alhambra
						    SBizzInfo[14][sbTill] += 20;
						    OnPropUpdate();
						}
					}
					//bezalkoholno
					else if(strcmp(x_nr,"voda",true) == 0)
					{
					    SafeJB_GivePlayerMoney(playerid, - 1);
						GetPlayerHealth(playerid, health);
					    if(health < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 5; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 30.0); }
						}
						else if(health > 100)
						{
						    SetPlayerHealth(playerid, 100);
						}
						//biznisi
						if (PlayerToPoint(4, playerid,SBizzInfo[12][sbEntranceX], SBizzInfo[12][sbEntranceY], SBizzInfo[12][sbEntranceZ]))
						{//kafic na plazi
						    SBizzInfo[12][sbTill] += 1;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[13][sbEntranceX], SBizzInfo[13][sbEntranceY], SBizzInfo[13][sbEntranceZ]))
						{//burg caffe
						    SBizzInfo[13][sbTill] += 1;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[14][sbEntranceX], SBizzInfo[14][sbEntranceY], SBizzInfo[14][sbEntranceZ]))
						{//alhambra
						    SBizzInfo[14][sbTill] += 1;
						    OnPropUpdate();
						}
					}
					else if(strcmp(x_nr,"fanta",true) == 0)
					{
					    SafeJB_GivePlayerMoney(playerid, - 2);
						GetPlayerHealth(playerid, health);
					    if(health < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 5; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 20.0); }
						}
						else if(health > 100)
						{
						    SetPlayerHealth(playerid, 100);
						}
						//biznisi
						if (PlayerToPoint(4, playerid,SBizzInfo[12][sbEntranceX], SBizzInfo[12][sbEntranceY], SBizzInfo[12][sbEntranceZ]))
						{//kafic na plazi
						    SBizzInfo[12][sbTill] += 2;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[13][sbEntranceX], SBizzInfo[13][sbEntranceY], SBizzInfo[13][sbEntranceZ]))
						{//burg caffe
						    SBizzInfo[13][sbTill] += 2;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[14][sbEntranceX], SBizzInfo[14][sbEntranceY], SBizzInfo[14][sbEntranceZ]))
						{//alhambra
						    SBizzInfo[14][sbTill] += 2;
						    OnPropUpdate();
						}
					}
					else if(strcmp(x_nr,"coca-cola",true) == 0)//radise
					{
					    SafeJB_GivePlayerMoney(playerid, - 2);
						GetPlayerHealth(playerid, health);
					    if(health < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 5; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 20.0); }
						}
						else if(health > 100)
						{
						    SetPlayerHealth(playerid, 100);
						}
						//biznisi
						if (PlayerToPoint(4, playerid,SBizzInfo[12][sbEntranceX], SBizzInfo[12][sbEntranceY], SBizzInfo[12][sbEntranceZ]))
						{//kafic na plazi
						    SBizzInfo[12][sbTill] += 2;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[13][sbEntranceX], SBizzInfo[13][sbEntranceY], SBizzInfo[13][sbEntranceZ]))
						{//burg caffe
						    SBizzInfo[13][sbTill] += 2;
						    OnPropUpdate();
						}
						else if (PlayerToPoint(4, playerid,SBizzInfo[14][sbEntranceX], SBizzInfo[14][sbEntranceY], SBizzInfo[14][sbEntranceZ]))
						{//alhambra
						    SBizzInfo[14][sbTill] += 2;
						    OnPropUpdate();
						}
					}
					else
					{
					    SendClientMessage(playerid, COLOR_WHITE, "Kelner: Nisam nikad cuo za to pice.");
					    return 1;
					}
					GetPlayerHealth(playerid, health);
					if (health > 100) SetPlayerHealth(playerid, 100);
					GetPlayerName(playerid, sendername, sizeof(sendername));
					format(string, sizeof(string), "* %s pije %s.", sendername ,x_nr);
					ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
	            }
	            else
	            {
	                SendClientMessage(playerid, COLOR_GREY, "   Ne smijete vise piti, povratit cete!");
	                return 1;
	            }
	        }
	        else if(PlayerToPoint(5, playerid, 1040.2201,-1166.1444,32.9297))
	        {
	            if(PlayerDrunk[playerid] < 10)
	            {
	                new Float:health;
	                new x_nr[256];
					x_nr = strtok(cmdtext, idx);
					if(!strlen(x_nr)) {
						SendClientMessage(playerid, COLOR_WHITE, "|____________________ Bar Pice ______________________|");
						SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /drink [drinkname]");
				  		SendClientMessage(playerid, COLOR_GREY, "Kafa: Cappuccino ($4), Latte($5), Macchiato($5)");
				  		SendClientMessage(playerid, COLOR_GREY, "Likeri: Limoncello($8), Amaretto($7), Martini($12)");
				  		SendClientMessage(playerid, COLOR_GREY, "Vino: Merlot ($15), Sangiovese($18), Frizzante($16)");
				  		SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Upozorenje! Od mnogo pica se dobija ostecenje jetre");
						SendClientMessage(playerid, COLOR_WHITE, "|______________________________________________________|");
						return 1;
					}
					else if(strcmp(x_nr,"cappuccino",true) == 0)
					{
						GetPlayerHealth(playerid, health);
						if(health < 100)
					    {
							SafeJB_GivePlayerMoney(playerid, - 4);
					        SetPlayerHealth(playerid, health + 30);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s pije cappucino iz solje.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    }
					}
					else if(strcmp(x_nr,"latte",true) == 0)
					{
						SafeJB_GivePlayerMoney(playerid, - 5);
				        SetPlayerHealth(playerid, health + 30);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s pije Caffe Latte.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					}
					else if(strcmp(x_nr,"macchiato",true) == 0)
					{
						SafeJB_GivePlayerMoney(playerid, - 5);
				        SetPlayerHealth(playerid, health + 30);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s pije Caffe Macchiato.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					}
				    else if(strcmp(x_nr,"limoncello",true) == 0)
					{
					    SafeJB_GivePlayerMoney(playerid, - 8);
					    PlayerDrunk[playerid] += 3;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						if(GetPlayerHealth(playerid, health) < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0)
							{
								PlayerDrunk[playerid] += 1;
								new hp = 2 * PlayerInfo[playerid][pAlcoholPerk];
								hp += 30;
								SetPlayerHealth(playerid, health + hp);
								format(string, sizeof(string), "* %s pije Limoncello.", sendername);
								ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
							}
							else
							{
								SetPlayerHealth(playerid, health + 30.0);
								format(string, sizeof(string), "* %s pije Limoncello.", sendername);
								ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
							}
						}
					}
				    else if(strcmp(x_nr,"amaretto",true) == 0)
					{
					    SafeJB_GivePlayerMoney(playerid, - 7);
					    PlayerDrunk[playerid] += 2;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						if(GetPlayerHealth(playerid, health) < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0)
							{
								PlayerDrunk[playerid] += 1;
								new hp = 2 * PlayerInfo[playerid][pAlcoholPerk];
								hp += 30;
								SetPlayerHealth(playerid, health + hp);
								format(string, sizeof(string), "* %s pije Amaretto.", sendername);
								ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
							}
							else
							{
								SetPlayerHealth(playerid, health + 30.0);
								format(string, sizeof(string), "* %s pije Amaretto.", sendername);
								ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
							}
						}
					}
				    else if(strcmp(x_nr,"martini",true) == 0)
					{
					    SafeJB_GivePlayerMoney(playerid, - 12);
					    PlayerDrunk[playerid] += 3;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						if(GetPlayerHealth(playerid, health) < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0)
							{
								PlayerDrunk[playerid] += 1;
								new hp = 2 * PlayerInfo[playerid][pAlcoholPerk];
								hp += 30;
								SetPlayerHealth(playerid, health + hp);
								format(string, sizeof(string), "* %s pije Martini.", sendername);
								ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
							}
							else
							{
								SetPlayerHealth(playerid, health + 30.0);
								format(string, sizeof(string), "* %s pije Martini.", sendername);
								ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
							}
						}
					}
				    else if(strcmp(x_nr,"merlot",true) == 0)
					{
					    SafeJB_GivePlayerMoney(playerid, - 15);
					    PlayerDrunk[playerid] += 2;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						if(GetPlayerHealth(playerid, health) < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0)
							{
								PlayerDrunk[playerid] += 1;
								new hp = 2 * PlayerInfo[playerid][pAlcoholPerk];
								hp += 30;
								SetPlayerHealth(playerid, health + hp);
								format(string, sizeof(string), "* %s pije Merlot.", sendername);
								ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
							}
							else
							{
								SetPlayerHealth(playerid, health + 30.0);
								format(string, sizeof(string), "* %s pije Merlot.", sendername);
								ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
							}
						}
					}
				    else if(strcmp(x_nr,"sangiovese",true) == 0)
					{
					    SafeJB_GivePlayerMoney(playerid, - 18);
					    PlayerDrunk[playerid] += 2;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						if(GetPlayerHealth(playerid, health) < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0)
							{
								PlayerDrunk[playerid] += 1;
								new hp = 2 * PlayerInfo[playerid][pAlcoholPerk];
								hp += 30;
								SetPlayerHealth(playerid, health + hp);
								format(string, sizeof(string), "* %s pije Sangiovese.", sendername);
								ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
							}
							else
							{
								SetPlayerHealth(playerid, health + 30.0);
								format(string, sizeof(string), "* %s pije Sangiovese.", sendername);
								ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
							}
						}
					}
				    else if(strcmp(x_nr,"frizzante",true) == 0)
					{
					    SafeJB_GivePlayerMoney(playerid, - 16);
					    PlayerDrunk[playerid] += 2;
						if(PlayerDrunk[playerid] >= 5) { GameTextForPlayer(playerid, "~w~Vi ste~n~~p~Pijani", 3500, 1); }
						if(GetPlayerHealth(playerid, health) < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0)
							{
								PlayerDrunk[playerid] += 1;
								new hp = 2 * PlayerInfo[playerid][pAlcoholPerk];
								hp += 30;
								SetPlayerHealth(playerid, health + hp);
								format(string, sizeof(string), "* %s pije Frizzante.", sendername);
								ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
							}
							else
							{
								SetPlayerHealth(playerid, health + 30.0);
								format(string, sizeof(string), "* %s pije Frizzante.", sendername);
								ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
							}
						}
					}
					GetPlayerHealth(playerid, health);
					if (health > 100) SetPlayerHealth(playerid, 100);
				}
	        }
	        else
	        {
	            SendClientMessage(playerid, COLOR_GREY, "   Niste u kaficu/za sankom!");
	            return 1;
	        }
	    }
	    return 1;
	}

Neke slike/video za lakse dobivanje pomoci(neobavezno): /
Respect : [TG]$--L84S--$,System32,[BD]Gagi_Corleone

if(IsAtBar(playerid)) to odredjuje gdje se komanda pokrece tj u baru samo umjesto tog stavi ovo if(IsPlayerInRangeOfPoint(playerid, 5, 1404.7249,-1040.3148,24.4018))

K4[Я]!K3

*

'Respect cannot be learned, it can only be earned.'

Kod: c
if(IsAtBar(playerid)) // samo tu dodas koordinate

ukucaj na CTRL+F  if(IsAtBar(playerid)) i sve ce ti bit jasno (:

Citat: sampzone poslato Jun 27, 2011, 15:13:17 POSLE PODNE
if(IsAtBar(playerid)) to odredjuje gdje se komanda pokrece tj u baru samo umjesto tog stavi ovo if(IsPlayerInRangeOfPoint(playerid, 5, 1404.7249,-1040.3148,24.4018))

onda mu nece radit na ostalim mjestima :/

pa nek doda jos mjesta jbt ja mu dao samo primjer kako da odredi pozicije na kojim on hoce!

Moze mi neko dati svoju komandu /naruci ovo mi izbaci mnogo errora i warninga.Mrzi me sve da copy/paste :S
Respect : [TG]$--L84S--$,System32,[BD]Gagi_Corleone

ajde ti nama copy paste i daj nam komandu kako si ti uradio tj kako si je prepravio!