[Pedido] Sistema de Caixinha
#5

no Top do GM
pawn Код:
static Caixinha[MAX_PLAYERS];
na sua
pawn Код:
public Payday  coloque Caixinha[i] ++;
na sua public
pawn Код:
OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
Coloque
pawn Код:
if(newkeys == KEY_SECONDARY_ATTACK && IsPlayerInRangeOfPoint(playerid, 4.0, 1480.6571,-1638.2769,14.1484) && Caixinha[playerid] >= 1) {
        static PegarValor, PegarValor2, rString[87];
        Caixinha[playerid] = 0;
        GivePlayerMoney(playerid, PegarValor = random(4000));
        PlayerInfo[playerid][pExp] += PegarValor2 = random(5);
        format(rString, sizeof(rString), "(PRESENTE) Aew manolo vocк ganhou R$ %d e %d de Respeito de presente aproveita viado", PegarValor, PegarValor2);
        SendClientMessage(playerid, 0xAFAFAF66, rString);
        return true;
    }
    if(newkeys == KEY_SECONDARY_ATTACK && IsPlayerInRangeOfPoint(playerid, 4.0, 1480.6571,-1638.2769,14.1484) && Caixinha[playerid] == 0)
        return SendClientMessage(playerid, 0xAFAFAF66, "(PRESENTE) Manolo vocк jб pegou a caixinha aguarde atй o PayDay");
tenta aew manolo.
Reply


Messages In This Thread
[Pedido] Sistema de Caixinha - by Leo_Lost - 01.04.2011, 12:36
Re: [Pedido] Sistema de Caixinha - by zbt_Daimyo - 01.04.2011, 14:25
Re: [Pedido] Sistema de Caixinha - by Leo_Lost - 01.04.2011, 14:51
Re: [Pedido] Sistema de Caixinha - by Strong_ADM - 01.04.2011, 15:21
Re: [Pedido] Sistema de Caixinha - by Strong_ADM - 01.04.2011, 15:54
Re: [Pedido] Sistema de Caixinha - by Leo_Lost - 01.04.2011, 16:03
Re: [Pedido] Sistema de Caixinha - by Kirikage - 01.11.2012, 15:03

Forum Jump:


Users browsing this thread: 2 Guest(s)