SA-MP Forums Archive
npc map - 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: npc map (/showthread.php?tid=101860)



npc map - dzindzis11 - 12.10.2009

I know this question asked severval times.. .

how to remove npc from map ?


Re: npc map - Joe Staff - 12.10.2009

As in the Player Marker?

Just change his color using 'SetPlayerColour(playerid,color)' using 0xRRGGBBAA format, if you set AA to be 00, he won't show on the map.


Re: npc map - jesse237 - 12.10.2009

try something with:
RemovePlayerMapIcon
SetPlayerMapIcon

(and i believe it used to be ShowPlayerMarker.. or something like that)
But you have to do it in the NPC file itself! not in your gamemode,
if it doesn't work i don't think they have implented something to remove his mapicon


Re: npc map - dzindzis11 - 12.10.2009

nothing..

I need to make that witch makes all npc's invisible.. for making RP npc any scripters who have done it HELP !!


Re: npc map - jesse237 - 12.10.2009

Joe staff's thing didn't worked?


Re: npc map - dzindzis11 - 12.10.2009

im doing something wrong

where i need to put it .. after each npc ? i have 4


Re: npc map - RoamPT - 12.10.2009

SetPlayerColor(playerid,YOUR_COLOR_HERE);
Quote:
Originally Posted by Joe Staff
0xRRGGBBAA format, if you set AA to be 00, he won't show on the map.
It isn't SetPlayerColour as Joe said.


Re: npc map - Joe Staff - 12.10.2009

Quote:
Originally Posted by RoamPT
SetPlayerColor(playerid,YOUR_COLOR_HERE);
Quote:
Originally Posted by Joe Staff
0xRRGGBBAA format, if you set AA to be 00, he won't show on the map.
It isn't SetPlayerColour as Joe said.
Lol, I'm used to dealing with UK peeps so I said Colour.


Re: npc map - Beaver07 - 12.10.2009

Код:
#define COLOR_BLANK 0xFFFFFF00

public OnPlayerSpawn(playerid)
{

 if(IsPlayerNPC(playerid)) { SetPlayerColor(playerid,COLOR_BLANK); return 1; }

return 1;

}
Works like a dream