[Ajuda] Loja de Armas
#2

Troque

pawn Код:
CMD:lojadearmas(playerid, params[])
{
    ShowPlayerDialog(playerid, 123, DIALOG_STYLE_LIST, "Loja De Armas", "Ealge 1500$\nSniper 3000$\nM4 2000$\nMP5 1900$\nFaca 100$\nRebite 500$\nVida 1000$\nColete 1500$\nKIT 15000 ", "Comprar", "Sair");
    return true;
}
por

pawn Код:
CMD:lojadearmas(playerid)
{
    if(!IsPlayerInRangeOfPoint(playerid, 2.0, Posx, PosY, PosZ)) return SendClientMessage(playerid, -1, "[SERVER] Voce nao esta na loja de Armas");
    {
        ShowPlayerDialog(playerid, 123, DIALOG_STYLE_LIST, "Loja De Armas", "Ealge 1500$\nSniper 3000$\nM4 2000$\nMP5 1900$\nFaca 100$\nRebite 500$\nVida 1000$\nColete 1500$\nKIT 15000 ", "Comprar", "Sair");
    }
    return true;
}

// ouuu

CMD:lojadearmas(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 2.0, Posx, PosY, PosZ))
    {
        ShowPlayerDialog(playerid, 123, DIALOG_STYLE_LIST, "Loja De Armas", "Ealge 1500$\nSniper 3000$\nM4 2000$\nMP5 1900$\nFaca 100$\nRebite 500$\nVida 1000$\nColete 1500$\nKIT 15000 ", "Comprar", "Sair");
    }
    else
    {
        SendClientMessage(playerid, -1, "[SERVER] Voce nao esta na loja de Armas");
    }
    return true;
}
Lembrando Substitua a

PosX =Pela Coordenada X
PosY = Pela Coordenada Y
PosZ = Pela Coordenada Z

do local onde o player podera executar o comando
Reply


Messages In This Thread
Loja de Armas - by Owtsiixx_Twd - 21.08.2012, 02:54
Re: Loja de Armas - by Maklister - 21.08.2012, 03:04

Forum Jump:


Users browsing this thread: 1 Guest(s)