Jump to content

[HELP] Resapwn Player


Recommended Posts

function respawnPlayer()
    fadeCamera(source,false,1.0,0,0,0)
    setTimer(fadeCamera,2000,1,source,true,1.0,0,0,0)
	setCameraTarget(source,source)
	showChat(source,true)
	showPlayerHudComponent(source,"radar",true)
	showPlayerHudComponent(source,"area_name",true)
	spawnPlayer(source,1224.029296875, -1814.9765625, 16.59375,accData.skin)
end
addEventHandler("onPlayerWasted", getRootElement(), respawnPlayer)
59 minutes ago, Dimos7 said:

Show us your code 

 

Link to comment
function respawnPlayer()
    fadeCamera(source,false,1.0,0,0,0)
    setTimer(fadeCamera,2000,1,source,true,1.0,0,0,0)
	setCameraTarget(source,source)
	showChat(source,true)
	showPlayerHudComponent(source,"radar",true)
	showPlayerHudComponent(source,"area_name",true)
	spawnPlayer(source,1224.029296875, -1814.9765625, 16.59375,accData.skin)
end
addEventHandler("onPlayerWasted", getRootElement(), respawnPlayer)
2 hours ago, Dimos7 said:

Show us your code 

@Dimos7

plz help me

Link to comment
function respawnPlayer()
  setTimer(function(source)
    fadeCamera(source,false,1.0,0,0,0)
    setTimer(fadeCamera,2000,1,source,true,1.0,0,0,0)
	setCameraTarget(source,source)
	showChat(source,true)
	showPlayerHudComponent(source,"radar",true)
	showPlayerHudComponent(source,"area_name",true)
	spawnPlayer(source,1224.029296875, -1814.9765625, 16.59375,accData.skin)
  end, 1500, 1, source)
end
addEventHandler("onPlayerWasted", getRootElement(), respawnPlayer)

accData.skin not identified

Edited by #َxLysandeR
Link to comment
7 hours ago, Mσнαмα∂ Hєℓιѕн said:

function respawnPlayer()
    fadeCamera(source,false,1.0,0,0,0)
    setTimer(fadeCamera,2000,1,source,true,1.0,0,0,0)
	setCameraTarget(source,source)
	showChat(source,true)
	showPlayerHudComponent(source,"radar",true)
	showPlayerHudComponent(source,"area_name",true)
	spawnPlayer(source,1224.029296875, -1814.9765625, 16.59375,accData.skin)
end
addEventHandler("onPlayerWasted", getRootElement(), respawnPlayer)

@Dimos7

plz help me

function respawnPlayer()
    fadeCamera(source,false,1.0,0,0,0)
    setTimer(fadeCamera,2000,1,source,true,1.0,0,0,0)
	setCameraTarget(source,source)
	showChat(source,true)
	showPlayerHudComponent(source,"radar",true)
	showPlayerHudComponent(source,"area_name",true)
	spawnPlayer(source,1224.029296875, -1814.9765625, 16.59375,0  , getPedSkin(source), 0, 0)
end
addEventHandler("onPlayerWasted", getRootElement(), respawnPlayer)

change   first 0 with your rotation second and third is interior and dimension

Edited by Dimos7
Link to comment

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