Some questions for npcs
#4

This should work:

pawn Код:
forward HideNPCMarkerForPlayer(npcid, playerid);
public HideNPCMarkerForPlayer(npcid, playerid)
{
    SetPlayerMarkerForPlayer(playerid, npcid, 0xFFFFFF00);
    return 1;
}
And you can do something like this to hide all NPCs for a player when they connect:

pawn Код:
public OnPlayerConnect(playerid)
{
    for(new i = 0; i < MAX_PLAYERS; i ++)
    {
        if(IsPlayerNPC(i))
        {
            HideNPCMarkerForPlayer(i, playerid);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Some questions for npcs - by x96664 - 14.11.2012, 14:59
Re: Some questions for npcs - by [KHK]Khalid - 14.11.2012, 15:04
Re: Some questions for npcs - by x96664 - 14.11.2012, 15:19
Re: Some questions for npcs - by [KHK]Khalid - 14.11.2012, 18:52
Re: Some questions for npcs - by x96664 - 15.11.2012, 08:11
Re: Some questions for npcs - by Camorra - 15.11.2012, 10:00

Forum Jump:


Users browsing this thread: 2 Guest(s)