30.05.2010, 14:26
Код:
if(MapIconsShown[playerid] != 1) { MapIconsShown[playerid] = 1; for(new i = 0; i < sizeof(BizzInfo); i++) { SetPlayerMapIcon(playerid,i + 1,BizzInfo[i][bEntranceX],BizzInfo[i][bEntranceY],BizzInfo[i][bEntranceZ],36,COLOR_LIGHTRED); } for(new i = 0; i < sizeof(SBizzInfo); i++) { SetPlayerMapIcon(playerid,i + 20,SBizzInfo[i][sbEntranceX],SBizzInfo[i][sbEntranceY],SBizzInfo[i][sbEntranceZ],36,COLOR_LIGHTRED); } for(new h = 0; h < sizeof(HouseInfo); h++) { if(HouseInfo[h][hOwned] == 0) { SetPlayerMapIcon(playerid,h + 1,HouseInfo[h][hEntrancex],HouseInfo[h][hEntrancey],HouseInfo[h][hEntrancez],31,COLOR_LIGHTRED); } if(HouseInfo[h][hOwned] == 1) { SetPlayerMapIcon(playerid,h + 1,HouseInfo[h][hEntrancex],HouseInfo[h][hEntrancey],HouseInfo[h][hEntrancez],32,COLOR_LIGHTRED); } } } return 1; }