Need help with the money system filterscripts -
quochuy7915 - 22.11.2014
I'm from Vietnam
bad english

translate.******.com help

The situation is like this you can add Seahorses German
FS Horse Race Betting + Simple Time System but when / cangua [ID] [quantity of] the request, the time to put it sure bet with money that you bet but I think that the money it should reduce its k edit in the FS section
Код:
if (GetPlayerMoney(playerid) >= cash)
To
Код:
if (GetPlayerMoney(playerid) >= Money)
to suit your database server, but then the game bet it reduced the money then it has increased the amount of the same

and FS relating to Money is all so I do not know is how: (anyone have a fix for you are not enthusiastic for mouse crushed Like uncle: D
Thank you sir
Re: Need help with the money system filterscripts -
UltraScripter - 22.11.2014
CND:cash(playerid, params[])
{
new money;
if(sscanf(params, "ui", money)) return SendClientMessage(playerid, 0xFF0000FF, "usage /cash (value)");
If(GetPlayerMoney(playerid) < money) return SendClientMessage(playerid, 0xFF0000FF, "you don't have that value of money!");
GivePlayerMoney(playerid, -money);
return 1;
}
//this is example
//Sorry for taking long time I'm typing in ipad
Re: Need help with the money system filterscripts -
quochuy7915 - 22.11.2014
Код:
COMMAND:cangua(playerid, params[])
{
new horse, Money;
if(!sscanf(params,"ii",horse, Money) && horse < 5 && horse > 0 && Money <= CashHigherBounds && Money >= CashLowerBounds)
{
if (GetPlayerMoney(playerid) >= Money)
{
if (RaceStarted == 1)
{
SendClientMessage(playerid, 0xFF0000FF, "Cuoc dua da bat dau, ban khong dat cuoc.");
}
else
{
if (MoneyBet[playerid] > 0)
{
SendClientMessage(playerid, 0xFF0000FF, "Ban da dat cuoc!.");
}
else
{
MoneyBet[playerid] = Money;
GivePlayerMoney(playerid, -Money);
BetOnHorse[playerid] = horse;
new string[128];
format(string, sizeof(string), "Ban vua duoc %d vao con ngua so %d.",MoneyBet[playerid],BetOnHorse[playerid]);
SendClientMessage(playerid, 0x00FFFFFF, string);
}
}
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "Ban khong co du tien.");
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
PlayerPlaySound(playerid, 5405, X, Y, Z);
}
}
else
{
new string[128];
format(string, sizeof(string), "CU PHAP: /cangua [Ngua so(1-4)][So luong(%d-%d]",CashLowerBounds,CashHigherBounds);
SendClientMessage(playerid, 0xFF0000FF,string);
}
return 1;
}

??
Add in where? not work
Re: Need help with the money system filterscripts -
UltraScripter - 22.11.2014
If you want to give the money to someone do this
New pid;
if(sscanf(params, "ui", pid))
GivePlayerMoney(pid, money);
Re: Need help with the money system filterscripts -
quochuy7915 - 22.11.2014
the additional but does not still does not work

You see reply after
Re: Need help with the money system filterscripts -
UltraScripter - 22.11.2014
ahhm wait bro
Re: Need help with the money system filterscripts -
UltraScripter - 22.11.2014
On The Line Where You'r Bet Win
Add
pawn Код:
GivePlayerMoney(playerid, money);