Server~Side

modPlayer

In Sub PlayerWarp find:


TempPlayer(index).target = 0

TempPlayer(index).targetType = TARGET_TYPE_NONE

SendTarget index

Above add:


' clear target

For i = 1 To Player_HighIndex

' Prevent subscript out range

If IsPlaying(i) And GetPlayerMap(i) = GetPlayerMap(index) Then

If TempPlayer(i).targetType = TARGET_TYPE_PLAYER And TempPlayer(i).target = index Then

TempPlayer(i).target = 0

TempPlayer(i).targetType = TARGET_TYPE_NONE

SendTarget i

End If

End If

Next

In Sub LeftGame find:


' leave party.

Party_PlayerLeave index

Below add:


' clear target

For i = 1 To Player_HighIndex

' Prevent subscript out range

If IsPlaying(i) And GetPlayerMap(i) = GetPlayerMap(index) Then

' clear players target

If TempPlayer(i).targetType = TARGET_TYPE_PLAYER And TempPlayer(i).target = index Then

TempPlayer(i).target = 0

TempPlayer(i).targetType = TARGET_TYPE_NONE

SendTarget i

End If

End If

Next

Credits

Ricardo