KAKAN

For Lucky #2

Feb 19th, 2016
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 1.47 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. // This is the format: [ Team, Color, Skin, SpawnPos ];
  10. dick[0] = [ [ 0, RGB(0,0,0), 1, Vector(0,0,0) ], [ 1, RGB(2,2,2), 3, Vector(1,1,1) ] ]; //The skins you want.
  11. dick[1] = [ [ 2, RGB(3,3,3), 4, Vector(2,2,2) ], [ 3, RGB(4,4,4), 5, Vector(3,3,3) ] ]; //Again, the skins you want.
  12.  
  13. Iterator <- 0;
  14.  
  15. function onKeyDown(player, key) {
  16.  
  17.     switch (key) {
  18.  
  19.         case Left_arrow:
  20.             if (player.IsSpawned) return;
  21.             if (Iterator <= 0) Iterator = dick[player.World - 1].len();
  22.             Iterator--;
  23.             player.Skin = dick[player.World - 1][Iterator][2];
  24.             player.Team = dick[player.World - 1][Iterator][0];
  25.             player.Colour = dick[player.World - 1][Iterator][1];
  26.             break;
  27.  
  28.         case Right_arrow:
  29.             if (player.IsSpawned) return;
  30.             if (Iterator >= dick[player.World - 1].len()) Iterator = 0;
  31.             Iterator++;
  32.             player.Skin = dick[player.World - 1][Iterator];
  33.             player.Team = dick[player.World - 1][Iterator][0];
  34.             player.Colour = dick[player.World - 1][Iterator][1];
  35.             break;
  36.  
  37.     }
  38. }
  39.  
  40. function onPlayerSpawn( player ){
  41. player.Pos = dick[player.World - 1][Iterator][3];
  42. }
Add Comment
Please, Sign In to add comment