26.08.2008, 08:47
(
Последний раз редактировалось DracoBlue; 23.07.2010 в 21:01.
)
Hello,
since it's pretty difficult to get ******Maps working with flat maps and with samp, I took some time and put djson together with ****** maps and a small php-config-file: dmap was born!
Links:
- @requires djson >=1.5.2
- Download: 2,4MB (Source+Map+Icons)
- Demo: EveryStuff, GTA:Tournament
- HowTo: Add Shop/Extra icons
Its published under MIT-License. Use it, love it, hack it, sell it!
The architecture of dmap is made that way, that you can display anything at that page.
Just add an items element with icon!, text!, name!, id! and pos/x and pos/y in your gamemode to dmap_feed.json and you'll have a marker on the website! If you need _any_ help extending dmap, post here!
How to get it running?
1. Add dmap_GameModeInit() in your GameModeInit and dmap_GameModeExit() in your GameModeExit.
2. Recompile the GameMode!
3. Create a folder at your website. Sign up for a ******-Api-Key for that website address.
4. Copy all files from htdocs to the new website folder you created.
5. Configure config.inc.php that way, that the api-key is yours, and the "data feed" config points directly to your scriptfiles folder.
6. Have fun!
My scriptfiles/dmap_feed.json is not created!?
If you properly added dmap to your gamemode, launching it, should result in the following text:
If it doesn't: Doublecheck your gamemode, recompile it and run again! The file dmap_feed.json should appear right after that intro.
- Draco
since it's pretty difficult to get ******Maps working with flat maps and with samp, I took some time and put djson together with ****** maps and a small php-config-file: dmap was born!
Links:
- @requires djson >=1.5.2
- Download: 2,4MB (Source+Map+Icons)
- Demo: EveryStuff, GTA:Tournament
- HowTo: Add Shop/Extra icons
Its published under MIT-License. Use it, love it, hack it, sell it!
The architecture of dmap is made that way, that you can display anything at that page.
Just add an items element with icon!, text!, name!, id! and pos/x and pos/y in your gamemode to dmap_feed.json and you'll have a marker on the website! If you need _any_ help extending dmap, post here!
How to get it running?
1. Add dmap_GameModeInit() in your GameModeInit and dmap_GameModeExit() in your GameModeExit.
2. Recompile the GameMode!
3. Create a folder at your website. Sign up for a ******-Api-Key for that website address.
4. Copy all files from htdocs to the new website folder you created.
5. Configure config.inc.php that way, that the api-key is yours, and the "data feed" config points directly to your scriptfiles folder.
6. Have fun!
My scriptfiles/dmap_feed.json is not created!?
If you properly added dmap to your gamemode, launching it, should result in the following text:
Код:
<dmap> DMap 0.3 // © 2008 DracoBlue // http://www.dracoblue.net <dmap> Loading ... <dmap> .. done!
- Draco