[Tutorial] How to create Map icons
#1

hi i show you how to create "Icons" on the Mini Map.


We will create the "Icons" with a Streamer , its much easier as
pawn Code:
SetPlayerMapIcon(...)
Streamer Download : https://sampforum.blast.hk/showthread.php?tid=102865


First we need to add "plugins" in our Server.cfg

Example:

echo Executing Server Config...
lanmode 0
rcon_password test
maxplayers 32
port 7777
hostname SA-MP 0.3 Server
gamemode0 Crimestreetz 1
filterscripts iAnims
announce 0
plugins streamer <----- [You need to add this]
query 1
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 1
logtimeformat [%H:%M:%S]

You need to create a new folder in your SA:MP Server folder you need to name it "plugins" and put the Streamer.dll and Streamer.so files in it.

Okay if you got that we can start

Start your Server or SA:MP Debug and go to the Position where you want your map Icon! i take CJ's house now

CJ's house = 2493.9509,-1689.5286,13.5255
X Y Z

Okay on the Top of our Script we need the "Streamer" Include :

pawn Code:
#include <streamer>
Okay now go to:

pawn Code:
public OnGameModeInit()
{
    return 1;
}
Okay now add this unde OnGameModeInit:
pawn Code:
CreateDynamicMapIcon(2493.9509,-1689.5286,13.5255, 15, -1, -1, -1, -1, 100);
return 1;
the "100" means how for away you can see the Icon and the 2493.9509,-1689.5286,13.5255 are the coordinates for your Icon and the "15" is the Icon for example CJ Icon : https://sampwiki.blast.hk/wiki/MapIcons

Hope this will help to Create Icons!
Reply


Messages In This Thread
How to create Map icons - by Santox14 - 04.11.2011, 19:49
Re: How to create Map icons - by sansko - 04.11.2011, 20:39
Re: How to create Map icons - by =WoR=G4M3Ov3r - 04.11.2011, 21:05
Re: How to create Map icons - by System64 - 04.11.2011, 21:10
Re: How to create Map icons - by Kostas' - 04.11.2011, 21:11
Re: How to create Map icons - by =WoR=G4M3Ov3r - 04.11.2011, 21:12
Re: How to create Map icons - by sansko - 04.11.2011, 21:20
Re: How to create Map icons - by =WoR=G4M3Ov3r - 04.11.2011, 21:22
Re: How to create Map icons - by sansko - 04.11.2011, 21:26
Re: How to create Map icons - by Hellman92 - 04.11.2011, 23:15

Forum Jump:


Users browsing this thread: 6 Guest(s)