Posts: 78
Threads: 25
Joined: Apr 2012
Reputation:
0
Hello,
I want to know how to add bot's to my server.
But I only want a name to show in a player slot?
Thanks.
Posts: 1,052
Threads: 46
Joined: Jan 2010
Reputation:
0
Npc's don't change the amount of online players, they only decrease the slots-count
Posts: 78
Threads: 25
Joined: Apr 2012
Reputation:
0
Yes, I know.
Do you have any idea on how to just add the names?
Posts: 1,052
Threads: 46
Joined: Jan 2010
Reputation:
0
Use ConnectNPC(name[], script[]);
Make an NPC script that basically does nothing and i guess there you go
Posts: 1,052
Threads: 46
Joined: Jan 2010
Reputation:
0
in the npcscripts folder create a file called empty.pwn
Open it and compile it.
If it gives any errors, just past this in this code:
public OnNPCModeInit()
{
print("NPC script loaded");
return 1;
}
After you compiled that, put this on the end of your gamemode's OnGameModeInit():
ConnectNPC("CoolNpcName", "empty");
I think that should work
Posts: 78
Threads: 25
Joined: Apr 2012
Reputation:
0
whats with the Empty bit?