20.08.2017, 15:39
Ok here you go:
Код:
stock SetPlayerJailed(playerid, bool) { new file[256], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(file, sizeof(file), "%s.runix", name); if(bool == 1) dini_IntSet(file, "Jail", 1); else if(bool == 0) dini_IntSet(file, "Jail", 0); return true; }