Jailing person on Spawn
#7

Quote:
Originally Posted by chubz
Посмотреть сообщение
I Save with Dini.
Quote:
Originally Posted by dEcooR
Посмотреть сообщение
So lets go onplayerdisconect

Код:
new file[64];
format(file,64,"your files/%s",PlayerName(playerid));
dini_IntSet(file,"Jailed",PlayerInfo[playerid][Jailed]);
and onplayerconnect

Код:
new file[64];
format(file,64,"your files/%s",PlayerName(playerid));
PlayerInfo[playerid][Jailed] = dini_Int(file,"Jailed");
yeah thats how ive done it but thats not a problem i test if it saves by typing /jail to the player id and it tells me hes already jailed meaning it does save and jailed already equals 1 when he spawns!
Reply


Messages In This Thread
Jailing person on Spawn - by chubz - 01.08.2013, 07:54
Re: Jailing person on Spawn - by DeMoX - 01.08.2013, 08:04
Re: Jailing person on Spawn - by dEcooR - 01.08.2013, 08:06
Re: Jailing person on Spawn - by chubz - 01.08.2013, 08:09
Re: Jailing person on Spawn - by chubz - 01.08.2013, 08:13
Re: Jailing person on Spawn - by dEcooR - 01.08.2013, 08:49
Re: Jailing person on Spawn - by chubz - 02.08.2013, 08:47
Re: Jailing person on Spawn - by chubz - 02.08.2013, 08:57

Forum Jump:


Users browsing this thread: 1 Guest(s)