House help
#3

Use two arrays, one holds the keys, one is a boolean like this:

pawn Код:
enum HouseInfo /* or whatever u haz */
{
    bool:KeyEnable[MAX_KEYS],
    Keys[MAX_KEYS]
};

/* then in your command u check if KeyEnable[KEYID] and if it is, you allow him to have a key on that array
    and in order for you to check if he still has keys left u just loop through MAX_KEYS and check if theres one
    which is KeyEnable but Keys is not set yet. Simple.
*/
Reply


Messages In This Thread
House help - by trapstar2020 - 12.06.2012, 01:49
Re: House help - by leonardo1434 - 12.06.2012, 03:25
AW: House help - by Extremo - 12.06.2012, 05:01

Forum Jump:


Users browsing this thread: 1 Guest(s)