[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
#2

it says file or function not found, now what?
Reply
#3

Quote:
Originally Posted by sansko
View Post
it says file or function not found, now what?
On which line does it give you that ?
Reply
#4

Quote:
Originally Posted by sansko
View Post
it says file or function not found, now what?
You need incognito's stremaer plugin, do you have it?
Reply
#5

If you don't have it, download it from here!
Reply
#6

Quote:
Originally Posted by System64
View Post
You need incognito's stremaer plugin, do you have it?
He said File or Function not found, if he didn't have streamer, it would probably say "cannot read from file", unless he hasn't included streamer, and is automatically using CreateDynamicMapIcon.
Reply
#7

Thats my point i knew i needed it but it wasn't explained where to download. annoying for newer players
Reply
#8

Quote:
Originally Posted by sansko
View Post
Thats my point i knew i needed it but it wasn't explained where to download. annoying for newer players
Quote:
Originally Posted by Santox14
View Post
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(...)

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 <[SIZE="5"]streamer[/SIZE]>
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!
Its not his fault you need glasses.
Reply
#9

He only says i need it, i see nowhere where i can find it
Reply
#10

Quote:
Originally Posted by sansko
View Post
it says file or function not found, now what?
or use this to add map icons https://sampwiki.blast.hk/wiki/SetPlayerMapIcon
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)