These are chat archives for ikkentim/SampSharp

3rd
Jun 2016
BryanHitchcock
@BryanHitchcock
Jun 03 2016 03:41
Turns out all the issues were caused because of ToggleSpectate being enabled, I disabled it before setting any of the properties and it works now.
BryanHitchcock
@BryanHitchcock
Jun 03 2016 14:15
I'm having another problem now. The position property isn't updating after I die once. I set the spawn info once again in the OnRequestClass event (override) using the Position property, and then call Spawn(), however I don't respawn in the same location unless it's my first time dying.
Tim Potze
@ikkentim
Jun 03 2016 15:32
The position property simply calls the SetPlayerPos and GetPlayerPos internally. Setting them after death doesn't change the spawn position.
BryanHitchcock
@BryanHitchcock
Jun 03 2016 15:33
I know, but that's not what I'm saying. The position is still updating (I tested using Console.WriteLine) but whenever I die it goes back to my first death's position, even though I'm settings the SpawnInfo again in the OnRequestClass override to the player's current Position
Tim Potze
@ikkentim
Jun 03 2016 15:34
Do you show the player the class selection?
BryanHitchcock
@BryanHitchcock
Jun 03 2016 15:35
No
On requestclass I have it set spawn info and then call spawn
I want no class selection
Tim Potze
@ikkentim
Jun 03 2016 15:35
Ah okay... But it spawn you at a different location than you've set in your spawn info?
BryanHitchcock
@BryanHitchcock
Jun 03 2016 15:36
Yes
It works the first time I die
but after that, it will spawn me at my first death location
Tim Potze
@ikkentim
Jun 03 2016 15:37
i don't see why it would spawn you at a death location... Afaik that never happens in samp... Could you try setting the spawn info in OnRequestSpawn as well?
BryanHitchcock
@BryanHitchcock
Jun 03 2016 15:38
Yep, will try now. Thanks
Tim Potze
@ikkentim
Jun 03 2016 15:38
I'm on my phone so not 100% sure on function names btw
BryanHitchcock
@BryanHitchcock
Jun 03 2016 15:38
no problem
not working, I'll just mess around with it a bit and let you know
thanks for the help
I'm making a death system anyway, so It should be fixed when I implement that