[POMOC]EQUIP


Započeo Tommy_Vercetty, Maj 02, 2016, 18:44:11 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: moja
Detaljan opis problema: treba mi pomoc oko equipa stavicu sliku dole pa ako moze neko pomoc kako da odradim
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno): http://prntscr.com/azg459
CMD:equip(playerid, params[]) // ByHamZa
{
	if(IsPlayerConnected(playerid))
	{
		new string[128],sendername[MAX_PLAYER_NAME];
		GetPlayerName(playerid, sendername,sizeof(sendername));
		if((PlayerInfo[playerid][pMember] == 19  ||  PlayerInfo[playerid][pLeader] == 19) && IsPlayerInRangeOfPoint(playerid, 2,2336.7620,-1135.0751,1050.7101)
		 || (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) && IsPlayerInRangeOfPoint(playerid, 2,1271.4515,-796.2720,1084.1719)
		 || (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) && IsPlayerInRangeOfPoint(playerid, 2,2556.5193,-1305.2424,1060.9844)
		 || (PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21) && IsPlayerInRangeOfPoint(playerid, 2,958.2475,-53.6183,1001.1172)
		 || (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) && IsPlayerInRangeOfPoint(playerid, 2,958.2475,-53.6183,1001.1172)
		 || (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) && IsPlayerInRangeOfPoint(playerid, 2,1464.4586,-1419.7827,23.1559)
		 || (PlayerInfo[playerid][pMember] == 23 ||  PlayerInfo[playerid][pLeader] == 23) && IsPlayerInRangeOfPoint(playerid, 2,2336.7620,-1135.0751,1050.7101))
		{
				new sapdequip[] = "1\tSawnoff\n2\tKokteli\n3\tSniper i Combat\n4\tBombe\n5\tArmor";
				ShowPlayerDialog(playerid,53,DIALOG_STYLE_LIST,"Oruzje:",sapdequip,"Izaberite","Otkazi");
				return 1;
		}
         if((PlayerInfo[playerid][pMember] == 25  ||  PlayerInfo[playerid][pLeader] == 25) && IsPlayerInRangeOfPoint(playerid, 2,883.3781,-1613.3295,-28.6752)
		 || (PlayerInfo[playerid][pMember] == 22 ||  PlayerInfo[playerid][pLeader] == 22) && IsPlayerInRangeOfPoint(playerid, 2,1740.0681,-1889.1855,-8.5223))
		{

				if((PlayerInfo[playerid][pMember] == 22 ||  PlayerInfo[playerid][pLeader] == 22))
				{
					new sapdequip[] = "1\tSawnoff\n2\tKokteli\n3\tSniper i Combat\n4\tBombe\n5\tArmor";
					ShowPlayerDialog(playerid,59,DIALOG_STYLE_LIST,"Oruzje:",sapdequip,"Izaberite","Otkazi");
				}
				else if((PlayerInfo[playerid][pMember] == 25 ||  PlayerInfo[playerid][pLeader] == 25))
				{
					new sapdequip[] = "1\tSawnoff\n2\tKokteli\n3\tSniper i Combat\n4\tBombe\n5\tArmor";
					ShowPlayerDialog(playerid,59,DIALOG_STYLE_LIST,"Oruzje:",sapdequip,"Izaberite","Otkazi");
				}
				return 1;
		}
         if((PlayerInfo[playerid][pMember] == 24  ||  PlayerInfo[playerid][pLeader] == 24) && IsPlayerInRangeOfPoint(playerid, 2,31.32,1404.22,1084.42)
		 || (PlayerInfo[playerid][pMember] == 20 ||  PlayerInfo[playerid][pLeader] == 20) && IsPlayerInRangeOfPoint(playerid, 2,1740.0613,-1889.4319,-8.5223))
		{

				if((PlayerInfo[playerid][pMember] == 20 ||  PlayerInfo[playerid][pLeader] == 20))
				{
					new sapdequip[] = "1\tSawnoff\n2\tKokteli\n3\tSniper i Combat\n4\tBombe\n5\tArmor";
					ShowPlayerDialog(playerid,54,DIALOG_STYLE_LIST,"Oruzje:",sapdequip,"Izaberite","Otkazi");
				}
				else if((PlayerInfo[playerid][pMember] == 24 ||  PlayerInfo[playerid][pLeader] == 24))
				{
					new sapdequip[] = "1\tSawnoff\n2\tKokteli\n3\tSniper i Combat\n4\tBombe\n5\tArmor";
					ShowPlayerDialog(playerid,54,DIALOG_STYLE_LIST,"Oruzje:",sapdequip,"Izaberite","Otkazi");
				}
				return 1;
		}
		if(PlayerInfo[playerid][pDuty] == 0)
		{
			SCM(playerid,COLOR_GREY,"** Niste na duznosti (/duty)!");
			return 1;
		}
		if(IsPlayerInRangeOfPoint(playerid, 6, 1211.3840,-1686.2323,-39.7341))//SAPD Lockers
		{
			if(PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1 && PlayerInfo[playerid][pMember] != 22 && PlayerInfo[playerid][pLeader] != 22)
			{
				SCM(playerid,COLOR_GREY,"** This Refill Point is Only for the SAPD");
				return 1;
			}
			new sapdequip[] = "1\tCadet Patrol\n2\tOfficer Patrol\n3\tDetektiv Patrol\n4\tMotorcyclist Patrol\n5\tStandard SWAT\n6\tMedium SWAT\n7\tHeavy SWAT\n8\tSharpshooter SWAT\n9\tArmour+Health\n10\tCeremonial Uniform\n11\tDefault\n12\tHigher Ranked";
			ShowPlayerDialog(playerid,50,DIALOG_STYLE_LIST,"List of Equips:",sapdequip,"Izaberite","Otkazi");
			SCM(playerid, COLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING, Each Item needs it's Specified Rank!");
		}
		else if(IsPlayerInRangeOfPoint(playerid, 6, 223.6328,186.8251,1003.0313))//FBI Lockers (Library)
		{
			if(PlayerInfo[playerid][pMember] != 2 && PlayerInfo[playerid][pLeader] != 2)
			{
				SCM(playerid,COLOR_GREY,"** This Refill Point is Only for the FBI");
				return 1;
			}
			new fbiequip[] = "1\tCadet Equipment\n2\tAgent Equipment\n3\tWatching Equipment\n4\tSpy Equipment\n5\tStandard Tactical\n6\tMedium Tactical\n7\tHeavy Tactical\n8\tSharpshooter Tactical\n9\tArmour+Health\n10\tCeremonial Suit\n11\tDefault\n12\tHigher Ranked";
			ShowPlayerDialog(playerid,51,DIALOG_STYLE_LIST,"List of Equips:",fbiequip,"Izaberite","Otkazi");
			SCM(playerid, COLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING, Each Item needs it's Specified Rank!");
		}
		else if(IsPlayerInRangeOfPoint(playerid, 6, 233.4989,123.6518,1003.2188))//Army Lockers
		{
			if(PlayerInfo[playerid][pMember] != 3 && PlayerInfo[playerid][pLeader] != 3)
			{
				SCM(playerid,COLOR_GREY,"** This Refill Point is Only for the Army");
				return 1;
			}
			new armyequip[] = "1\tPrivate Equipment\n2\tSergeant Equipment\n3\tWatching Equipment\n4\tSpy Equipment\n5\tStandard Special Forces\n6\tMedium Special Forces\n7\tHeavy Special Forces\n8\tSniper Tactical\n9\tArmour+Health\n10\tCeremonial Suit\n11\tDefault\n12\tHigher Ranked";
			ShowPlayerDialog(playerid,52,DIALOG_STYLE_LIST,"List of Equips:",armyequip,"Izaberite","Otkazi");
			SCM(playerid, COLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING, Each Item needs it's Specified Rank!");
		}
		new y, m, d;
		new h,mi,s;
		getdate(y,m,d);
		gettime(h,mi,s);
		format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /equip %d",d,m,y,h,mi,s,sendername, params);
		CommandLog(string);
	}
	return 1;
}

#define DIALOG_STYLE_TABLIST_HEADERS 5


         if((PlayerInfo[playerid][pMember] == ID ORG ||  PlayerInfo[playerid][pLeader] == ID ORG))
	{
	        new sapdequip[] =
                "Oruzije\tCijena\tKolicina\n" \
                "Puska 1\t$2000\t150\n" \
                "Puska 2\t$5000\t3\n" \
	        "Puska 3\t$3000\t80\n" \
                "Puska 4\t$8000\t3\n" \
                "Armor\t$150\t99%\n";
	         ShowPlayerDialog(playerid,ID DIALOGA,DIALOG_STYLE_TABLIST_HEADERS,"Equip",sapdequip,"Izaberite","Otkazi");
          }

My PC:
# Procesor: AMD FX-8350 (8 x 4,0 GHz)
# Matična ploča: Asus M5A78M-M LX3
# Memorija: Kingston Fury 8 GB 1600 MHz
# Hard disk: Seagate / WD 500 GB
# Grafička kartica: GTX750-Ti 2 GB GDDR5
# Windows 8.1 64-Bit

@HamZaa dzabe stavljaš u string kad možeš direktno u Dialog, ne citate šta piše u WikiPediji..

https://wiki.sa-mp.com/wiki/Dialog_Styles

ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_TABLIST_HEADERS, "Buy Weapon",
"Weapon\tPrice\tAmmo\n\
Deagle\t$5000\t100\n\
Sawnoff\t$5000\t100\n\
Pistol\t$1000\t50", // Etc.
"Select", "Cancel");


http://i.imgur.com/7vPBuPp.jpg