NPC ID
#3

use onplayerspawn or connect:

pawn Код:
new npcname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, npcname, sizeof(npcname));
        if(!strcmp(npcname, "yourbotnamehere", true))
        {
            yourbotnamevariable = playerid;
            return 1;
        }
that should work, change the botnamevariable to your botvariable, and the name to your bot name
Reply


Messages In This Thread
NPC ID - by Virus. - 01.11.2012, 17:55
Re: NPC ID - by Niko_boy - 01.11.2012, 18:04
Re: NPC ID - by niels44 - 01.11.2012, 18:11

Forum Jump:


Users browsing this thread: 1 Guest(s)