08.09.2010, 12:43
create a variable
then when the player buys the item:
and then when you want to check if the player has bought the item:
pawn Код:
new BoughtItem[MAX_PLAYERS];
pawn Код:
BoughtItem[playerid] = 1;
pawn Код:
if(BoughtItem[playerid] == 1)
{
// do stuff
}
else
{
//player hasn't bought the item
return 1;
}