Beginner bonus script Reallife serv
#1

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
Reply
#2

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.
Reply
#3

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.
Reply
#4

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

But thanks for help
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)