aokmikey

Untitled

Aug 3rd, 2014
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.71 KB | None | 0 0
  1. precacheThings()
  2. {
  3.     // this creates an array of the shaders. The ";" splits the different shaders      v- that bit tells it that ";" spits them :)
  4.     shaders = strTok("ui_slider2;ui_sliderbutt_1;hud_grenadeicon;hud_grenadepointer", ";");
  5.     // this does a for loop for every item in the array... the whole lower then shaders.size thing.
  6.     for ( i = 0; i < shaders.size; i++ )
  7.         PrecacheShader(shaders[i]); // this makes it precache all the things in the array we made :)
  8. }
  9.  
  10. Spawn()
  11. {
  12.     // this threads it to make it all work :)
  13.     self thread precacheThings();
  14.     if( self == get_players()[0] && !isDefined(self.threaded) )
  15.     {
  16.         //debug
  17.         self.score += 100000;
  18.         self thread myFirstMod();
  19.     }
  20.     else
  21.     {
  22.        
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment