npc map
#1

I know this question asked severval times.. .

how to remove npc from map ?
Reply
#2

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.
Reply
#3

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
Reply
#4

nothing..

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

Joe staff's thing didn't worked?
Reply
#6

im doing something wrong

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

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.
Reply
#8

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.
Reply
#9

Код:
#define COLOR_BLANK 0xFFFFFF00

public OnPlayerSpawn(playerid)
{

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

return 1;

}
Works like a dream
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)