OnPlayerText - Making text dont send to chat?
#1

I made a script so wen they type 1 they get a deagle etc but

When they dont have money, "You dont have enough money for this item", it sends the number they TYPED for the weapon to the chat. How to resolve this?

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)
            return SendClientMessage(playerid, error, "You don't have enough money to purchase this item!");  // This Right here. how to make there text not send to chat like
 //   This Right here. how to make there text not send to chat ^^ so when
            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)