SetPlayerMapIcon(playerid, 0, 1153.9777, -1762.2749, 14.5659, 52, 0); // Banco
SetPlayerMapIcon(playerid, 1, 1364.6578, -1279.6810, 13.5469, 6, 0); // Ammunation
SetPlayerMapIcon(playerid, 2, 2244.6306, -1664.5750, 15.4766, 45, 0); // Skin
SetPlayerMapIcon(playerid, 3, 1631.7791, -1171.7014, 24.0781, 25, 0); // Loteria
SetPlayerMapIcon(playerid, 4, 1847.2454, -1871.7253, 13.5781, 26, 0); // Utilitarios
SetPlayerMapIcon(playerid, 5, 2370.2754, -1034.9868, 54.4106, 24, 0); // Drogas
SetPlayerMapIcon(playerid, 6, 432.2299, -1646.1122, 25.7049, 21, 0); // Farmacia
SetPlayerMapIcon(playerid, 7, 2764.0537, -2387.8298, 13.6328, 51, 0); // Carregar
SetPlayerMapIcon(playerid, 8, -2462.6372, 2268.0908, 4.7966, 51, 0); // Descarregar
SetPlayerMapIcon(playerid, 9, 1835.3776, -1682.4978, 13.3923, 48, 0 ); // Alhambra
public OnPlayerConnect(playerid)//Coloca na Public OnPlayerConnect
{
SetPlayerMapIcon(playerid, 0, 1153.9777, -1762.2749, 14.5659, 52, 0xE6E6E6E6); // Banco
SetPlayerMapIcon(playerid, 1, 1364.6578, -1279.6810, 13.5469, 6, 0xE6E6E6E6); // Ammunation
SetPlayerMapIcon(playerid, 2, 2244.6306, -1664.5750, 15.4766, 45, 0xE6E6E6E6); // Skin
SetPlayerMapIcon(playerid, 3, 1631.7791, -1171.7014, 24.0781, 25, 0xE6E6E6E6); // Loteria
SetPlayerMapIcon(playerid, 4, 1847.2454, -1871.7253, 13.5781, 26, 0xE6E6E6E6); // Utilitarios
SetPlayerMapIcon(playerid, 5, 2370.2754, -1034.9868, 54.4106, 24, 0xE6E6E6E6); // Drogas
SetPlayerMapIcon(playerid, 6, 432.2299, -1646.1122, 25.7049, 21, 0xE6E6E6E6); // Farmacia
SetPlayerMapIcon(playerid, 7, 2764.0537, -2387.8298, 13.6328, 51, 0xE6E6E6E6); // Carregar
SetPlayerMapIcon(playerid, 8, -2462.6372, 2268.0908, 4.7966, 51, 0xE6E6E6E6); // Descarregar
SetPlayerMapIcon(playerid, 9, 1835.3776, -1682.4978, 13.3923, 48, 0xE6E6E6E6 ); // Alhambra
}
PHP код:
|
SetPlayerMapIcon(playerid, 0, 1153.9777, -1762.2749, 14.5659, 52, 0, MAPICON_LOCAL); // Banco
Obrigado, irei testar...
Mas vocк poderia me dizer o porque do 0xE6E6E6E6 ? |
errado ainda ^^
0: MAPICON_LOCAL Display in the player's local area - Exibir no local do jogador 1: MAPICON_GLOBAL Display always - Mostrar sempre 2: MAPICON_LOCAL_CHECKPOINT Display in the player's local area and has a checkpoint marker - Exibir no local do jogador e tem um marcador checkpoint 3: MAPICON_GLOBAL_CHECKPOINT Display always and has a checkpoint marker - Exibir sempre e tem um marcador checkpoint Ex: pawn Код:
|
//-----------------------------//
SetPlayerMapIcon( playerid, 12, 2204.9468, 1986.2877, 16.7380, 52, 0, MAPICON_LOCAL );
//--------[ Significa cada coisa ]
playerid The ID of the player to set the map icon for.
iconid The player's icon ID, ranging from 0 to 99, to be used in RemovePlayerMapIcon.
Float:x The X coordinate of the place where you want the icon to be.
Float:y The Y coordinate of the place where you want the icon to be.
Float:z The Z coordinate of the place where you want the icon to be.
markertype The icon to set.
color The color of the icon, this should only be used with the square icon (ID: 0).
style See Below