Jump to content

[DELETED]getpp


Waller
 Share

Recommended Posts

Salut, am facut comanda /getpp si /setppstock si cand dau /setstockpp pica sv aici jos aveti comenzile:

/getpp

CMD:getpp(playerid, params[]) {
 if(stockpp > 0)
    {
        if(afolositgetpp[playerid] == 0)
        {
            stockpp--;
      SendClientMessageToAll(COLOR_SERVER, "SERVER BONUS: {FFFFFF}%s a primit %d Premium Points, au mai ramas: %d [/getpp] in stoc.", GetName(playerid), sumapp, stockpp);
      PlayerInfo[playerid][pPremiumPoints] += sumapp;
            Update(playerid, pPremiumPointsx);
            afolositgetpp[playerid] = 1;
         }
         else
         {
             SCM(playerid, COLOR_WHITE, "Ai folosit deja aceasta comanda!");
         }
    }
    else
    {
        SCM(playerid, COLOR_WHITE, "Nu mai sunt [/getpp] in stoc.");
    }
    return 1;
}

 

 

/setppstock

CMD:setppstock(playerid, params[]) {
    if(PlayerInfo[playerid][pAdmin] >= 6)
    {
        new nrstock, nrpp;
        if(sscanf(params, "ii", nrstock, nrpp)) return SCM(playerid, COLOR_WHITE, "/setppstock [stock] [suma (pp)]");
        stockpp = nrstock;
        sumapp = nrpp;
        SendClientMessageToAll(COLOR_SERVER, "SERVER BONUS: {FFFFFF}%s a activat comanda [/getpp], stoc limitat: (%d).",GetName(playerid),nrstock);
        SendClientMessageToAll(COLOR_SERVER, "SERVER BONUS: {FFFFFF}Daca vei fi printre primi %d care vor tasta [/getpp] vei primi %d Premium Points.",nrstock,nrpp);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                afolositgetpp = 0;
            }
        }
    }
    return 1;
}

Link to comment
Share on other sites

  • Hall of Flame🔥

Topic-ul a fost șters deoarece nu ai respectat modelul de postare. Te rugăm sa revii cu alt topic in care să respecți modelul.

Topic șters!

ezgif-com-gif-maker-1-00000.png

Not So Zen SRL

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...