[AJUDA]Comandos
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
     if(strcmp(cmdtext, "/Cardapio", true) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0,1507.8744,-1714.6392,14.0469))
        {
        SendClientMessage(playerid,0xFF0000AA,"Comidas:");
        SendClientMessage(playerid,0xFF0000AA,"/Pastel R$20,00,/Coxinha R$20,00,/Enroladinho R$20,00,/Paodequeijo R$15,00,");
        SendClientMessage(playerid,0xFF0000AA,"/Paodesal R$15,00,/Salgadinho R$15,00,/Bolacha R$15,00");
        SendClientMessage(playerid,0xFF0000AA,"Frutas:");
        SendClientMessage(playerid,0xFF0000AA,"/Morango R$25,00,/Pera R$25,00,/Maзa R$25,00,/uva R$25,00.");
        return 1;
        }
    return 1;
    }
     if(strcmp(cmdtext, "/Pastel", true))
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469))
        {
        GivePlayerMoney(playerid, -20);
        SendClientMessage(playerid,0xFF0000AA,"Voзe comeu um pastel");
        SetPlayerHealth(playerid, 100);
        return 1;
        }
    return 1;
    }
     if(!strcmp("/Coxinha", cmdtext,true))
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469))
        {
        GivePlayerMoney(playerid, -20);
        SendClientMessage(playerid,0xFF0000AA,"Voзe comeu uma coxinha");
        SetPlayerHealth(playerid, 100);
        return 1;
        }
    return 1;
    }
     if(!strcmp("/Enroladinho", cmdtext, true))
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469))
        {
        GivePlayerMoney(playerid, -20);
        SendClientMessage(playerid,0xFF0000AA,"Voзe comeu um enroladinho");
        SetPlayerHealth(playerid, 100);
        return 1;
        }
    return 1;
    } if(!strcmp("/Paodequeijo", cmdtext, true))
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469))
       {
        GivePlayerMoney(playerid, -15);
        SendClientMessage(playerid,0xFF0000AA,"Voзe comeu um pao de queijo");
        SetPlayerHealth(playerid, 100);
        return 1;
        }
        return 1;
    }
     if(!strcmp("/Paodesal", cmdtext, true))
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469)) return GivePlayerMoney(playerid, -15),SendClientMessage(playerid,0xFF0000AA,"Voзe comeu um pao de sal"),SetPlayerHealth(playerid, 100);
        return 1;
    }
     if(!strcmp("/Salgadinho", cmdtext, true))
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469))
        {
        GivePlayerMoney(playerid, -15);
        SendClientMessage(playerid,0xFF0000AA,"Voзe comeu um salgadinho");
        SetPlayerHealth(playerid, 100);
        return 1;
        }
    return 1;
    }
    if(!strcmp("/Bolacha", cmdtext, true))
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469))
        {
        GivePlayerMoney(playerid, -15);
        SendClientMessage(playerid,0xFF0000AA,"Voзe comeu uma bolacha");
        SetPlayerHealth(playerid, 100);
        return 1;
        }
    return 1;
    }

    if(!strcmp("/Morango", cmdtext, true))
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469))
        {
        GivePlayerMoney(playerid, -25);
        SendClientMessage(playerid,0xFF0000AA,"Voзe comeu um morango");
        SetPlayerHealth(playerid, 100);
        return 1;
        }
    return 1;
    }
     if(!strcmp("/Pera", cmdtext, true))
     {
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469))
        {
        GivePlayerMoney(playerid, -25);
        SendClientMessage(playerid,0xFF0000AA,"Voзe comeu uma pera");
        SetPlayerHealth(playerid, 100);
        return 1;
        }
    return 1;
    }
    if(!strcmp("/Maзa", cmdtext, true))
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469))
        {
        GivePlayerMoney(playerid, -25);
        SendClientMessage(playerid,0xFF0000AA,"Voзe comeu uma maзa");
        SetPlayerHealth(playerid, 100);
        }
        return 1;
    }
       if(!strcmp("/Uva", cmdtext, true))
        {
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1507.8744,-1714.6392,14.0469))
        {
        GivePlayerMoney(playerid, -25);
        SendClientMessage(playerid,0xFF0000AA,"Voзe comeu uma uma uva");
        SetPlayerHealth(playerid, 100);
        return 1;
        }
    return 1;
    }
    return 0;
}
Tenta assim
#Identa ai.
Reply


Messages In This Thread
[AJUDA]Comandos - by wevertonneves - 09.10.2011, 20:56
Re: [AJUDA]Comandos - by Dolby - 09.10.2011, 21:02
Re: [AJUDA]Comandos - by wevertonneves - 09.10.2011, 21:11
Re: [AJUDA]Comandos - by Dolby - 09.10.2011, 21:13
Re: [AJUDA]Comandos - by MatriXBorn - 09.10.2011, 21:20
Re: [AJUDA]Comandos - by Dolby - 09.10.2011, 21:21
Re: [AJUDA]Comandos - by wevertonneves - 09.10.2011, 21:28
Re: [AJUDA]Comandos - by Dolby - 09.10.2011, 21:29
Re: [AJUDA]Comandos - by wevertonneves - 09.10.2011, 21:33
Re: [AJUDA]Comandos - by wevertonneves - 09.10.2011, 22:27

Forum Jump:


Users browsing this thread: 7 Guest(s)