[PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based)
#36

Under OnGameModeInit:
Code:
if(dini_Int(HouseFile(i), "Kaufbar") == 1)
				{
					//ChangeMapIconInfo(playerid,H_Icon[playerid][i], dini_Int(HouseFile(i), "x"),dini_Int(HouseFile(i),"y"),dini_Int(HouseFile(i), "z"), 31, 800);
					nIconDestroyForAll(H_Icon[i]);
					H_Icon[i] = nIconAddForAll(HausInfos[i][Hx],HausInfos[i][Hy],HausInfos[i][Hz],31);
					format(hinfo,255,"<font color=BLUE>%s</font> <font color=GREEN>steht zum Verkauf!</font><br><font color=BLUE>Preis:</font> <font color=RED>%d$</font> <font color=BLUE>Score:</font> <font color=RED>%d</font>",dini_Get(HouseFile(i), "Name"),dini_Int(HouseFile(i), "Preis"),dini_Int(HouseFile(i), "Score"));
					format(h2info,64,"%s ist frei",dini_Get(HouseFile(i), "Name"));
					addDmapIcon(HausInfos[i][Hx],HausInfos[i][Hy],31,h2info,hinfo);
				}
				else
				if(dini_Int(HouseFile(i), "Kaufbar") == 0)
				{
					//ChangeMapIconInfo(playerid,H_Icon[playerid][i], dini_Int(HouseFile(i), "x"),dini_Int(HouseFile(i),"y"),dini_Int(HouseFile(i), "z"), 32, 800);
					nIconDestroyForAll(H_Icon[i]);
					H_Icon[i] = nIconAddForAll(HausInfos[i][Hx],HausInfos[i][Hy],HausInfos[i][Hz],32);
					format(hinfo,255,"<font color=BLUE>%s</font> <font color=GREEN>geh&ouml;rt</font> <font color=RED>%s</font>",dini_Get(HouseFile(i), "Name"),dini_Get(HouseFile(i), "Besitzer"));
					format(h2info,64,"%s ist besetzt",dini_Get(HouseFile(i), "Name"));
					H_DIcon[i] = addDmapIcon(HausInfos[i][Hx],HausInfos[i][Hy],32,h2info,hinfo);
				}
addDmapIcon:
Code:
new DMAP_last_icon = 0;

stock addDmapIcon(Float:x,Float:y,icon_id,name[],text[])
{
		new tmp[DJSON_MAX_STRING];
		DMAP_last_icon++;

		format(tmp,DJSON_MAX_STRING,"items/i%d/id",DMAP_last_icon);
		djSetInt("dmap_feed.json",tmp,DMAP_last_icon);
		format(tmp,DJSON_MAX_STRING,"items/i%d/name",DMAP_last_icon);
		djSet("dmap_feed.json",tmp,name);
		format(tmp,DJSON_MAX_STRING,"items/i%d/text",DMAP_last_icon);
		djSet("dmap_feed.json",tmp,text);
		format(tmp,DJSON_MAX_STRING,"items/i%d/icon",DMAP_last_icon);
		djSetInt("dmap_feed.json",tmp,icon_id); //SetFloat
		format(tmp,DJSON_MAX_STRING,"items/i%d/pos/x",DMAP_last_icon);
		djSetInt("dmap_feed.json",tmp,floatround(x));
		format(tmp,DJSON_MAX_STRING,"items/i%d/pos/y",DMAP_last_icon);
		djSetInt("dmap_feed.json",tmp,floatround(y));
		return DMAP_last_icon;
}
Reply


Messages In This Thread
[PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by DracoBlue - 26.08.2008, 08:47
Re: [PHP+DJSON] DMap 0.1 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by |CrippinBloodDrippin| - 26.08.2008, 10:05
Re: [PHP+DJSON] DMap 0.1 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by DracoBlue - 26.08.2008, 10:12
Re: [PHP+DJSON] DMap 0.1 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by [IB]Scorcher - 26.08.2008, 12:53
Re: [PHP+DJSON] DMap 0.1 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by [M]deLux - 26.08.2008, 14:46
Re: [PHP+DJSON] DMap 0.1 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by BlueG - 26.08.2008, 15:08
Re: [PHP+DJSON] DMap 0.1 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by [M]deLux - 26.08.2008, 15:25
Re: [PHP+DJSON] DMap 0.1 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by DracoBlue - 26.08.2008, 15:26
Re: [PHP+DJSON] DMap 0.1 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by DracoBlue - 26.08.2008, 15:28
Re: [PHP+DJSON] DMap 0.1 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by [M]deLux - 26.08.2008, 15:31
Re: [PHP+DJSON] DMap 0.1 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by DracoBlue - 26.08.2008, 15:33
Re: [PHP+DJSON] DMap 0.1 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by winker2k6 - 28.08.2008, 00:06
Re: [PHP+DJSON] DMap 0.1 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by DracoBlue - 28.08.2008, 09:52
Re: [PHP+DJSON] DMap 0.1 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by sebihunter - 29.08.2008, 15:20
Re: [PHP+DJSON] DMap 0.1 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by JaTochNietDan - 29.08.2008, 15:26
Re: [PHP+DJSON] DMap 0.1 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by LethaL - 29.08.2008, 21:14
Re: [PHP+DJSON] DMap 0.2 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by DracoBlue - 31.08.2008, 16:57
Re: [PHP+DJSON] DMap 0.2 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by DracoBlue - 18.09.2008, 20:22
Re: [PHP+DJSON] DMap 0.2 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by Bpb - 19.09.2008, 08:17
Re: [PHP+DJSON] DMap 0.2 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by DracoBlue - 19.09.2008, 09:50
Re: [PHP+DJSON] DMap 0.2 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by Reamis - 21.09.2008, 08:28
Re: [PHP+DJSON] DMap 0.2 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by DracoBlue - 21.09.2008, 08:57
Re: [PHP+DJSON] DMap 0.2 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by Reamis - 21.09.2008, 12:00
Re: [PHP+DJSON] DMap 0.3 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by DracoBlue - 21.09.2008, 16:08
Re: [PHP+DJSON] DMap 0.3 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by Reamis - 21.09.2008, 16:30
Re: [PHP+DJSON] DMap 0.3 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by Reamis - 21.09.2008, 18:01
Re: [PHP+DJSON] DMap 0.3 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by DracoBlue - 21.09.2008, 18:06
Re: [PHP+DJSON] DMap 0.3 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by Reamis - 21.09.2008, 18:14
Re: [PHP+DJSON] DMap 0.3 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by DracoBlue - 21.09.2008, 18:32
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by papagei9 - 01.08.2009, 08:42
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by DracoBlue - 01.08.2009, 16:54
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by papagei9 - 01.08.2009, 18:06
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by DracoBlue - 02.08.2009, 17:49
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by papagei9 - 05.08.2009, 08:33
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by DracoBlue - 05.08.2009, 19:39
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by papagei9 - 06.08.2009, 09:43
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by DracoBlue - 06.08.2009, 18:50
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by papagei9 - 10.08.2009, 17:33
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by LuxurioN™ - 10.08.2009, 22:13
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by Scenario - 07.06.2010, 14:48
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by chaosnz - 09.06.2010, 12:21
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by Cedimedi - 11.06.2010, 21:22
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by Scenario - 12.06.2010, 00:12
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps ba - by Cedimedi - 12.06.2010, 08:28
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps ba - by Scenario - 12.06.2010, 09:26
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by WebScript - 13.06.2010, 13:21
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by lolumadd - 13.06.2010, 15:56
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by DracoBlue - 13.06.2010, 16:59
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by lolumadd - 13.06.2010, 17:23
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by [S]trong - 15.08.2011, 15:13
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by thimo - 02.01.2012, 17:03
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by royal_king - 02.01.2012, 17:17
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by Johndaonee - 15.01.2012, 01:12
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by Roperr - 12.03.2012, 19:01
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by InfinityGamerX - 18.04.2012, 10:59
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by Edu33 - 18.04.2012, 12:16
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by logoster - 28.04.2012, 16:44
Re : [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by dydjyz - 28.04.2012, 18:03
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by Knight_Rider - 28.04.2012, 18:12
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by Admigo - 11.09.2012, 16:25
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by czerwony03 - 21.03.2013, 16:06
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by iFear - 21.03.2013, 16:56
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by ball - 01.05.2013, 20:48
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by Guest123 - 04.05.2013, 08:29
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by Admigo - 08.08.2013, 20:26
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by Admigo - 14.08.2013, 20:33
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by Joe96 - 14.10.2013, 21:43
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by T-N-Z - 05.01.2014, 15:24
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by DreDasLT - 18.03.2014, 11:06
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by SkyLoKi - 25.03.2014, 06:35
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by Chilli9434 - 19.06.2014, 19:10
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by Brezon - 20.06.2014, 04:06
Re: [PHP+DJSON] DMap 0.4 - Dynamic Website Player/Car/Obj/Shop Map(******Maps based) - by ntmp - 08.08.2014, 11:57

Forum Jump:


Users browsing this thread: 8 Guest(s)