Rename anim locale strings to match other types

This commit is contained in:
Vortrex
2022-04-07 04:52:54 -05:00
parent f01b19eea5
commit ba2eb26788
9 changed files with 22 additions and 18 deletions

View File

@@ -11,9 +11,9 @@
"HeaderHelpMainList": "فئة الدعم",
"AccentNotFound": "اللكنة الحالية غير متوفرة",
"AccentSet": "قمت بتعيين لهجتك على {1}",
"AnimationNotFound": "هذه الرسوم المتحركة غير متوفرة",
"InvalidAnimation": "هذه الرسوم المتحركة غير متوفرة",
"AnimationCommandTip": "استخدم {1} لمشاهدة قائمة الرسوم المتحركة المتاحة",
"AnimationInvalidDistance": "يجب المسافة تكون بين 0 و 3",
"InvalidAnimationDistance": "يجب المسافة تكون بين 0 و 3",
"AnimationStopCommandTip": "استخدم {1} لإيقاف الرسوم المتحركة",
"CantBanClient": "لا يمكنك حظر هذا الإعب",
"PlayerAccountBanned": "تم حظر حساب {1}",

View File

@@ -10,9 +10,9 @@
"HeaderHelpMainList": "帮助类别",
"AccentNotFound": "口音不存在",
"AccentSet": " 口音已设置为 {1}",
"AnimationNotFound": "该动作不存在",
"InvalidAnimation": "该动作不存在",
"AnimationCommandTip": "使用 {1} 以查看可用动作列表",
"AnimationInvalidDistance": "范围必须在 0 到 3 之间",
"InvalidAnimationDistance": "范围必须在 0 到 3 之间",
"AnimationStopCommandTip": "使用 {1} 以停止当前动作",
"CantBanClient": "你无法封禁该玩家",
"PlayerAccountBanned": "{1} 的账号已被封禁",

View File

@@ -11,9 +11,9 @@
"HeaderHelpMainList": "Help Categories",
"AccentNotFound": "Accent not found",
"AccentSet": "You set your accent to {1}",
"AnimationNotFound": "That animation doesn't exist",
"InvalidAnimation": "That animation doesn't exist",
"AnimationCommandTip": "Use {1} to see a list of valid animations",
"AnimationInvalidDistance": "The distance must be between 0 and 3",
"InvalidAnimationDistance": "The distance must be between 0 and 3",
"AnimationStopCommandTip": "Use {1} to stop your animation",
"CantBanClient": "You cannot ban this person",
"PlayerAccountBanned": "{1} has been account banned",

View File

@@ -11,9 +11,9 @@
"HeaderHelpMainList": "Pomoc - Kategorie",
"AccentNotFound": "Akcent nie znaleziony",
"AccentSet": "Ustawiłeś swój akcent na {1}",
"AnimationNotFound": "Ta animcja nie istnieje",
"InvalidAnimation": "Ta animcja nie istnieje",
"AnimationCommandTip": "Użyj {1} aby zobaczyć listę działających animacji",
"AnimationInvalidDistance": "Dystans musi być między 0 i 3",
"InvalidAnimationDistance": "Dystans musi być między 0 i 3",
"AnimationStopCommandTip": "Użyj {1} aby zatrzymać swoją animacje",
"CantBanClient": "Nie możesz zbanować tej osoby",
"PlayerAccountBanned": "{1} został zbanowany",

View File

@@ -11,9 +11,9 @@
"HeaderHelpMainList": "Помощь Категории",
"AccentNotFound": "Не удалось найти акцент",
"AccentSet": "Вы установили свой акцент на {1}",
"AnimationNotFound": "Такой анимации не существует",
"InvalidAnimation": "Такой анимации не существует",
"AnimationCommandTip": "Используйте {1} чтобы просмотреть список доступных анимаций",
"AnimationInvalidDistance": "Дистанция должна быть между 0 и 3",
"InvalidAnimationDistance": "Дистанция должна быть между 0 и 3",
"AnimationStopCommandTip": "Используйте {1} чтобы остановить анимацию",
"CantBanClient": "Вы не можете забанить этого игрока",
"PlayerAccountBanned": "Аккаунт {1} был заблокирован ",

View File

@@ -11,9 +11,9 @@
"HeaderHelpMainList": "Help Categories",
"AccentNotFound": "Accent not found",
"AccentSet": "You set your accent to {1}",
"AnimationNotFound": "That animation doesn't exist",
"InvalidAnimation": "That animation doesn't exist",
"AnimationCommandTip": "Use {1} to see a list of valid animations",
"AnimationInvalidDistance": "The distance must be between 0 and 3",
"InvalidAnimationDistance": "The distance must be between 0 and 3",
"AnimationStopCommandTip": "Use {1} to stop your animation",
"CantBanClient": "You cannot ban this person",
"PlayerAccountBanned": "{1} has been account banned",

View File

@@ -17,9 +17,9 @@
"HelpAnimationHeader": "Ayuda de animaciones",
"AccentNotFound": "Acento no encontrado",
"AccentSet": "Acento establecido como {1}",
"AnimationNotFound": "Esa animación no existe",
"InvalidAnimation": "Esa animación no existe",
"AnimationCommandTip": "Usa {1} para ver la lista de animaciones",
"AnimationInvalidDistance": "La distancia debe ser un numero entre el 0 y el 3",
"InvalidAnimationDistance": "La distancia debe ser un numero entre el 0 y el 3",
"AnimationStopCommandTip": "Usa {1} para detener la animación actual",
"CantBanClient": "No se puede vetar a esta persona",
"PlayerAccountBanned": "La cuenta de {1} ha sido vetada",

View File

@@ -20,17 +20,17 @@ function playPlayerAnimationCommand(command, params, client) {
return false;
}
let animationSlot = getAnimationFromParams(getParam(params, " ", 1));
let animationSlot = getAnimationFromParams(getParam(params, " ", 1));
let animationPositionOffset = 1;
if(!animationSlot) {
messagePlayerError(client, getLocaleString(client, "AnimationNotFound"));
messagePlayerError(client, getLocaleString(client, "InvalidAnimation"));
messagePlayerInfo(client, getLocaleString(client, "AnimationHelpTip"), `{ALTCOLOUR}/animlist{MAINCOLOUR}`);
return false;
}
if(toInteger(animationPositionOffset) < 0 || toInteger(animationPositionOffset) > 3) {
messagePlayerError(client, getLocaleString(client, "AnimationInvalidDistance"));
messagePlayerError(client, getLocaleString(client, "InvalidAnimationDistance"));
return false;
}
@@ -107,7 +107,7 @@ function makePlayerPlayAnimation(client, animationSlot, offsetPosition = 1) {
getPlayerData(client).animationForced = false;
makePedPlayAnimation(getPlayerData(client).ped, animationSlot, offsetPosition);
setEntityData(ped, "vrr.anim", [animationData[1], animationData[2]]);
//if(getAnimationData(animationSlot)[9] != VRR_ANIMMOVE_NONE) {
// if(getGame() < VRR_GAME_GTA_SA) {
// setPlayerMouseCameraState(client, true);

View File

@@ -1016,12 +1016,15 @@ function makePedPlayAnimation(ped, animationSlot, positionOffset) {
break;
}
//}
setEntityData(ped, "vrr.animation", animationData[1], animationData[2]);
sendNetworkEventToPlayer("vrr.pedAnim", null, ped.id, animationData[1], animationData[2], animationData[3], animationData[4], animationData[5], positionOffset, freezePlayer);
}
// ===========================================================================
function makePedStopAnimation(pedId) {
removeEntityData(ped, "vrr.animation");
sendNetworkEventToPlayer("vrr.pedStopAnim", null, pedId);
}
@@ -1030,6 +1033,7 @@ function makePedStopAnimation(pedId) {
function forcePedAnimation(ped, animationSlot) {
let animationData = getAnimationData(animationSlot);
removeEntityData(ped, "vrr.animation", animationData[1], animationData[2]);
sendNetworkEventToPlayer("vrr.forcePedAnim", null, ped.id, animationData[1], animationData[2], animationData[3], animationData[4]);
}