iHero Posted April 6, 2013 Author Share Posted April 6, 2013 **Server~Side**> modPlayerIn _Sub PlayerWarp_ find:```TempPlayer(index).target = 0TempPlayer(index).targetType = TARGET_TYPE_NONESendTarget index```Above add:```' clear targetFor i = 1 To Player_HighIndex' Prevent subscript out rangeIf IsPlaying(i) And GetPlayerMap(i) = GetPlayerMap(index) ThenIf TempPlayer(i).targetType = TARGET_TYPE_PLAYER And TempPlayer(i).target = index ThenTempPlayer(i).target = 0TempPlayer(i).targetType = TARGET_TYPE_NONESendTarget iEnd IfEnd IfNext```In _Sub LeftGame_ find:```' leave party.Party_PlayerLeave index```Below add:```' clear targetFor i = 1 To Player_HighIndex' Prevent subscript out rangeIf IsPlaying(i) And GetPlayerMap(i) = GetPlayerMap(index) Then' clear players targetIf TempPlayer(i).targetType = TARGET_TYPE_PLAYER And TempPlayer(i).target = index ThenTempPlayer(i).target = 0TempPlayer(i).targetType = TARGET_TYPE_NONESendTarget iEnd IfEnd IfNext```**Credits**Ricardo 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