24.02.2014, 20:32
This?
if(GetPVarInt(playerid, "JailTime") > 0)
{
new rnd = random(sizeof(PrisonSpawn)); SetPlayerPos(playerid, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
SetPlayerInterior(playerid, 10);
format(string, sizeof(string), "[AUTO JAIL] %s (LEFT SERVER WHILE IN JAIL)",PlayerInfo(playerid));
print(string);
SendClientMessageToAll(COLOR_RED, string);
SetPVarInt(playerid, "Jailed", 1);
if(GetPVarInt(playerid, "JailTime") > 0)
{
new rnd = random(sizeof(PrisonSpawn)); SetPlayerPos(playerid, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
SetPlayerInterior(playerid, 10);
format(string, sizeof(string), "[AUTO JAIL] %s (LEFT SERVER WHILE IN JAIL)",PlayerInfo(playerid));
print(string);
SendClientMessageToAll(COLOR_RED, string);
SetPVarInt(playerid, "Jailed", 1);