07.07.2016, 15:17
pawn Код:
#define MAX_UTILITY_ICONS 5
enum iStats
{
IconType,
Name[32],
Float: PosX,
Float: PosY
}
new IconStats[MAX_UTILITY_ICONS][iStats] =
{
{30, "Stazione di Polizia", 1555.5010, -1675.5059},
{27, "Meccanico", 1020.8634, -946.8834},
{22, "Ospedale", 1172.4628, -1325.2550},
{55, "Concessionario", 1746.4307, -1405.1475},
{44, "Gelataio", 327.9598, -1806.7832}
};
public OnPlayerConnect(playerid)
{
for(new iconid; iconid < MAX_UTILITY_ICONS; iconid++)
{
RemovePlayerMapIcon(playerid, iconid);
new str[128];
format(str, sizeof(str), "Icona: %s (%d) X: %0.2f | Y: %0.2f | Marker: %d", IconStats[iconid][Name], iconid, IconStats[iconid][PosX], IconStats[iconid][PosY], IconStats[iconid][IconType]);
SendClientMessage(playerid, COLOR_ROSSO, str);
SetPlayerMapIcon(playerid, iconid, IconStats[iconid][PosX], IconStats[iconid][PosY], 0.0, IconStats[iconid][IconType], 0);
}
}
PS: I have not others icons in the map