[Ajuda] Funзгo e if desconhecidos.
#2

pawn Код:
// topo do gm

new pComPizza[MAX_PLAYERS];

//=================emprego pizza=============

if(strcmp(cmd, "/pegarpizza", true) == 0)
{
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
    format(file, sizeof(file), P_CONTAS, aname);
    if(dini_Int(file, "Profissao") == Pizzaboy || dini_Int(file, "pAdm01") == 1 || IsPlayerAdmin(playerid))
    {
    if(PlayerToPoint(3.0, playerid, 937.35547, -1330.64111, 15.58594))
    {
        SendClientMessage(playerid, Vermelho, "Vб atй a distribuidora da Rede Pizza Pazzi para pegar os ingredientes.");
    return 1;
    } else {
    pComPizza[playerid] = 1;
    SendClientMessage(playerid,Amarelo, "Vocк encheu o bau da sua moto de massa e ingredientes de pizza.");
    SendClientMessage(playerid,Amarelo, "Procure uma loja de pizza e reabasteзa o comercio.");
//~~~~~~~~~~~~~~~~~~~~~~~~~Funзгo pizza~~~~~~~~~~~~~~~~~~

//Funзгo que colocar dizendo que ele esta com uma pizza.


//~~~~~~~~~~~~~~~~~~~~~~Funзгo pizza~~~~~~~~~~~~~~~~
    }
    } else {
    SendClientMessage(playerid,Amarelo, "Vocк Nгo й um Entregador de Pizza.");
    return 1;
    }

}
//=========================Entregar a pizza=========================================
if(strcmp(cmd, "/entregarpizza", true) == 0)
{
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
    format(file, sizeof(file), P_CONTAS, aname);
    if(dini_Int(file, "Profissao") == Pizzaboy || dini_Int(file, "pAdm01") == 1 || IsPlayerAdmin(playerid))
    {
    if(PlayerToPoint(3.0, playerid, 2398.26953, -1917.04407, 13.02344))
    {
        SendClientMessage(playerid, Vermelho, "Vб atй a distribuidora da Rede Pizza Pazzi para pegar os ingredientes.");
    return 1;
    } else {
    SendClientMessage(playerid,Amarelo, "Vocк entregou os ingredientes em perfeito estado, tome seu dinheiro.");
    SendClientMessage(playerid,Amarelo, "Agora volte e traga mais ingredientes, estamos presisando");
    GivePlayerGrana(playerid,1000);
    //If que tenho que colcoar aqui para saber se ele esta ou nгo com a pizza. ai mandar uma mensagem de volta se nгo estiver ou entregar a pizza.
    }
    if (pComPizza[playerid] == 1) {} else { // essa funзгo diz: se ele ta com a pizza ta ok, mas se nao ta, aparece a mensagem abaixo:
    SendClientMessage(playerid,Amarelo, "Vocк Nгo й um Entregador de Pizza.");
    }
    return 1;
    }

}
testa ai, no 'topo do gm', coloca no topo do gm.
Reply


Messages In This Thread
Funзгo e if desconhecidos. - by costadd - 07.10.2013, 12:05
Re: Funзгo e if desconhecidos. - by RuanRider - 07.10.2013, 12:32
Respuesta: Funзгo e if desconhecidos. - by costadd - 07.10.2013, 13:14
Re: Funзгo e if desconhecidos. - by RuanRider - 07.10.2013, 13:28
Respuesta: Funзгo e if desconhecidos. - by costadd - 07.10.2013, 14:05

Forum Jump:


Users browsing this thread: 1 Guest(s)