14.11.2012, 14:59
Some questions for npcs
14.11.2012, 15:04
You can attach a 3D Text Label to a npc just as you attach it to a normal player. Also to hide a player marker on radar, use SetPlayerMarkerForPlayer.
14.11.2012, 15:19
Quote:
You can attach a 3D Text Label to a npc just as you attach it to a normal player. Also to hide a player marker on radar, use SetPlayerMarkerForPlayer.
|
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;
}
15.11.2012, 08:11
Quote:
This should work:
pawn Код:
pawn Код:
|
15.11.2012, 10:00
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)