Hours and Coins - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Hours and Coins (
/showthread.php?tid=364984)
Hours and Coins -
farCry.xD - 01.08.2012
How can I make a command to buy something , and for this buy you need coins and hours or something like this ?
pInfo[playerid][Coins] & pInfo[playerid][Hours]
I don't remember how it is ;-?
Re: Hours and Coins -
Kindred - 01.08.2012
Something like this would check if they had 20 hours and 100 coins, and then remove the coins.
pawn Код:
if(pInfo[playerid][Coins] >= 100 && pInfo[playerid][Hours] >= 20)
{
pInfo[playerid][Coins] - amounthere;
//Rest
}
Re: Hours and Coins -
farCry.xD - 01.08.2012
Tnx , this I searched