SA-MP Forums Archive
/jail command help :-/ - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /jail command help :-/ (/showthread.php?tid=172129)



/jail command help :-/ - DarkPower - 29.08.2010

Can someone make me /jail [ID] [Minutes] command example....I wanna when player dissconnect and connect again to put him in jail if he jailed so please help me tnx


Re: /jail command help :-/ - Nonameman - 29.08.2010

Here it is: http://pastebin.com/65CcE5Ki
Don't forget to download Dini, sscanf2 and zcmd includes.

Nonameman


Re: /jail command help :-/ - FireCat - 29.08.2010

yep nonameman is right but you just need to put when you put jail and he gets jailed put playerinfojailed = 1
then onplayerconnect if playerinfojailed = 1 sendclientmessage you are in jailed you cant get out
_______________________
1-3$ fix warnings 1-5$fix errors
6-15$ make gamemodes(not roleplay) 3-10$ make filterscripts-scriptfiles
Dont ASK! me RolePlay questions
www.mefreeroam.tk



Re: /jail command help :-/ - Nonameman - 29.08.2010

Ye, my version is for a gamemode where no accounts are used. But if you use an account system, put the 'jailed' variable into a playerinfo's enum.


Re: /jail command help :-/ - FireCat - 29.08.2010

well he did ask when they connect if they are jailed it sends them to jail but yeh your is a good basic one you just need to add playerinfo's but nice ja'b lolz
_______________________
1-3$ fix warnings 1-5$fix errors
6-15$ make gamemodes(not roleplay) 3-10$ make filterscripts-scriptfiles
Dont ASK! me RolePlay questions
www.mefreeroam.tk