Jail bug spawn, help pls
#1

Please I need help, when a police officer makes me charges and i disconnected and I connect to the server, instead of going to jail I am floating under ground. How could modify the spawn to appears in jail when you disconnect and connect to the server when you have charges?
Reply
#2

Try to spawn the player when he connect to thr jail, if the player jailed and he disconnect, make him spawn in the jail when he connect again in OnPlayerSpawn ..
Reply
#3

Quote:
Originally Posted by oMa37
Посмотреть сообщение
Try to spawn the player when he connect to thr jail, if the player jailed and he disconnect, make him spawn in the jail when he connect again in OnPlayerSpawn ..
I just need the code to do that when someone who has charges to disconnect and re-connect, appears in the prison and not under earth flying. The spawn code is incorrect, the coordinates of the prison are wrong and i dont know how change them.
Reply
#4

Please i need help with this
Reply
#5

I would assume under OnPlayerSpawn there's a check to see if jail time > 1 if so set their position.. Edit SetPlayerPos under that, along with their interior id.
Reply
#6

Quote:
Originally Posted by itsCody
Посмотреть сообщение
I would assume under OnPlayerSpawn there's a check to see if jail time > 1 if so set their position.. Edit SetPlayerPos under that, along with their interior id.
When a police arrest me, he leads me to the prison without problems. The problem comes when with charges I disconnect and re-connect, i should appear in prison but appear in the vacuum
Reply
#7

Could you send me your code on pastebin?

Either posst it here or pm me and ill be glad to help.
Reply
#8

Quote:
Originally Posted by JordanDoughty
Посмотреть сообщение
Could you send me your code on pastebin?

Either posst it here or pm me and ill be glad to help.
Done, thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)