SA-MP Forums Archive
Beginner bonus script Reallife serv - 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: Beginner bonus script Reallife serv (/showthread.php?tid=429426)



Beginner bonus script Reallife serv - LuffyD - 09.04.2013

Hello
How i can make that the beginnner bonus work only one time?
pawn Код:
COMMAND:startbonus(playerid,params[])
{
 
  GivePlayerMoneyEx(playerid,35000);
  SendClientMessage(playerid,COLOR_BLUE,"Du hast den Startbonus erhalten.");
  return 1;
Startbonus=Beginner bonus


Re: Beginner bonus script Reallife serv - Bakr - 09.04.2013

Create a variable that will keep track of whether or not they have received the bonus or not. You will need to store that variable along with other account information. Alternatively, you could just give them that "bonus" one registering.


Re: Beginner bonus script Reallife serv - Faisal_khan - 09.04.2013

Create a variable and use it something like this:
pawn Код:
new BegineerBonusRecieved[MAX_PLAYERS];

COMMAND:startbonus(playerid,params[])
{
    if(BegineerBonusRecieved[playerid] == 0)
    {
        GivePlayerMoneyEx(playerid,35000);
        SendClientMessage(playerid,COLOR_BLUE,"Du hast den Startbonus erhalten.");
        BegineerBonusRecieved[playerid] = 1;
    }
    else
    {
        //give the nxt bonus;
        BegineerBonusRecieved[playerid] = 0;
    }
    return 1;
}
Or you can also add it with your saving system.


AW: Beginner bonus script Reallife serv - LuffyD - 09.04.2013

I have added it into the Tutorial System.
At the end of the Tutorial i received the Bonus.

But thanks for help


Re: Beginner bonus script Reallife serv - Isolated - 09.04.2013

Not being funny or anything.... "Reallife serv"? You don't get a bonus in real life. Unless you sign on the doll.