27.06.2013, 20:33
Duvida simples, mas jб que ninguйm entrou em contato...
Code:
Caso nгo funcione corretamente vocк pode voltar aqui que eu dou uma olhada, nгo tive como testar...
@EDIT
fiz da forma que o iLase exemplificou tambйm:
caso seja isso.
Code:
pawn Код:
if(strcmp(cmd, "/presosadm", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_WHITE, "|______________[ Presos pelo Admin]______________|");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pJailed] == 6)
{
new int_min = PlayerInfo[i][pJailTime] / 60;
new int_seg = PlayerInfo[i][pJailTime] % 60;
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 128, "ID : %d Preso: %s Local : Cadeia Admin - Tempo : %d seg, aprox %d min.", i, sendername, PlayerInfo[i][pJailTime], (int_seg > 30 ? (int_min+1):(int_min)));
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return true;
}
@EDIT
fiz da forma que o iLase exemplificou tambйm:
pawn Код:
new int_min = PlayerInfo[i][pJailTime] / 60;
new int_seg = PlayerInfo[i][pJailTime] % 60;
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 128, "ID : %d Preso: %s Local : Cadeia Admin - Tempo : %d:%02d seg, aprox %d min.", i, sendername, int_min, int_seg);
SendClientMessage(playerid, COLOR_GRAD2, string);