SA-MP Forums Archive
jail save - 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 save (/showthread.php?tid=513911)



jail save - jimis - 18.05.2014

Hi guys , how I can save to a file everyone who is in when he get in to jail.
For example: when I send someone to jail with /jail comand then he setted to injail==1 and when he gets out then injail==0 .how I can save that to a file into server so when he reconnect to server he still in jail


Re: jail save - rumen98 - 18.05.2014

http://pastebin.com/izUCBgsz
quickly wrote it I hope to help you


Re: jail save - jimis - 19.05.2014

Quote:
Originally Posted by rumen98
Посмотреть сообщение
http://pastebin.com/izUCBgsz
quickly wrote it I hope to help you
Yay really thanks man but i cant understand one thing, how i will set injail==1?/??


Re: jail save - rumen98 - 19.05.2014

PHP код:
Pnfo[playerid][Jail] = 1
like this is set, I hope you have a command and everything else?


Re: jail save - jimis - 19.05.2014

yea i gonna test it now ,
thanks for your time


Re: jail save - jimis - 19.05.2014

thanks man i gave you a rep but could you tell me how i can save and the remaining time which he is in jail?


Re: jail save - rumen98 - 19.05.2014

http://pastebin.com/ZrrujidQ
Like this should work, again set time with
PHP код:
Pnfo[playerid][JailTime] = Amount// change amount with your string every 1 number = 1 sec example
Pnfo[playerid][JailTime] = 600// The player will be in jail for 10 minutes 



Re: jail save - jimis - 21.05.2014

Quote:
Originally Posted by rumen98
Посмотреть сообщение
http://pastebin.com/ZrrujidQ
Like this should work, again set time with
PHP код:
Pnfo[playerid][JailTime] = Amount// change amount with your string every 1 number = 1 sec example
Pnfo[playerid][JailTime] = 600// The player will be in jail for 10 minutes 
Please some more help , i dont understand it


Re: jail save - rumen98 - 21.05.2014

Show me your /jail command