[Ajuda] /promo
#5

pawn Код:
new
    bool: playerPromo[MAX_PLAYERS] = false;

if(strcmp(cmd, "/promo", true) == 0) {
    if (playerPromo[playerid])
        return SendClientMessage(playerid, -1, "Vocк ja pegou sua Promoзгo!");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Parabйns, vocк pegou sua promoзгo!");
    PlayerInfo[playerid][pVIP] = 1;
    PlayerInfo[playerid][pLevel] += 100;
    GivePlayerMoney(playerid, 150000000);
    playerPromo[playerid] = true;
    return true;
}
Salve a variбvel no arquivo do jogador, caso contrбrio, se o jogador relogar ele poderб pegar novamente.
Reply


Messages In This Thread
/promo - by felipe_mr - 25.05.2013, 01:27
Re: /promo - by Caio_Freeze - 25.05.2013, 01:30
Re: /promo - by lucaspilar - 25.05.2013, 01:42
Re: /promo - by felipe_mr - 25.05.2013, 01:44
Re: /promo - by Lуs - 25.05.2013, 03:23
Re: /promo - by felipe_mr - 26.05.2013, 02:40
Re: /promo - by felipe_mr - 26.05.2013, 02:43
Re: /promo - by felipe_mr - 26.05.2013, 17:10
Re: /promo - by felipe_mr - 27.05.2013, 00:30
Re: /promo - by felipe_mr - 30.05.2013, 01:23

Forum Jump:


Users browsing this thread: 3 Guest(s)