20.08.2017, 15:30
In the top i put this
forward Unjail(); and here for
What to do now?
forward Unjail(); and here for
PHP код:
stock IsPlayerJailed(playerid)
{
new file[256], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), "%s.runix", name);
if(dini_Int(file, "Jail") == 1)
{
return true;
}
else if(dini_Int(file, "Jail") == 0)
{
return false;
}
return true;
}