SA-MP Forums Archive
Change NPCs color - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Change NPCs color (/showthread.php?tid=178679)



Change NPCs color - nejc001 - 23.09.2010

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


Re: Change NPCs color - MadeMan - 23.09.2010

pawn Код:
SetPlayerColor(playerid,0xFFFFFF00);



Re: Change NPCs color - nejc001 - 23.09.2010

lol color id fail -.-
ty