Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (faceid[p] == 39)
- {
- if (hor == 1)
- {
- if (blocks[0, X + 1, Y] == 69 || blocks[0, X, Y] != 0)
- {
- teleport(users[p], X + 3, Y + 1);
- }
- }
- else if (hor == -1)
- {
- if (blocks[0, X - 1, Y] == 69 || blocks[0, X, Y] != 0)
- {
- teleport(users[p], X - 1, Y + 1);
- }
- }
- else if (jump == true)
- {
- if (blocks[0, X, Y - 1] != 0)
- {
- int newY = Y;
- empty[p] = true; // Random bool I need
- while (empty[p] == true)
- {
- if (blocks[0, X, newY - 1] == 0)
- {
- teleport(users[p], X + 1, newY);
- empty[p] = false;
- }
- else
- {
- newY = newY - 1;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement