Help please
#1

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
Reply
#2

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

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

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");
    }
Reply
#5

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

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

oh then thanks for the help +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)