SA-MP Forums Archive
Help please - 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)
+--- Thread: Help please (/showthread.php?tid=610118)



Help please - SilentHill3D - 20.06.2016

Hello, members
Today i request a help from you.
I have this script https://sampforum.blast.hk/showthread.php?tid=115383
And i want transform it from command to automaticaly spawn npc without that /zombie command


Re: Help please - [KHK]Khalid - 20.06.2016

Do you want it to spawn them when filterscript is loaded1? If so, how many NPCs do you need?


Re: Help please - SilentHill3D - 20.06.2016

30 or 40 and spawns after every map change because i have ZTDM and it have mini maps, please.


Re: Help please - [KHK]Khalid - 20.06.2016

Remove OnPlayerCommandText code and maybe just place the following code at the end of OnFilterScriptInit:

pawn Code:
new newname[64];
    for(LastAdded = 0; LastAdded < 30; LastAdded ++)
    {
        format(newname,sizeof(newname), "%s_%d",ZOMBIE_NAME, LastAdded);
        ConnectNPC(newname,"zombie");
    }



Re: Help please - SilentHill3D - 20.06.2016

Is this npc's will be kicked after end of map? after this code?


Re: Help please - [KHK]Khalid - 20.06.2016

I have no idea, probably not, but you can do that easily if you have the map thing script.


Re: Help please - SilentHill3D - 20.06.2016

oh then thanks for the help +rep