FORDIR_Max Posted February 22, 2022 Share Posted February 22, 2022 Добрый день. Столкнулся с проблемой в скрипте. function jailTPzeck(thePlayer) local groupN = aclGetGroup("Zeck") local namePlayer1 = getPlayerName(thePlayer) if isObjectInACLGroup("user."..namePlayer1,groupN) then spawnPlayer(thePlayer, -676, 2609, -20.5) end end addEventHandler("onPlayerWasted",getRootElement(),jailTPzeck) Ошибка состоит в том что в данной строке: local namePlayer1 = getPlayerName(thePlayer) debug что-то не нравится. До этого делал точно так же и работало. p/s. Большое спасибо вам за прошлую помощь! Особенно @Саррум Link to comment
eeugene Posted April 5, 2022 Share Posted April 5, 2022 Потому что эвент вернул totalAmmo Исправь на это: function jailTPzeck(_, thePlayer) Подробнее: https://wiki.multitheftauto.com/wiki/OnPlayerWasted Link to comment
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