Quote:
Originally Posted by actiwe
I think it is better OnPlayerCOnnect...Becouse if you load them under gamemodeinit it will take more server resources than in OnPlayerConnect. And it will definitly use more textdraws aswell. E.g you don't have constant..mm lets say 50 players, considering that you have 50 slot server...So yes, construct them under OnPlayerConnect
actiwe
|
What are you on about, this is a terrible idea.
First of all, there's no way it can use more resources, in the end they WILL use the same amount of resources. There are two critical reasons why i chose loading them under OnGameModeInit.
1. You arent making assumptions. If your going to use the OnPlayerConnect method, make sure you account for 500 textdraws. Plan and simple. Assumptions are very bad, especially when there are limits in place.
2. Creating them when the GM starts also means that its DONE, you dont have to do it during runtime. This means that the server has 1 less task to do during runtime (which is good, the less the server has to do/wait for the better, this gives it time to synch etc).
So i think the obvious choice is creating the under OnGameModeInit! If the OnPlayerConnect method uses the same amount of resources as the OnGameModeInit one, why use a method that gives the server more work to do?
Im willing to debate this, but honestly i can see the good in creating them under OnPlayerConnect at all.