[Ajuda] Galгo de Gasolina - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Galгo de Gasolina (
/showthread.php?tid=419710)
Galгo de Gasolina -
Wendell - 02.03.2013
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;
}
Re: Galгo de Gasolina -
paulor - 02.03.2013
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;
}
Respuesta: Re: Galгo de Gasolina -
Wendell - 02.03.2013
Quote:
Originally Posted by paulor
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; }
|
Obrigado , mas eu quiz dizer que o player pode usar o mesmo galгo 2 vezes .
Re: Respuesta: Re: Galгo de Gasolina -
paulor - 02.03.2013
Quote:
Originally Posted by Wendell
Obrigado , mas eu quiz dizer que o player pode usar o mesmo galгo 2 vezes .
|
Explique-se, Pois a maneira que fiz o Player usa 1 galгo e esse galгo й descontado da Var.
Respuesta: Galгo de Gasolina -
Wendell - 02.03.2013
Jб arrumei , obrigado +rep ;