14.11.2012, 18:52
This should work:
And you can do something like this to hide all NPCs for a player when they connect:
pawn Код:
forward HideNPCMarkerForPlayer(npcid, playerid);
public HideNPCMarkerForPlayer(npcid, playerid)
{
SetPlayerMarkerForPlayer(playerid, npcid, 0xFFFFFF00);
return 1;
}
pawn Код:
public OnPlayerConnect(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerNPC(i))
{
HideNPCMarkerForPlayer(i, playerid);
}
}
return 1;
}