Jail - 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 (
/showthread.php?tid=428467)
Jail -
[..MonTaNa..] - 05.04.2013
.....
Re: Jail -
stabker - 05.04.2013
Use
CreateObject,
RemoveBuildingForPlayer
Re: Jail -
HurtLocker - 05.04.2013
Just add this in the /jail command code:
pawn Код:
SetPlayerHealth(id, 0x7F800000);
This will make your prisoners immortal. Concerning the beds, i dont think it is possible removing them cause its object-inside other object from the creators.
Re: Jail -
Pawnie - 06.04.2013
Just add a range point under OnPlayerTakeDamage, and each time the person receives damage make it false.
Re: Jail -
Yiin - 06.04.2013
Quote:
Originally Posted by Pawnie
Just add a range point under OnPlayerTakeDamage, and each time the person receives damage make it false.
|
it doesnt work. You need to add amount of damage to current health.
Re: Jail -
[..MonTaNa..] - 06.04.2013
Removed.
Re: Jail -
Isolated - 06.04.2013
Reset the players weapons, use the function HurtLocker suggested, add the gate object. Job done?