23.09.2010, 14:48
(
Последний раз редактировалось nejc001; 23.09.2010 в 14:59.
)
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:
In this script:
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
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
Код:
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; }
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