KAKAN

For Lucky

Feb 19th, 2016
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.98 KB | None | 0 0
  1. function onScriptLoad() {
  2.     AddClass(1, RGB( 255,255,255 ), 0, Vector(0,0,0), 0, 0,0,0,0,0,0);
  3.     //Do it yourself, but remember only one class should be there.
  4.     Left_arrow < - //Your bindkey shit
  5.         Right_arrow < - //another :D
  6. }
  7.  
  8. dick <- array( 2 ); //2 is the number of worlds/gamemodes.
  9. dick[0] = [ 0, 1, 2, 3 ]; //The skins you want.
  10. dick[1] = [ 4, 5, 6 ]; //Again, the skins you want.
  11.  
  12. Iterator <- 0;
  13.  
  14. function onKeyDown(player, key) {
  15.  
  16.     switch (key) {
  17.  
  18.         case Left_arrow:
  19.             if (player.IsSpawned) return;
  20.             if (Iterator <= 0) Iterator = dick[player.World - 1].len();
  21.             Iterator--;
  22.             player.Skin = dick[player.World - 1][Iterator];
  23.             break;
  24.  
  25.         case Right_arrow:
  26.             if (player.IsSpawned) return;
  27.             if (Iterator > dick[player.World - 1].len()) Iterator = 0;
  28.             Iterator++;
  29.             player.Skin = dick[player.World - 1][Iterator];
  30.             break;
  31.  
  32.     }
  33. }
Add Comment
Please, Sign In to add comment