[Help] Refunds - 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: [Help] Refunds (
/showthread.php?tid=423387)
[Help] Refunds -
xXRealLegitXx - 17.03.2013
How could I refund someone for their transfender purchase or their sprunk purchase?
Re: [Help] Refunds -
xXRealLegitXx - 18.03.2013
- BUMP need help please.
Re: [Help] Refunds -
Don_Cage - 18.03.2013
give money back?
Re: [Help] Refunds -
mastermax7777 - 18.03.2013
pawn Код:
new oldmoney;
public OnEnterExitModShop(playerid, enterexit, interiorid)
{
if(enterexit == 0) // If enterexit is 0, this means they are exiting
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, oldmoney);
} else {
oldmoney = GetPlayerMoney(playerid);
}
return 1;
}
Re: [Help] Refunds -
Scenario - 18.03.2013
The only thing you could do in regards to determining a sprunk purchase is check to see if a player's money decreases by 1. If it did, then it's likely to be a sprunk purchase. :P