PUBG like plane, parachuting in.
#1

Hello so ive created something similar to PUBG. spawn in the lobby after a period of time the game will start. you will then be teleported to the plane (everyone in the lobby)

it works perfectly when I test. but with other players it spazzes out and crashes the server. any ideas?


https://pastebin.com/YcSPbAcJ
Reply
#2

Show server log.
Reply
#3

sure

Код:
----------------------------------
San Andreas Battlegrounds   -v1
----------------------------------

Number of vehicle models: 1
[connection] 197.226.61.148:57425 requests connection cookie.
[connection] incoming connection: 197.226.61.148:57425 id: 0
[join] AjaxM has joined the server (0:197.226.61.148)
[npc:join] NPCSafeZone1 has joined the server (9:127.0.0.1)
OnPlayerDisconnect has been called.
[npc:part] NPCSafeZone1 has left the server (9:0)
Safzone updated. updating everyones safezone now.
Safzone updated. updating everyones safezone now.
OnPlayerDisconnect has been called.
Reply
#4

Use crashdetect. If you need help, read this: https://sampforum.blast.hk/showthread.php?tid=628754
Reply
#5

Okay so it doesn't crash the server.

It sets everyone to spectate the vehicle
but instead of the plane flying to where it should. it falls out the sky?
it then hits the floor and you spectate 0,0,0

Any ideas?
Reply
#6

Ive re-wrote my gamemode I still cant find the issue..

https://pastebin.com/YcSPbAcJ
Reply
#7

Quote:
Originally Posted by Kontrol
Посмотреть сообщение
Okay so it doesn't crash the server.

It sets everyone to spectate the vehicle
but instead of the plane flying to where it should. it falls out the sky?
it then hits the floor and you spectate 0,0,0

Any ideas?
That's a problem with FCNPC. Sometimes when they stream in (teleport, spectating, puplayerinvehicle etc), they stop syncing for a few seconds and resume after that.
When this happens the plane will fall out of sync bounds and despawn for your client, which will also stop spectating.

You could try toggling spectate on again after a few seconds. Or make sure the NPC is streamed in before spectating.
Reply
#8

Quote:
Originally Posted by NaS
Посмотреть сообщение
That's a problem with FCNPC. Sometimes when they stream in (teleport, spectating, puplayerinvehicle etc), they stop syncing for a few seconds and resume after that.
When this happens the plane will fall out of sync bounds and despawn for your client, which will also stop spectating.

You could try toggling spectate on again after a few seconds. Or make sure the NPC is streamed in before spectating.
Okay great, thanks for that much appreciated. Ill try create the plane first, then stick a timer on before they spectate. see if that helps
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)