22.08.2009, 00:29
I am making a script so when people are in jail and if they die or disconnect, they go back to jail when they come back.
When he goes to jail a variable called JailTime will determine how long he is in jail.
When he goes to jail
When he spawns
thanks a lot
When he goes to jail a variable called JailTime will determine how long he is in jail.
When he goes to jail
Код:
JailTime=320; dini_IntSet("/JailTime/Jail.ini", playername, JailTime); // will this show up as playername=320(or whatever his time is??)
Код:
OnPlayerSpawn(playerid) { if(dini_Int("/JailTime/Jail.ini", playername) != 0) //checking if he has time left { SetPlayerPos(... dini_Int("JailTime/Jail.ini", playername); //gets stuff from his jailtime (playername=wateva) JailTime=JailTime; //will that work? its getting the varriable stored inside the .ini file ^^ and putting it in the jailtime varriable in the script. .. return 1; }