mastermax777 Posted May 15, 2011 Share Posted May 15, 2011 when a player dies (onplayerwasted i want to respawn player but i cant because onplayerwasted is client side and spawnplayer is server side? i only started yesterday so pls help Link to comment
proracer Posted May 15, 2011 Share Posted May 15, 2011 There was an example here: https://wiki.multitheftauto.com/wiki/OnPlayerWasted (2nd example) addEventHandler( "onPlayerWasted", getRootElement( ), function() setTimer( spawnPlayer, 2000, 1, source, 0, 0, 3 ) end ) Link to comment
Jaysds1 Posted May 15, 2011 Share Posted May 15, 2011 and if you want him to spawn somewhere else than in the middle of San Andreas change 0, 0, 3 } Link to comment
mastermax777 Posted May 15, 2011 Author Share Posted May 15, 2011 yes ty both i already solved it.. 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