Jump to content

hospital problem


Monty

Recommended Posts

Posted

hi... this script should respawn player at the hospital... but everytime my skin get set to CJ... :( is it possible to set the model as the one before the dead?

addEventHandler( "onPlayerWasted", getRootElement( ), 
    function() 
        setTimer( spawnPlayer, 4000, 1, source, 1177.5682373047, -1323.2587890625, 14.077121734619 ) 
        outputChatBox ( getPlayerName ( source ).." died and was transported at All Saints Hospital.") 
  
    end 
) 

ANY SCRIPT REQUEST FOR FREE HERE: http://www.stolka.altervista.org

Posted
addEventHandler( "onPlayerWasted", getRootElement( ), 
    function() 
        setTimer( spawnPlayer, 4000, 1, source, 1177.5682373047, -1323.2587890625, 14.077121734619,0, getElementModel(source) ) 
        outputChatBox ( getPlayerName ( source ).." died and was transported at All Saints Hospital.") 
    end 
) 

https://wiki.multitheftauto.com/wiki/SpawnPlayer

Posted

Yes, you can use getElementModel() and setElementData() for store the skin to a player. And, later respawn, use getElementData() and setElementModel().

Software Engineer & Entrepreneur Running Lustrel and VilarikA • Highly engaged on open source community

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