Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onScriptLoad() {
- AddClass(1, RGB( 255,255,255 ), 0, Vector(0,0,0), 0, 0,0,0,0,0,0);
- //Do it yourself, but remember only one class should be there.
- Left_arrow < - //Your bindkey shit
- Right_arrow < - //another :D
- }
- dick <- array( 2 ); //2 is the number of worlds/gamemodes.
- // This is the format: [ Team, Color, Skin, SpawnPos ];
- 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.
- 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.
- Iterator <- 0;
- function onKeyDown(player, key) {
- switch (key) {
- case Left_arrow:
- if (player.IsSpawned) return;
- if (Iterator <= 0) Iterator = dick[player.World - 1].len();
- Iterator--;
- player.Skin = dick[player.World - 1][Iterator][2];
- player.Team = dick[player.World - 1][Iterator][0];
- player.Colour = dick[player.World - 1][Iterator][1];
- break;
- case Right_arrow:
- if (player.IsSpawned) return;
- if (Iterator >= dick[player.World - 1].len()) Iterator = 0;
- Iterator++;
- player.Skin = dick[player.World - 1][Iterator];
- player.Team = dick[player.World - 1][Iterator][0];
- player.Colour = dick[player.World - 1][Iterator][1];
- break;
- }
- }
- function onPlayerSpawn( player ){
- player.Pos = dick[player.World - 1][Iterator][3];
- }
Add Comment
Please, Sign In to add comment