Map Icons
#1

hey.. this is part of my: OnPlayerConnect

pawn Код:
public OnPlayerConnect(playerid)
{
    SetPlayerMapIcon( playerid, 1, 1628.6899,-1903.3833,13.5533, 55, 0, MAPICON_LOCAL ); // DMV
    SetPlayerMapIcon( playerid, 2, 1154.1097,-1772.0492,16.5992, 20, 0, MAPICON_LOCAL ); // LSFD
    SetPlayerMapIcon( playerid, 3, 1181.9185,-1324.9333,13.5828, 22, 0, MAPICON_LOCAL ); // LSMD
    SetPlayerMapIcon( playerid, 4, 1948.9819,-1985.1008,13.5469, 49, 0, MAPICON_LOCAL ); // Vatos Locos Mexicanos
    SetPlayerMapIcon( playerid, 5, 2421.4934,-1219.2512,25.5613, 48, 0, MAPICON_LOCAL ); // Le Sangre Pig Pen
    SetPlayerMapIcon( playerid, 6, 998.8512,-1130.9669,23.8281, 44, 0, MAPICON_LOCAL ); // Triads Casino
    SetPlayerMapIcon( playerid, 7, 574.9641,-1385.9547,14.3303, 50, 0, MAPICON_LOCAL ); // Santino's Restaurant
well.. it doesnt work for some raseon...
anyone knows what's wrong?
thanks
Reply
#2

Quote:

0: MAPICON_LOCAL Display in the player's local area
1: MAPICON_GLOBAL Display always // <-- you need this one
2: MAPICON_LOCAL_CHECKPOINT Display in the player's local area and has a checkpoint marker
3: MAPICON_GLOBAL_CHECKPOINT Display always and has a checkpoint marker

You should use MAPICON_GLOBAL to see it everywhere
Reply
#3

Man.. I'm not stupid to that level...
When I'm next to it I dont see it! I dont need it global........
Reply
#4

maybe it works if you put it in OnPlayerSpawn?
Reply
#5

PHP код:
public OnPlayerConnect(playerid)
{
    
SetPlayerMapIconplayerid11628.6899,-1903.3833,13.553355); // DMV
    
SetPlayerMapIconplayerid21154.1097,-1772.0492,16.599220); // LSFD
    
SetPlayerMapIconplayerid31181.9185,-1324.9333,13.582822); // LSMD
    
SetPlayerMapIconplayerid41948.9819,-1985.1008,13.546949); // Vatos Locos Mexicanos
    
SetPlayerMapIconplayerid52421.4934,-1219.2512,25.561348); // Le Sangre Pig Pen
    
SetPlayerMapIconplayerid6998.8512,-1130.9669,23.828144); // Triads Casino
    
SetPlayerMapIconplayerid7574.9641,-1385.9547,14.330350); // Santino's Restaurant 
There is absolutely no need to use the last parameter in the SetPlayerMapIcon native.

SetPlayerMapIcon(playerid, iconid, Float, Float:y, Float:z, markertype, color, style)
Reply
#6

Quote:
Originally Posted by =WoR=G4M3Ov3r
Посмотреть сообщение
PHP код:
public OnPlayerConnect(playerid)
{
    
SetPlayerMapIconplayerid11628.6899,-1903.3833,13.553355); // DMV
    
SetPlayerMapIconplayerid21154.1097,-1772.0492,16.599220); // LSFD
    
SetPlayerMapIconplayerid31181.9185,-1324.9333,13.582822); // LSMD
    
SetPlayerMapIconplayerid41948.9819,-1985.1008,13.546949); // Vatos Locos Mexicanos
    
SetPlayerMapIconplayerid52421.4934,-1219.2512,25.561348); // Le Sangre Pig Pen
    
SetPlayerMapIconplayerid6998.8512,-1130.9669,23.828144); // Triads Casino
    
SetPlayerMapIconplayerid7574.9641,-1385.9547,14.330350); // Santino's Restaurant 
There is absolutely no need to use the last parameter in the SetPlayerMapIcon native.

SetPlayerMapIcon(playerid, iconid, Float, Float:y, Float:z, markertype, color, style)
Not working
Reply
#7

PHP код:
public OnPlayerConnect(playerid

    
SetPlayerMapIconplayerid01628.6899,-1903.3833,13.553355); // DMV 
    
SetPlayerMapIconplayerid11154.1097,-1772.0492,16.599220); // LSFD 
    
SetPlayerMapIconplayerid21181.9185,-1324.9333,13.582822); // LSMD 
    
SetPlayerMapIconplayerid31948.9819,-1985.1008,13.546949); // Vatos Locos Mexicanos 
    
SetPlayerMapIconplayerid42421.4934,-1219.2512,25.561348); // Le Sangre Pig Pen 
    
SetPlayerMapIconplayerid5998.8512,-1130.9669,23.828144); // Triads Casino 
    
SetPlayerMapIconplayerid6574.9641,-1385.9547,14.330350); // Santino's Restaurant 
You must start with 0, not 1.

And I didn't see that aswell , now it should work.
Reply
#8

Okay thanks.. but already made it work by using OnPlayerSpawn
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)