Laggtest with NPC's - Possible? - 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: Laggtest with NPC's - Possible? (
/showthread.php?tid=253187)
Laggtest with NPC's - Possible? -
Danny - 05.05.2011
Hi,
I have a script on my PC. I scripted that some time ago.
Cause im curious if i'm able to script without lagg, i want to test the lagg on that script.
I figured out i need atleast 10 - 15 players to do that.
I thought up a plan to connect 15 NPC's to replace 15 'real' players, and to use them for this test.
Can I use NPC's in this way? The script isn't using IsPlayerNPC(playerid) checks.
Greetz,
Danny
Re: Laggtest with NPC's - Possible? -
o_O - 05.05.2011
So you want to check whether your script can make a server laggy and need players for that?
I think the NPCs would work the same way
as long as they trigger your scripts. I mean, I'm not sure what sort of gamemode you're coding but if your script does something when a user enters a car, you're going to have to make your NPCs enter a car...
So that might actually be a lot of work. You may as well consider getting a few volunteers to test your server out. I've done it before. Just make your server public and you'll get a few people. You could also make an announcement on the forum asking for help.
Re: Laggtest with NPC's - Possible? -
[SFA]SpiRRiT - 05.05.2011
I think NPC's will only make your server lagg more.. And by the way, it is possible BUT, it's not allowed or something.. Because the script, the include, and the plugin you then need is not allowed.. They say that if you use it your 'Memory Hacking'.. But uhh, good luck with finding a solution!
Got any problems or questions, contact me.. Maybe I could help you in dutch..
Take care!