Wortel Angels Posted March 25, 2012 Author Share Posted March 25, 2012 HelloAll Credits are going to WhyHelloThere for his tutorialhttp://www.touchofdeathforums.com/smf/index.php/topic,72825.msg784983.html#msg784983I like this tut but… when an Player ask you where it can buy anything or else and you want show them where it is you are too fast >.< and run away xDSo i modified it a little bit that when you walk, you got the normal walk speed and when you press Shift you run in Admin speed...**~~Client Side~~**In modConstantsFind```' Speed moving varsPublic Const WALK_SPEED As Byte = 4Public Const RUN_SPEED As Byte = 6```Add underneath it: (the 18 can be changed to anything)```Public Const ADMIN_SPEED As Byte = 18```In modGameLogicFind```' Check if player is walking, and if so process moving them over Select Case Player(Index).Moving Case MOVING_WALKING: MovementSpeed = ((ElapsedTime / 1000) * (RUN_SPEED * SIZE_X)) Case MOVING_RUNNING: MovementSpeed = ((ElapsedTime / 1000) * (WALK_SPEED * SIZE_X)) Case Else: Exit Sub End Select```Add underneath it:``` If GetPlayerAccess(MyIndex) >= 2 Then Select Case Player(index).Moving Case MOVING_WALKING: MovementSpeed = ((ElapsedTime / 1000) * (RUN_SPEED * SIZE_X)) Case MOVING_RUNNING: MovementSpeed = ((ElapsedTime / 1000) * (ADMIN_SPEED * SIZE_X)) Case Else: Exit Sub End Select End If```**Finish :D**I hope it helps anyone… and sorry for my bad englisch :DAgain ALL Credits to WhyHelloThere Link to comment Share on other sites More sharing options...
Keny14 Posted March 30, 2012 Share Posted March 30, 2012 But other players won't be able to see admin's speed. :S Link to comment Share on other sites More sharing options...
Wortel Angels Posted March 30, 2012 Author Share Posted March 30, 2012 Sure it does :D but you are very fast xDStand with an normal Character in the middle of an map then with an admin run from right to the left its fast…but you can see it and you must holding shift dont forget ;) Link to comment Share on other sites More sharing options...
DepTa Posted July 21, 2012 Share Posted July 21, 2012 workthanks xD Link to comment Share on other sites More sharing options...
vinyl Posted July 30, 2012 Share Posted July 30, 2012 Doesn't work for some reason? Link to comment Share on other sites More sharing options...
Wortel Angels Posted July 30, 2012 Author Share Posted July 30, 2012 Are you an Admin of your game?And press you shift to run ?Error ? Link to comment Share on other sites More sharing options...
salvador5702 Posted November 1, 2012 Share Posted November 1, 2012 I agree. I did everything in the notepad and saved but it still doesnt work. Link to comment Share on other sites More sharing options...
tslusny Posted November 1, 2012 Share Posted November 1, 2012 In the notepad? you must use vb6 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now