"Trebam nešto" - tema


Započeo Correlli, Jul 30, 2010, 15:11:25 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.


Trebam GF preveden barem 90% jer sam sjebao svoj citav ravens mod i krecem sa GF...
Pokusao sma naci ali nema




Treba mi TuT za Donator System......

Hvala.
â"Œâˆ©â"(â—•_â—•)â"Œâˆ©â"

Respect to: (à¥"_à¥") - ČιѕÑ,σ яÑ"кяÑ"αÑ,ινησ - (à¥"_à¥") , [Saw]BloodMaster

â"Œâˆ©â"(â—£_â—¢)â"Œâˆ©â"

Treba mi nesto slicno ovome ali da radi : Klick

trebala bi mi komanda
/drink
nemogu je nadejm an forumu.hvala

Citat: Kazzy10 poslato Novembar 04, 2010, 21:38:17 POSLE PODNE
trebala bi mi komanda
/drink
nemogu je nadejm an forumu.hvala

if(strcmp(cmd, "/drink", 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_GREEN, "¤¤¤¤¤¤¤¤ Meni Pica ¤¤¤¤¤¤¤¤");
						SendClientMessage(playerid, COLOR_WHITE, "Komanda: /drink [ime pica]");
				  		SendClientMessage(playerid, COLOR_GREY, "Moguca imena: Pivo ($6), Vodka ($10), Viski ($10), Voda ($2), Pepsi ($2)");
						SendClientMessage(playerid, COLOR_GREEN, "¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤");
						return 1;
					}
				    if(strcmp(x_nr,"pivo",true) == 0)
					{
 						if(PlayerInfo[playerid][pAge] < 1)
						{
						    SendClientMessage(playerid, COLOR_WHITE, "Konobar: Oprostite, morate imati najmanje 16 godina da bi pili alkoholna pica.");
						    return 1;
						}
					    GivePlayerMoney(playerid, - 6);
					    PlayerDrunk[playerid] += 1;
						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 += 15; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 15.0); }
						}
					}
					else if(strcmp(x_nr,"vodka",true) == 0)
					{
					    if(PlayerInfo[playerid][pAge] < 18)
						{
						    SendClientMessage(playerid, COLOR_WHITE, "Konobar: Morate imati najmanje 16 godina da biste pili alkohol.");
						    return 1;
						}
					    GivePlayerMoney(playerid, - 10);
					    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 += 25; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 25.0); }
						}
					}
					else if(strcmp(x_nr,"viski",true) == 0)
					{
					    if(PlayerInfo[playerid][pAge] < 18)
						{
						    SendClientMessage(playerid, COLOR_WHITE, "Konobar: Morate imati najmanje 16 godina da biste pili alkohol.");
						    return 1;
						}
					    GivePlayerMoney(playerid, - 10);
					    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 += 27; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 27.0); }
						}
					}
					else if(strcmp(x_nr,"voda",true) == 0)
					{
					    GivePlayerMoney(playerid, - 2);
					    if(GetPlayerHealth(playerid, health) < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 5; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 5.0); }
						}
					}
					else if(strcmp(x_nr,"pepsi",true) == 0)
					{
					    GivePlayerMoney(playerid, - 2);
					    if(GetPlayerHealth(playerid, health) < 100)
						{
						    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { new hp = 2 * PlayerInfo[playerid][pAlcoholPerk]; hp += 5; SetPlayerHealth(playerid, health + hp); }
							else { SetPlayerHealth(playerid, health + 5.0); }
						}
					}
					else
					{
					    SendClientMessage(playerid, COLOR_WHITE, "Konobar: Neznam za to pice.");
					    return 1;
					}
					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, "   Nemozes vise piti, povratit ces !");
	                return 1;
	            }
	        }
	        else
	        {
	            SendClientMessage(playerid, COLOR_GREY, "   Niste u baru !");
	            return 1;
	        }
	    }
	    return 1;
	}
â"Œâˆ©â"(â—•_â—•)â"Œâˆ©â"

Respect to: (à¥"_à¥") - ČιѕÑ,σ яÑ"кяÑ"αÑ,ινησ - (à¥"_à¥") , [Saw]BloodMaster

â"Œâˆ©â"(â—£_â—¢)â"Œâˆ©â"


Samo ovo nadodaj


Kod: c
if(PlayerToPoint(Radius,playerid,X,Y,Z))
{
Poslednja Izmena: Novembar 05, 2010, 10:36:01 PRE PODNE od Ante_Dracar aka Lopa


pa normalno da ce ti izbaciti errore

trebas umjesto
if(IsAtBar(playerid))
staviti
if(IsPlayerInRangeOfPoint(playerid, 10, 1300.9757,1237.7192,19.3438))// 10 =radius , ostali brojevi x,y,z...

Evo neznam dali ce ti ovo pomoci ja msm da je ovo za dm skriptu znaci sve komplet... jako dobro objasnjeno i sve jasno... Procitaj i od ovoga svi pocetnici i krenu... Opet je onaj isti sistem / sranje/ moras sacekat pet sekundi pa ici na skip ad u desnom gornjem cosku ....

http://adf.ly/AR30

uZIvaj
Kada se kunem majkom mozda lazem, ali kada se kunem ocem govorim 100 % istinu! Majke mi!

trebala bi mi komanda
/getarmour

znaci igrac dode na odredenu tocku i uzme armour tom komandom

if(strcmp(cmdtext,"/getarmour",true)==0)
{
SetPlayerArmour(playerid,100);
return 1;
}

???

i jos dodam onaj IsPlayerInRangeOfPoint
Poslednja Izmena: Novembar 05, 2010, 12:18:10 POSLE PODNE od Kazzy10

if(strcmp(cmdtext,"/getarmour",true)==0)
{
if(IsPlayerInRangeOfPoint(playerid, 10, 1300.9757,1237.7192,19.3438))
{
SetPlayerArmour(playerid,100);
}
SendClientMessage(playerid,"Nista na mjestu za armour");
return 1;
}


eto ti primjer..