19.02.2012, 09:57
Hey, don't know if this has been posted.
But if SetSpawnInfo is used in OnPlayerSpawn, the player will see himself as the skin he was supposed to spawn as, but anyone else will see him as the skin set in SetSpawnInfo.
I use this method to allow players to /sync themselves.
Example...
I'm a Grove, but am playing a minimode where I am a construction worker. I use /sync which uses SetSpawnInfo to place me where I was in the minimode, with the construction worker skin I had, and then respawns me.
In OnPlayerRespawn, there is a SetSpawnInfo to set my original Grove skin/weapons, so that if I die, I will come back as a Grove.
However, although I see myself as a Construction Worker, everybody else sees me as a Grove.
The only workaround is to delay the SetSpawnInfo in a timer, so that I have time to spawn on everyone elses screen.
(My apologies if this is a little bit difficult to read or understand).
But if SetSpawnInfo is used in OnPlayerSpawn, the player will see himself as the skin he was supposed to spawn as, but anyone else will see him as the skin set in SetSpawnInfo.
I use this method to allow players to /sync themselves.
Example...
I'm a Grove, but am playing a minimode where I am a construction worker. I use /sync which uses SetSpawnInfo to place me where I was in the minimode, with the construction worker skin I had, and then respawns me.
In OnPlayerRespawn, there is a SetSpawnInfo to set my original Grove skin/weapons, so that if I die, I will come back as a Grove.
However, although I see myself as a Construction Worker, everybody else sees me as a Grove.
The only workaround is to delay the SetSpawnInfo in a timer, so that I have time to spawn on everyone elses screen.
(My apologies if this is a little bit difficult to read or understand).