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

