an command help.
#1

well,i have the problem,if i write /learngrabkick in right place and dont have money,it says you dont have money,but if i have it wont say anything,help.thanks command is here:

pawn Код:
if(strcmp(cmd, "/learngrabkick", true) == 0)
    {
      if(IsPlayerConnected(playerid))
      {
            if(GetPlayerMoney(playerid) < 5345)
                  {
                    SendClientMessage(playerid, COLOR_GREY, "You don't have enough money for a grabkick lessons");
                    return 1;
                  }
                        if (!PlayerToPoint(10, playerid,773.7303,1.4662,1001.1402))//elbow
            {
            if(PlayerInfo[playerid][grabkick] == 0)
            {
            SendClientMessage(playerid, COLOR_YELLOW, "Congratulations!You learned grabkick /styles to use it");
            PlayerInfo[playerid][grabkick] = 1;
            SafeGivePlayerMoney(playerid, - 5345);
            OnPlayerUpdate(playerid);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "You Already know how to grabkick!");
            }
            }
        }
        return 1;
    }
Reply


Messages In This Thread
an command help. - by WardenCS - 28.11.2009, 23:52
Re: an command help. - by WardenCS - 29.11.2009, 08:17
Re: an command help. - by Niixie - 29.11.2009, 09:42
Re: an command help. - by Retardedwolf - 29.11.2009, 09:46
Re: an command help. - by WardenCS - 29.11.2009, 09:51
Re: an command help. - by Niixie - 29.11.2009, 09:59
Re: an command help. - by WardenCS - 29.11.2009, 10:02
Re: an command help. - by Niixie - 29.11.2009, 10:28
Re: an command help. - by WardenCS - 29.11.2009, 10:31
Re: an command help. - by Niixie - 29.11.2009, 11:01

Forum Jump:


Users browsing this thread: 3 Guest(s)