SA-MP Forums Archive
Auto-Refund for RP Servers - 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: Auto-Refund for RP Servers (/showthread.php?tid=469679)



Auto-Refund for RP Servers - DouglasRamirez - 14.10.2013

Hello Guys,

How can I add Auto-Refund on my server? Like when a new player register then he's done he will get auto-refund which is (250k/GVIP/25kmats/50pots/grams/) something like that.


Re: Auto-Refund for RP Servers - edzis84 - 14.10.2013

Same as you set starter money, starter skin to them, just add another lines with your guns, money drugs etc.


Re: Auto-Refund for RP Servers - DuongNghia - 14.10.2013

Up, i'm need that too


Re: Auto-Refund for RP Servers - edzis84 - 14.10.2013

Just answered to your question!

If you can't do that, just gimme your code of registration, i will show you.


Re: Auto-Refund for RP Servers - DuongNghia - 14.10.2013

Up, i'm need that too


Re: Auto-Refund for RP Servers - DouglasRamirez - 14.10.2013

What is the codes?

:UP:


Re: Auto-Refund for RP Servers - JohnRazer - 14.10.2013

pawn Код:
public OnPlayerConnect(playerid)
{
    GivePlayerCash(playerid, 250000);
    pInfo[playerid][pDonateRank] = //Whatever your rank is
    pInfo[playerid][pMats] = 25000;
    pInfo[playeridd][pPots] = 50;
}
Not tested, it'd be better if you just told us which script you are using or post the gamemode.


Re: Auto-Refund for RP Servers - Ayumi - 15.10.2013

Quote:
Originally Posted by JohnRazer
Посмотреть сообщение
pawn Код:
public OnPlayerConnect(playerid)
{
    GivePlayerCash(playerid, 250000);
    pInfo[playerid][pDonateRank] = //Whatever your rank is
    pInfo[playerid][pMats] = 25000;
    pInfo[playeridd][pPots] = 50;
}
Not tested, it'd be better if you just told us which script you are using or post the gamemode.
Wouldn't recommend the above as it will always give them 250,000 upon connecting, whether they are new or not.

Search for the registration section of your script and paste it here in the [ pawn ] tags.