02.03.2013, 00:33
O player tб usando o galгo mais de uma vez .
pawn Код:
else if (item == 11 && GetPlayerMoney(playerid) >= 10000)
{
if(PlayerInfo[playerid][pTraderPerk] > 0)
{
new skill = 10000 / 100;
new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
new payout = 10000 - price;
GivePlayerMoney(playerid,- payout);
}
else
{
GivePlayerMoney(playerid,-10000);
BizzInfo[3][bTill] += 10000;
ExtortionBiz(3, 10000);
}
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pGalao] += 1;
SCM(playerid, COLOR_MSG, "Vocк comprou um Galгo de gasolina.");
SCM(playerid, COLOR_MSG, "[XVL]: Digite /galao ");
return 1;
}
else
{
SCM(playerid, COLOR_GREY, " Vocк nгo tem dinheiro o suficiente.");
}
}
return 1;
}
pawn Код:
if(!strcmp("/galao", cmdtext, true))
{
if(PlayerInfo[playerid][pGalao] < 1) return SendClientMessage(playerid,-1, "Vocк nгo tem 1 Galгo !");
new ID = GetPlayerVehicleID(playerid);
Gas[ID] += 10; // 1 Galao = 10 Litros
Gas[ID] = GasMax;
}