Maaster Posted February 10, 2021 Share Posted February 10, 2021 tentei usar: setGameSpeed(thePlayer, 1) n funcionou e apareceu no debug o warning ( Bad argument @ 'setGameSpeed' [Expected number at argument 1, got player] ), ai dei uma olhada em outros scripts que mexia na speed e tentei: setGameSpeed (1) deu certo, mas esta mudando a velocidade de todos os jogadores do servidor, n apenas de um. este eh o codigo: --------------------Arena zombie-------------------- g_base_cols = createColCuboid(-1235.681, -1084.753, 128, 260, 215, 100) hits1 = function(thePlayer) outputChatBox("Voce entrou na arena zombie!", thePlayer, 0, 255, 0, true) setElementData(thePlayer, "emZombie", true) takeWeapon(thePlayer, 28) takeWeapon(thePlayer, 32) takeWeapon(thePlayer, 16) takeWeapon(thePlayer, 39) setGameSpeed (1) end addEventHandler("onColShapeHit", g_base_cols, hits1) --Sair da arena: leaves1 = function(thePlayer) outputChatBox("Voce saiu da arena zombie!", thePlayer, 255, 255, 0, true) setElementData(thePlayer, "emZombie", false) end addEventHandler("onColShapeLeave", g_base_cols, leaves1) Link to comment
LucasST Posted February 10, 2021 Share Posted February 10, 2021 setElementSpeed ou setElementVelocity Link to comment
Maaster Posted February 10, 2021 Author Share Posted February 10, 2021 (edited) 4 hours ago, LucasST said: setElementSpeed ou setElementVelocity usei: setElementSpeed(thePlayer, 1) e esta dando o error attempt to call global 'setElementSpeed 'onRecallTeam' (a nil value) no debugscript. E também, esta função não e para veiculos? Edited February 10, 2021 by Maaster342 Link to comment
Other Languages Moderators Lord Henry Posted February 10, 2021 Other Languages Moderators Share Posted February 10, 2021 Experimente usar setGameSpeed em um script client-side. 1 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