How to create a starter refunding package? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to create a starter refunding package? (
/showthread.php?tid=272701)
How to create a starter refunding package? -
xPhantom - 29.07.2011
Hello,
I have a server with a RP script and I would like to know how to make a refund package when you register, it gives you a starter package instead of admins /setstat or /refund.....Because admins sometimes arent on...so..
Any help?
Re: How to create a starter refunding package? -
PrawkC - 29.07.2011
Make some player variable that also saves to their account file / row .. like recievedGift.. then onplayer register or spawn or how ever you do it, you can do somelike like
pawn Код:
if(recievedGift[playerid] == 0)
{
Drugs[playerid] += 5;
GivePlayerMoney(playerid, 5000);
recievedGift[playerid] = 1;
// then make sure recievedGifts value of 1 gets saved / loaded with all the other information.
}
.. If you have any knowledge at all then you should be able to do this.. if not then you're not looking for help, you're looking for the script to be made for you, and my response to that is gtfo.
Re: How to create a starter refunding package? -
Famalamalam - 29.07.2011
I'd handle it on a forum not in-game, as for me; they would need proof as to their accounts on other servers, etc. etc.