Posts: 775
Threads: 78
Joined: Dec 2014
So well, The
SetSpawnInfo wont set my spawninfo, It wont set my coordinates, or give me the bat and 9mm..
But it do SpawnPlayer me.
Full file;
http://pastebin.com/jDxJE76Y
Posts: 775
Threads: 78
Joined: Dec 2014
Gonna go ahead and 'bump' this.
Posts: 4,759
Threads: 33
Joined: Dec 2013
Reputation:
0
You have to use the function before spawning.
Posts: 775
Threads: 78
Joined: Dec 2014
Quote:
Originally Posted by SickAttack
You have to use the function before spawning.
|
If you'd read the file you would see I did.
Posts: 4,759
Threads: 33
Joined: Dec 2013
Reputation:
0
Try killing the player instead of using SpawnPlayer. If it doesn't work, just use SetPlayerPos and so forth. Or try setting a timer then use SpawnPlayer.
Posts: 775
Threads: 78
Joined: Dec 2014
Quote:
Originally Posted by Shinja
Ofc you will be spawned after death, but does it gives also score and money successfully?
|
Get your facts right you don't get auto spawned, on death regullarly you have to click on Spawn.
Posts: 2,856
Threads: 6
Joined: Jun 2007
Reputation:
0
You get autospawned after death as it always has been, otherwise you prevent it by script (it seem you have somewhere ForceClassSelection)
Here are way to many open question, why is it delayed, why is it in OnPlayerDeath not in OnPlayerSpawn (is the player able to switch classes while being alive?), do you have in OnPlayerSpawn something that works against it like SetPlayerPos and ResetPlayerWeapons? Doesn't OnPlayerDeath has a reason parameter ? Does the code even get called (maybe the hook isn't working)?
Put SetSpawnInfo in OnPlayerDeath in a new pwn file and test it than you know if it works or not
Posts: 775
Threads: 78
Joined: Dec 2014
Quote:
Originally Posted by Nero_3D
You get autospawned after death as it always has been, otherwise you prevent it by script (it seem you have somewhere ForceClassSelection)
Here are way to many open question, why is it delayed, why is it in OnPlayerDeath not in OnPlayerSpawn (is the player able to switch classes while being alive?), do you have in OnPlayerSpawn something that works against it like SetPlayerPos and ResetPlayerWeapons? Doesn't OnPlayerDeath has a reason parameter ? Does the code even get called (maybe the hook isn't working)?
Put SetSpawnInfo in OnPlayerDeath in a new pwn file and test it than you know if it works or not
|
I do not have ForceClassSeleciton,
It is delayed to in order show the death thingy from gta sadefault,
No he's not able to switch, they must use /changeteam
Never used OnPlayerSpawn in my gamemode.
OnPlayerdeath do have a reason parameter, but this works fine.
The hooking is fine.