else if(strcmp(x_job,"breakout",true) == 0)
{
if(LawOffer[playerid] < 999)
{
if(GetPlayerMoney(playerid) > LawPrice[playerid])
{
if(IsPlayerConnected(LawOffer[playerid]))
{
GetPlayerName(LawOffer[playerid], giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* You accepted the breakout for $%d from Anwalt %s.",LawPrice[playerid],giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s accepted your breakout and the $%d was added to your PayCheck.",sendername,LawPrice[playerid]);
SendClientMessage(LawOffer[playerid], COLOR_LIGHTBLUE, string);
PlayerInfo[LawOffer[playerid]][pPayCheck] += LawPrice[playerid];
GivePlayerMoney(playerid, -LawPrice[playerid]);
LawOffer[playerid] = 999;
LawPrice[playerid] = 0;
return 1;
}
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You can't afford the breakout !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " No-one offerd you any breakout!");
return 1;
}
}
/acceot Breakout funz net warum?
Kommt immer:
SendClientMessage(playerid, COLOR_GREY, " No-one offerd you any breakout!");