View Single Post
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 03-29-2009 , 11:15   Re: [TUT] Modules and efficient scripting
Reply With Quote #10

Quote:
Originally Posted by joaquimandrade View Post
But it hooks spawn and it uses task. As i said in there is better. I never need to mess with models but, if someday i do, i will surely modify his code.

Basically:

It hooks spawns. That's an error. Then it uses tasks to protect problems coming from changing the models in spawn. Hooking instead the join team event you will not need task. You won't have 32 players changing the team at the same time.
I know, you don't need to explain, this is your situation or any other good coders situation. There are some problems that will be fixed on that tutorial. If a scripter needs it he will modify the code. It depends on experience at first, if a scripter is a beginner he can't be able to see all weak spots of a code. That is a thing which everyone will learn with time.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline