Advertisement
Alucard_idiot

Brick hill commands i know ;)

Nov 30th, 2018
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. GENERAL:
  2.     functions;
  3.     schedule(int milliseconds, string script, [arg1, arg2...]) - Create an obj, execute_string when time is up
  4.     string_split(string str, string split, int slice) - Returns split string slice
  5.     itemToID(string name) - Returns the item ID with that name
  6.     findClientByName(string name) - Returns the client ID
  7.     findClientByID(int user_id) - Returns the client ID
  8.     findBrickByName(string name) - Returns the earliest brick ID with name
  9.     findBrickByID(int brick_id) - Returns the brick ID
  10.     isPlayer(id player) - Returns boolean
  11.     isBrick(id brick) - Returns boolean
  12.     isAlive(id player | brick) - Returns boolean
  13.     isSpawnpoint(id brick) - Returns boolean
  14.     kick(id player, string message) - Kicks said player
  15.     newBrick(int x, int y, int z, int xsize, int ysize, int zsize, int color) - Returns brick ID
  16.     dec_to_hex(int dec) - Returns string hexadecimal value
  17.     hex_to_dec(string hex) - Returns int decimal value
  18.     color_to_3d(int color) - Returns a color with flipped R and B values
  19.     string_to_real(string real) - Returns a real number
  20.     new_command(string name, string script) - Creates a chat function
  21.     define(string name) - Creates a script
  22.     execute(string name) - Executes a script
  23.    
  24.     events;
  25.     onGameConnection(string name, string ip) - Called on connection attempt
  26.    
  27. PLAYER:
  28.     globalvars;
  29.     playerCount - Returns the number of players online
  30.     player[i] - Returns player i
  31.    
  32.     vars;
  33.     player.user_id - Returns the onsite ID of the user (for APIs)
  34.     player.name - Returns the username of the user
  35.     player.ip - Returns the IP address of the user
  36.     player.tool[i] - Returns the item ID in slot i
  37.     player.toolNum - Returns the number of items the player has
  38.     player.team - Returns the team ID
  39.     player.score - Returns the player's score
  40.    
  41.     functions;
  42.     playerTranslate(id player, int x, int y, int z) - Move player, send new coords
  43.     playerRotate(id player, int x, int y, int z) - Rotate player, send new rotation
  44.     playerScale(id player, int x, int y, int z) - Resize player, send new scale
  45.     playerUnArm(id player) - Disarms the player
  46.     playerArm(id player, id item) - Makes player hold said item (name)
  47.     playerAddItem(id player, id item) - Adds item to player's inventory
  48.     playerKill(id player) - Kills said player
  49.     playerRespawn(id player) - Respawns said player
  50.     playerAddDamage(id player, int damage) - Removes health from player
  51.     playerSetHealth(id player, int health) - Sets health of said player
  52.     playerSetMaxHealth(id player, int health) - Sets the max health of said player
  53.     playerSetColor(id player, string part, int color) - Sets the color of a player's body part
  54.     playerSetSticker(id player, string part, int sticker, int direction) - Sets the sticker of a player's body part
  55.     playerSetScore(id player, int score) - Sets the player's score
  56.     playerSetSpeed(id player, int speed) - Sets player's speed
  57.     playerSetJumpheight(id player, int height) - Sets player's jump height
  58.     playerSetFOV(id player, int fov) - Sets player's FOV
  59.     playerSetCameraDistance(id player, int distance) - Sets player's camera distance
  60.     playerSetCameraPosition(id player, int x, int y, int z) - Sets the player's camera position
  61.     playerSetCameraRotation(id player, int x, int y, int z) - Sets the player's camera rotation
  62.     playerSetCameraObject(id player, id orbit) - Sets the player's camera orbit
  63.     playerSetCameraType(id player, string type) - Sets the player's camera type ("fixed", "orbit", "free", "first")
  64.    
  65.     playerGetPosition(id player) - Returns "x y z" string
  66.     playerGetRotation(id player) - Returns "x y z" string
  67.     playerGetScale(id player) - Returns "x y z" string
  68.     playerGetArm(id player) - Returns the item id the current player is holding
  69.     playerGetHealth(id player) - Returns the player's health
  70.     playerGetMaxHealth(id player) - Returns the player's max health
  71.     playerGetColor(id player, string part) - Returns body color
  72.     playerGetSticker(id player, string part, int direction) - Returns the sticker of a player's body part
  73.     playerGetScore(id player) - Returns the player's score
  74.     playerGetSpeed(id player) - Returns player's speed
  75.     playerGetJumpheight(id player) - Returns jumpheight
  76.     playerGetLookingAt(id player) - Returns id of focus object
  77.     playerGetLookingAtPos(id player) - Returns the position of focus
  78.     playerGetFOV(id player) - Returns FOV
  79.     playerGetCameraType(id player) - Returns camera type
  80.     playerGetKeyboardPressed(id player, string key) - Returns boolean
  81.    
  82.     events;
  83.     onPlayerDamage(id player, id enemy, int damage)
  84.     onPlayerDeath(id player, id enemy)
  85.     onPlayerFindSpawn(id player)
  86.     onPlayerSpawn(id player)
  87.    
  88. BRICK:
  89.     globalvars;
  90.     brickCount - Returns the number of bricks
  91.     brick[i] - Returns brick i
  92.     spawnBrickCount - Returns the number of spawnbricks
  93.     spawnBrick[i] - Returns spawnbrick i
  94.    
  95.     vars;
  96.     brick.brick_id - Returns brick ID
  97.     brick.name - Returns brick name
  98.     brick.color - Returns brick color
  99.    
  100.     functions;
  101.     loadBRK(string filename) - Loads file, returns boolean
  102.     brickTranslate(id brick, int x, int y, int z) - Moves brick, send new coords
  103.     brickRotate(id brick, int x, int y, int z) - Rotates brick, send new rotation
  104.     brickScale(id brick, int x, iwnt y, int z) - Sets brick scale
  105.     brickKill(id brick) - Unlocks brick, "activates physics"
  106.     brickDestroy(id brick) - Removes brick
  107.     brickSetColor(id brick, int color) - Sets brick color
  108.     brickSetLightColor(id brick, int color) - Sets brick light color
  109.     brickSetLightRange(id brick, int range) - Sets brick light range
  110.    
  111.     brickGetPosition(id brick) - Returns "x y z" string
  112.     brickGetRotation(id brick) - Returns "x y z" string
  113.     brickGetScale(id brick) - Returns "x y z" string
  114.     brickGetShape(id brick) - Returns shapename
  115.     brickGetSticker(id brick, int direction) - Returns sticker
  116.     brickGetLightColor(id brick) - Returns light color
  117.     brickGetLightRange(id brick) - Returns light range
  118.    
  119. TEAM:
  120.     vars;
  121.     team.name - Returns team name
  122.     team.color - Returns team color
  123.     team.numMembers - Returns team member count
  124.     team.member[i] - Returns player
  125.    
  126.     functions;
  127.     teamGetScore(id team) - Returns team score
  128.    
  129.     events;
  130.     onTeamPick(id player)
  131.    
  132. GUI:
  133.     functions;
  134.     messageClient(id player, string message) - Sends a message to said player
  135.     messageAll(string message) - Sends a message to every player
  136.     messageTeam(id team, string message) - Sends a message to every player in said team
  137.     messageExclude(id player, string message) - Sends a message to every player excluding said player
  138.     topPrint(id player, string message, int seconds) - Sets the top print of said player
  139.     topPrintAll(string message, int seconds) - Sets the top print of every player
  140.     centerPrint(id player, string message, int seconds) - Sets the center print of said player
  141.     centerPrintAll(string message, int seconds) - Sets the center print of every player
  142.     bottomPrint(id player, string message, int seconds) - Sets the bottom print of said player
  143.     bottomPrintAll(string message, int seconds) - Sets the bottom print of every player
  144.     buttonBoxClient(id player, string message, string button0, [string button1...]) - Sends a button to the player
  145.     buttonBox(string message, string button0, [string button1...]) - Sends a button to every player
  146.     environmentSetAmbient(int color) - Sets the color of the ambient
  147.     environmentSetSky(int color) - Sets the color of the sky
  148.     environmentSetSkybox(int sticker, int size) - Sets a skybox
  149.     environmentSetBaseplateColor(int color) - Sets the color of the baseplate
  150.     environmentSetBaseplateSize(int size) - Sets the size of the baseplate
  151. ----------On Player Touch----------
  152. s = define("onPlayerTouch");
  153. s.script = '
  154. var brick,client;
  155. brick = arg[0];
  156. client = arg[1];
  157. if(brick.Name == "TOUCH") {
  158. Your command here ;)
  159. }
  160. ';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement