01.09.2013, 06:44
Код:
public IzlazakT() { new string[128]; for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerInfo[i][pJailed] == 2) { if(PlayerInfo[i][pJailTime] > 0) { PlayerInfo[i][pJailTime] -= 1; } if(PlayerInfo[i][pJailTime] == 0) { PlayerInfo[i][pJailTime] = 0; SetPlayerInterior(i, 0); PlayerInfo[i][pJailed] = 0; SetPlayerPos(i, 1767.88, -1613.29, 13.52); return 1; } } if(PlayerInfo[i][pJailed] == 1) { if(PlayerInfo[i][pJailTime] > 0) { PlayerInfo[i][pJailTime] -= 1; } if(PlayerInfo[i][pJailTime] == 0) { PlayerInfo[i][pJailTime] = 0; SetPlayerInterior(i, 0); PlayerInfo[i][pJailed] = 0; ClearCrime(i); SendClientMessage(i, COLOR_WHITE,"Pusteni ste iz zatvora."); SendClientMessage(i, COLOR_WHITE,"Sledeci put razmislite prije nego sto pocinite zlocin."); format(string, sizeof(string), "~g~Pusteni ste iz zatvora"); SetPlayerPos(i, 1767.88, -1613.29, 13.52); return 1; } } } return 1; }
Код:
if(strcmp(cmd, "/js", true) == 0) { IzlazakT(); return 1; }