SA-MP Forums Archive
save jail 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)
+--- Thread: save jail Help (/showthread.php?tid=361188)



save jail Help - jimis - 20.07.2012

Hi all,i have make a jail system.When a cop arrest a suspect ,then the suspect go in jail and
PHP код:
InJail[pId] = 1
But when the suspect disconnect and connect again then he spawn in the city and not in jail,How i can save it on a name file? what code to add on script?


Re: save jail Help - Infinity90 - 20.07.2012

Well try OnPlayerSpawn (This is only if you have a saving system)

if(InJail[pId] == 1)
{


Re: save jail Help - jimis - 20.07.2012

yea i want to learn how to make a save system