Cikles in commands - 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: Cikles in commands (
/showthread.php?tid=557951)
Cikles in commands -
Banditukas - 15.01.2015
Hi,
Player can use command where i do foreach cikle, it'is can harm server if player spam command?
Re: Cikles in commands -
HazardouS - 15.01.2015
Not really, a foreach loop takes around 20 ms to complete. This means you can run 50 foreach loops per second without any problems. You should add some kind of anti-spam though, it's useful not only to protect server resources, but also to deny any kind of spam towards a player (maybe you have commands that send messages to players).