jail save
#1

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
Reply
#2

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

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?/??
Reply
#4

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

yea i gonna test it now ,
thanks for your time
Reply
#6

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?
Reply
#7

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 
Reply
#8

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
Reply
#9

Show me your /jail command
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)