06.12.2013, 07:22
(
Последний раз редактировалось Tugamars; 06.12.2013 в 08:57.
)
pawn Код:
if(strcmp(cmd, "/fianca", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJailed]==1)
{
if(JailPrice[playerid] > 0)
{
if(GetPlayerMoneyEx(playerid) > JailPrice[playerid])
{
format(string, sizeof(string), "Voce pagou sua fianca por: $%d", JailPrice[playerid]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerMoneyEx(playerid, -JailPrice[playerid]);
JailPrice[playerid] = 0;
PlayerInfo[playerid][pJailTime] = 1;
CofreOrg[7][Dinheiro] += JailPrice[playerid];
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Voce nao pode pagar a fianca!");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Sua fianca foi desativada!");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Voce nao esta preso!");
}