06.12.2010, 18:40
pawn Код:
if (strcmp("/buypizza", cmdtext, true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.843)
{
if(pizza[playerid] == 1)
{
return SendClientMessage(playerid,COLOR_GREY,"You've already bought a pizza!");
} else
{
SendClientMessage(playerid,COLOR_GREY,"You bought a pizza!");
GivePlayerMoney(playerid, -50);
pizza[playerid]=1;
}
}
return 1;
}