How can i get the npc id?
#1

if my my npc name is Jack how can i get the npc id?
Reply
#2

In game or in code? In code the same way you get player id. In game try /rcon players
Reply
#3

[PAWN]
new Pname[24];
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerNPC(i) && !strcmp(GetPlayerName(i, Pname, 24), "Jack")
{
return i;
}
return -1;
}

Reply
#4

I did something else but thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)