Jump to content

Qual a funcao pra mudar a velocidade de um player?


Recommended Posts

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 post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...