05.02.2019, 19:34
Hello I need a help.. I've creating a command and everything are worked but I need now make such a Wanna a player in jailed and different player wanna check the time of the player he must use /bail [ID OF THE PLAYER WHO IN JAIL] and they must show him the delits such time. but wanna different player wanna checking my time when im in jail he got 0 messages why? he did not received any message of time of the player who in jail.
PHP код:
else
{
if(PlayerInfo[playerid][pJailed] == 1) // If the id which he typed is the same as his id
{
format(fstr2,sizeof(fstr2), "{00BDFF}[Jail Released]: {FFFFFF}%s(%d) has not served their minimum Jail Sentence yet. {FFFFFF}Time left: {0080FF}%d{FFFFFF}.", GetName(playerid),playerid,pJailCount[playerid]);
SendClientMessage(playerid, -1, fstr2);
return 1;
}
if(id == PlayerInfo[playerid][pJailed] && 1)
{
format(fstr2,sizeof(fstr2), "{00BDFF}[Jail Released]: {FFFFFF}%s(%d) has not served their minimum Jail Sentence yet. {FFFFFF}Time left: {0080FF}%d{FFFFFF}.", GetName(playerid),playerid,pJailCount[playerid]);
SendClientMessage(id, -1, fstr2);
return 1;
}
}
}
return 1;
}