07.01.2014, 15:51
PHP код:
{
SendClientMessage(playerid, COLOR_WHITE, "|______________[ Presos ]______________|");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pJailed] == 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 128, "%s: HQ Policia Militar - Tempo: %d seg.", sendername, PlayerInfo[i][pJailTime]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pJailed] == 27)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 128, "%s: HQ Policia Militar de SF - Tempo: %d seg.", sendername, PlayerInfo[i][pJailTime]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pJailed] == 33)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 128, "%s: HQ Policia Rodoviбria - Tempo: %d seg.", sendername, PlayerInfo[i][pJailTime]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pJailed] == 2)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 128, "%s: HQ Rotam LS - Tempo: %d seg.", sendername, PlayerInfo[i][pJailTime]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pJailed] == 11)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 128, "%s: HQ Policia Federal - Tempo: %d seg.", sendername, PlayerInfo[i][pJailTime]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pJailed] == 16)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 128, "%s: HQ Rotam de SF - Tempo: %d seg.", sendername, PlayerInfo[i][pJailTime]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pJailed] == 3)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 128, "%s: HQ Exйrcito - Tempo: %d seg.", sendername, PlayerInfo[i][pJailTime]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(PlayerInfo[i][pJailed] == 9)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 128, "%s: Cadeia Admin: Tempo - %d seg.", sendername, PlayerInfo[i][pJailTime]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
return true;
}