Change NPCs color
#1

Can you change icon color on map of NPC?
Cuz i have made a npc but i can see it on map and have a color that is same as one of teams i made, so i want like to have color like 0xRRGGBB00 (which is invisible).
But i have errors in same line:
Код:
 : error 029: invalid expression, assumed zero
 : error 017: undefined symbol "xRRGGBB00"
 : error 029: invalid expression, assumed zero
 : fatal error 107: too many error messages on one line
In this script:
Код:
        if(!strcmp(npcname, "WeaponDealer2", true))
    {
    SetPlayerPos(playerid,2819.0876,-1166.5983,1025.5778);
      SetPlayerSkin(playerid, 179);
      SetPlayerFacingAngle(playerid,137.5078);
      SetPlayerInterior(playerid, 8);
      SetPlayerColor(playerid,0xRRGGBB00);
      return 1;
    }
Script works fine if i delete "SetPlayerColor(playerid,0xRRGGBB00);"
So is there anyway to change npcs color?

EDIT: now i made that, when i write cmd it hides npc icons on map, but i want, that icons are hiden all the time, and you dont need to write cmd
Reply


Messages In This Thread
Change NPCs color - by nejc001 - 23.09.2010, 14:48
Re: Change NPCs color - by MadeMan - 23.09.2010, 15:23
Re: Change NPCs color - by nejc001 - 23.09.2010, 15:41

Forum Jump:


Users browsing this thread: 1 Guest(s)