Jump to content

TP ao morrer


Recommended Posts

Posted

Quando o jogador morrer e ele irá teleportar ao hospital, oque está havendo de errado?

function aomorrer()
    setElementPosition ( client, 2033.6293945313,-1414.7727050781,16.9921875)
    outputChatBox("Você perdeu a conciência e foi levado ao hospital.",client,255,255,255)
end
addEventHandler ( "onPlayerWasted", getRootElement(), aomorrer )

 

Posted
1 hour ago, ODutii said:

Quando o jogador morrer e ele irá teleportar ao hospital, oque está havendo de errado?


function aomorrer()
    setElementPosition ( client, 2033.6293945313,-1414.7727050781,16.9921875)
    outputChatBox("Você perdeu a conciência e foi levado ao hospital.",client,255,255,255)
end
addEventHandler ( "onPlayerWasted", getRootElement(), aomorrer )

 

Quem seria o "client" para você?

Minha resposta te ajudou? Por favor, não esqueça de avaliar - #DeltaSCR

Minha página no Facebook: Delta Scripting - MTA


"Viribus et honor"

Posted

Substitua client por source.

Please do not PM me with scripting related question nor support, use the forums instead.

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...