Atm question.
#8

Quote:
Originally Posted by viddo
Посмотреть сообщение
Код:
	if(strcmp(cmd, "/buy", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (IsPlayerInRangeOfPoint(playerid, 50,-30.875, -88.9609, 1004.53) || IsPlayerInRangeOfPoint(playerid, 50,-22.2385, -55.4614, 1003.0000) || IsPlayerInRangeOfPoint(playerid, 50,-32.6100, -28.9878, 1003.0000) || IsPlayerInRangeOfPoint(playerid, 50,-18.4414, -137.2982, 1003.1798) || IsPlayerInRangeOfPoint(playerid, 50,-21.9642, -184.5048, 1003.0000))//centerpoint 24-7
			{
				if(BizzInfo[7][bProducts] == 0 || BizzInfo[8][bProducts] == 0 || BizzInfo[9][bProducts] == 0 || BizzInfo[10][bProducts] == 0)
				{
					GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
					return 1;
				}
				new Buyitems[] = "1\tCellphone ($150)\n2\tScratch Card ($500)\n3\tPhone Card ($10)\n4\tDice ($10)\n5\tGas Can ($20)\n6\tCondom ($1)\n7\tCamera ($50)\n8\tMask ($500)\n9\tWatch ($100)\n10\tFishing Tools ($150$)\n11\tRope ($10)\n12\tSpray Can ($50)\n13\tLighter ($5)\n14\tCigarretes ($30\n15\tCD Player ($250)\n16\tVehicle GPS Add-On ($1500)\n17\tSpeed-o-Metter ($500)";
				ShowPlayerDialog(playerid,69,DIALOG_STYLE_LIST,"24-7 Market",Buyitems,"Select","Cancel");
			}
			else if (IsPlayerInRangeOfPoint(playerid, 50, -106.0233,-11.1038,1000.7188))
			{
			    new Buysexitems[] = "1\tPurple Dildo ($50)\n2\tBig white Vibrator ($35)\n3\tSmall White Vibrator($10)\n4\tSilver Vibrator ($15)\n5\tCondom ($1)";
				ShowPlayerDialog(playerid,88,DIALOG_STYLE_LIST,"Sex Shop",Buysexitems,"Select","Cancel");
			}
			new y, m, d;
			new h,mi,s;
			getdate(y,m,d);
			gettime(h,mi,s);
			format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /buy",d,m,y,h,mi,s,sendername);
			CommandLog(string);
		}
		return 1;
	}
Where have you added Option to buy a Credit card or some thing which you want to be added in that Command? Where do he buy it from?
Reply


Messages In This Thread
Atm question. - by viddo - 29.02.2012, 12:53
Re: Atm question. - by Ballu Miaa - 29.02.2012, 12:57
Re: Atm question. - by viddo - 29.02.2012, 13:11
Re: Atm question. - by Ballu Miaa - 29.02.2012, 13:19
Re: Atm question. - by viddo - 29.02.2012, 13:23
Re: Atm question. - by Ballu Miaa - 29.02.2012, 13:44
Re: Atm question. - by viddo - 29.02.2012, 15:24
Re: Atm question. - by Ballu Miaa - 29.02.2012, 15:32
Re: Atm question. - by viddo - 29.02.2012, 17:13
Re: Atm question. - by Ballu Miaa - 01.03.2012, 02:17

Forum Jump:


Users browsing this thread: 1 Guest(s)