BotSpawn_FS v1.0
#1

Please ask How-To Questions about the filterscript here.
It has been tested enough to run. There may be some minor glitches.

Please click here to go to the release topic to report bugs.

Thanx... Prozack
Reply
#2

The current release of BotSpawner_FS v1.2 has bugs.

Bug Fix:
Remove strtok() from pawno/include/globals.inc


botspawn_fs.pwn
---------------------------------------------------------------------------
Code:
line 188:  format(calling,24,"[npc]%s",gBotNames[test]);
line 218:  format(gUser[id],32,"[npc]%s",BotInfo[target][botname]);
line 236:  format(bot_name,24,"[npc]%s",gBotNames[test]);

delete lines 77-78

replace w/ the following:
public OnPlayerConnect(playerid)
{
	if(!IsPlayerNPC(playerid))
	{
		new name[24];
		GetPlayerName(playerid,name,24);
		if(strcmp(name,"[npc]",true,5)==0)  Kick(playerid);
	}
	return 1;
}
A friend pointed out that a malicious player might get lucky enough to disrupt the queuing process.
I need to prevent anybody from connecting with the current bot identity.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)