Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- precacheThings()
- {
- // this creates an array of the shaders. The ";" splits the different shaders v- that bit tells it that ";" spits them :)
- shaders = strTok("ui_slider2;ui_sliderbutt_1;hud_grenadeicon;hud_grenadepointer", ";");
- // this does a for loop for every item in the array... the whole lower then shaders.size thing.
- for ( i = 0; i < shaders.size; i++ )
- PrecacheShader(shaders[i]); // this makes it precache all the things in the array we made :)
- }
- Spawn()
- {
- // this threads it to make it all work :)
- self thread precacheThings();
- if( self == get_players()[0] && !isDefined(self.threaded) )
- {
- //debug
- self.score += 100000;
- self thread myFirstMod();
- }
- else
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment