BotSpawn_FS v1.0 - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: BotSpawn_FS v1.0 (
/showthread.php?tid=178978)
BotSpawner_FS v1.0 -
Prozack - 24.09.2010
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
BotSpawner_FS v1.2 -
Prozack - 26.09.2010
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.