Jail bug spawn, help pls - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Jail bug spawn, help pls (
/showthread.php?tid=602425)
Jail bug spawn, help pls -
AlexLambert - 06.03.2016
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?
Re: Jail bug spawn, help pls -
oMa37 - 06.03.2016
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 ..
Re: Jail bug spawn, help pls -
AlexLambert - 06.03.2016
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.
Re: Jail bug spawn, help pls -
AlexLambert - 06.03.2016
Please i need help with this
Re: Jail bug spawn, help pls -
itsCody - 07.03.2016
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.
Re: Jail bug spawn, help pls -
AlexLambert - 07.03.2016
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
Re: Jail bug spawn, help pls -
JordanDoughty - 07.03.2016
Could you send me your code on pastebin?
Either posst it here or pm me and ill be glad to help.
Re: Jail bug spawn, help pls -
AlexLambert - 07.03.2016
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.