0 Members and 1 Guest are viewing this topic.
You are being to cautious, if you have if text=blah in your onplayerspeak and it does not equal blah then nothing is done so it uses no cpu whatsoever.
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.
All OnPlayerSpeak calls are forced to run in a thread, so no matter what you do in OnPlayerSpeak, it will not cause server lag... Even if you put in a sleep().
Quote from: miketh2005 on July 10, 2009, 07:31:20 pmDonate to enesceHAHAHAHAHAHAHA
Donate to enesce
Quote from: EnEsCe on June 21, 2009, 01:04:35 amAll OnPlayerSpeak calls are forced to run in a thread, so no matter what you do in OnPlayerSpeak, it will not cause server lag... Even if you put in a sleep().Why don't you thread all functions/procedures so people will be able to use sleep()?
I simply don't understand why scripts use !blah texts to make things. Just use OnPlayerCommand, and per example, if a player in a gather does !nuubia to change the map, the console should show a message like "this lamer has voted nuubia". Would be that some kind of solution?