23.01.2018, 14:18
It's because that segment of code is shown because it's out of the loops, and you aren't excluding it.
All of that, should be in the previous loop where it's checking if the jailtime is up, not outside the loop.
You will need to test this thoroughly as it's a blind paste, but it's likely to be that, that the reason it was showing is because it's in the wrong section of the loop.
Код:
} Player[i][Jailed] = 0; SendClientMessage(i, COLOR_WHITE, "Ti-ai ispasit pedeapsa,sa nu mai faci vreo boacana.");----Line 9442 SetPlayerSpecialAction(i,SPECIAL_ACTION_NONE); PlayerTextDrawHide(i, Jailtime[i]); TogglePlayerControllable(i, 1);
Код:
if(Player[i][JailTime] <= 0) { Player[i][JailTime] = 0; if(Player[i][Jailed] == 1) { SetPlayerInterior(i, 6); SetPlayerPos(i, 268.7461,76.8184,1001.0391); } if(Player[i][Jailed] == 2) { SetPlayerInterior(i, 0); SetPlayerVirtualWorld(i, 0); SetPlayerPos(i, 1800.1581,-1865.7731,13.5722); } Player[i][Jailed] = 0; SendClientMessage(i, COLOR_WHITE, "Ti-ai ispasit pedeapsa,sa nu mai faci vreo boacana.");----Line 9442 SetPlayerSpecialAction(i,SPECIAL_ACTION_NONE); PlayerTextDrawHide(i, Jailtime[i]); TogglePlayerControllable(i, 1); } }