Server~Side
modPlayer
Na Sub PlayerWarp ache:
- Código:
TempPlayer(index).target = 0
TempPlayer(index).targetType = TARGET_TYPE_NONE
SendTarget index
Acima adicione:
- Código:
' 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
Na Sub LeftGame ache:
' leave party.
Party_PlayerLeave index
Abaixo adicione:
- Código:
' 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
Créditos
Ricardo
Ricardo