NPC Help???
#1

new AMOUNTOFNPCS;
public OnGameModeInit()
{
new blanknpcamount;
for(new playerid;playerid<GetMaxPlayers()-AMOUNTOFNPCS;playerid++) //Change AMOUNTOFNPCS to be the same of NPCs you plan on connecting
{
ConnectNPC("baovels","baovels");
blanknpcamount++;
}
//ConnectNPCs here
for(new playerid;playerid<blanknpcamount;playerid++)Kick(p layerid);
return 1;
}

How to add a ConnectNPC in the code so it reads two NPC. I tried out but failed when trying to add a Connect like this.
new AMOUNTOFNPCS;
public OnGameModeInit()
{
new blanknpcamount;
for(new playerid;playerid<GetMaxPlayers()-AMOUNTOFNPCS;playerid++) //Change AMOUNTOFNPCS to be the same of NPCs you plan on connecting
{
ConnectNPC("Army","Army");
ConnectNPC("FBI","FBI");
blanknpcamount++;
}
//ConnectNPCs here
for(new playerid;playerid<blanknpcamount;playerid++)Kick(p layerid);
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)