Abra o
Client~SideCrie um CheckBox na frmMirage e o chame de: chkRun
No modGameLogic, ache a Sub CheckMovement()... Após isso, ache:
- Código:
-
If ShiftDown Then
Player(MyIndex).Moving = MOVING_RUNNING
Else
Player(MyIndex).Moving = MOVING_WALKING
End If
- Código:
-
Então, mude para:
- Código:
-
If ShiftDown Then
Player(MyIndex).Moving = MOVING_RUNNING
Else
Player(MyIndex).Moving = MOVING_WALKING
If frmMirage.chkRun.Value = Checked Then
Player(MyIndex).Moving = MOVING_RUNNING
Else
Player(MyIndex).Moving = MOVING_WALKING
End If
End If
OBS: Caso Queira Por Restrições de Dois Clicks sobre o CheckBox chkRun e adicione:
- Código:
-
If GetPlayerAccess(MyIndex) = 0 Or GetPlayerPK(MyIndex) <> 0 Or GetPlayerLevel(MyIndex) > 20 Then
MsgBox "Você não pode usar esta função!"
chkRun.value = 0
Exit Sub
End If
Mude o valor do Acces para o permitido/não-permitido, do PK e do Level também. Use dos operadores >, = e <, podendo combiná-los. Se quiser que qualquer access/PK/Level possa utilizar mude para "< 0".
Crédito: HatakiAzzi Por Fazer o Tutorial
Crédito: Thalesbliss Por Postar.