Jump to content

e bun sistemu asta de de ppforall pe cmd?


Recommended Posts

CMD:ppforall(playerid, params[])
    new amount;
    if(PlayerInfo[playerid][pAdmin] < 6) 
    return SendClientMessage(playerid, -1, "Nu ai acces la aceasta comanda.");
    if(sscanf(params, "d", amount))
    return SendClientMessage(playerid, -1, "Synta: /ppforall <valoare>");
    if(amount <= 0)
    return SendClientMessage(playerid, -1, );
    foreach(new i : Player)
    {
        PlayerInfo[pPremiumPoints] += amount;
        new msg[128];
        format(msg, sizeof(msg),
        "* Administratorul {F03636}%s{FFFFFF} ti-a dat %s Premium Points ca bonus!", amount);
        SendClientMessage(i, 0x00FF00FF, msg);
    }

    return 1;
}

Link to comment
https://easy-code.ro/topic/1691-e-bun-sistemu-asta-de-de-ppforall-pe-cmd/
Share on other sites

  • 4 weeks later...

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
  • Recently Browsing   0 members

    • No registered users viewing this page.

Board Life Status


Board startup date: October 22, 2021 17:08:30


×
×
  • Create New...