04.11.2011, 19:49
(
Last edited by Santox14; 05/11/2011 at 08:41 AM.
)
hi i show you how to create "Icons" on the Mini Map.
We will create the "Icons" with a Streamer , its much easier as
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 :
Okay now go to:
Okay now add this unde OnGameModeInit:
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!
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 <streamer>
pawn Code:
public OnGameModeInit()
{
return 1;
}
pawn Code:
CreateDynamicMapIcon(2493.9509,-1689.5286,13.5255, 15, -1, -1, -1, -1, 100);
return 1;
Hope this will help to Create Icons!