OnPlayerText - Making text dont send to chat?
#4

Maybe this will help you

pawn Код:
public OnPlayerText( playerid, text[] )  // , 4.1, 0, 1, 1, 1, 1);
{
     if(BuyingGuns[playerid] == 1)
           {
         if(strcmp(text, "7", true) == 0 || strcmp(text, "Sawn", true) == 0)
          {
            if(IfUsedGun[playerid] == 1)
            return SendClientMessage(playerid, error, "Please wait before buying another weapon.");
/// -----------------------------------------------
            if(GetPlayerMoney(playerid) <3500)
            {
                SendClientMessage(playerid, error, "You don't have enough money to purchase this item!");
                return 0;
            }
            else
            {
                GivePlayerWeapon(playerid, 26,100);
                SendClientMessage(playerid, 0xFFFFFFFF, "{00FF40}You've purchased a Sawn Off - Shotgun! ( $3500 )");
                return 0;
            }
        }
    }
Reply


Messages In This Thread
OnPlayerText - Making text dont send to chat? - by [Cali]ChrOnic_T - 21.06.2014, 22:01
Re: OnPlayerText - Making text dont send to chat? - by Jefff - 21.06.2014, 22:02
Re: OnPlayerText - Making text dont send to chat? - by Cypress - 21.06.2014, 22:04
Re: OnPlayerText - Making text dont send to chat? - by VenomMancer - 21.06.2014, 22:56

Forum Jump:


Users browsing this thread: 1 Guest(s)