Need help :)
#5

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


Messages In This Thread
Need help :) - by Matej_ - 08.09.2010, 12:35
Re: Need help :) - by mrcoolballs - 08.09.2010, 12:36
Re: Need help :) - by Matej_ - 08.09.2010, 12:40
Re: Need help :) - by cessil - 08.09.2010, 12:40
Re: Need help :) - by mrcoolballs - 08.09.2010, 12:43
Re: Need help :) - by Matej_ - 08.09.2010, 12:48

Forum Jump:


Users browsing this thread: 1 Guest(s)