enzopaul4 Posted November 25, 2016 Posted November 25, 2016 How can i make a script like if player die , to respawn he where i set it? Thx
LoPollo Posted November 25, 2016 Posted November 25, 2016 If you are playing the "play" gamemode, and if i remember correctly, you can edit the spawnpoints. If you ALWAYS want to spawn in a location, delete all spawnpoints and add your own spawnpoint with the coords. Hope it helps
Storm-Hanma Posted November 25, 2016 Posted November 25, 2016 For more help u can take community resources help there r many spawn points resources edit them and add ur spawn details! If u are asking about dead respawn at same place were u died go search in mta sa community (respawn resource)
enzopaul4 Posted November 25, 2016 Author Posted November 25, 2016 1 hour ago, LoPollo said: If you are playing the "play" gamemode, and if i remember correctly, you can edit the spawnpoints. If you ALWAYS want to spawn in a location, delete all spawnpoints and add your own spawnpoint with the coords. Hope it helps i know it for Freeroam , but i try to make my own server (roleplay) and i don't know , but anyway thank you for help
ViRuZGamiing Posted November 26, 2016 Posted November 26, 2016 If making your own. You'll need to think logically of the process. Think like this: When do I want to spawn on a location? On Login, On Dead, ... Do I want 1 location or multiple? After you've asked yourself these questions Let all those 'events' (onPlayerWasted, ...) Trigger a spawn function using setElementPosition
MisterQuestions Posted November 26, 2016 Posted November 26, 2016 (edited) 12 minutes ago, ViRuZGamiing said: If making your own. You'll need to think logically of the process. Think like this: When do I want to spawn on a location? On Login, On Dead, ... Do I want 1 location or multiple? After you've asked yourself these questions Let all those 'events' (onPlayerWasted, ...) Trigger a spawn function using setElementPosition Use onPlayerWasted event. Don't do setElementPosition for spawning, as @ViRuZGamiing said. As wiki says on 'setElementPosition': Attention: Do not use this function to spawn a player. It will cause problems with other functions like warpPedIntoVehicle. Use spawnPlayer instead. Edited November 26, 2016 by XeroxMTA 1
ViRuZGamiing Posted November 26, 2016 Posted November 26, 2016 6 minutes ago, XeroxMTA said: Use onPlayerWasted event. Don't do setElementPosition for spawning, as @ViRuZGamiing said. As wiki says on 'setElementPosition': Attention: Do not use this function to spawn a player. It will cause problems with other functions like warpPedIntoVehicle. Use spawnPlayer instead. Yeah I am typing this on my phone so everything is written by mind not by Wiki. So yeah you'll need a couple of functions. One for the spawn and one for the set location. Although my explanation was More about the theory than the script itself. They way of thinking since that'll get you the furthest. 1
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