Quote:
Originally Posted by Torge
With a boolean or booleans but depends how many items you add for each boolean. ;D
Example:
PHP Code:
// Bought?
if (g_bBoughtAK47[id])
menu_additem(hMenu, "AK47 [BOUGHT]", "1");
// Not bought?
else
menu_additem(hMenu, "AK47 [NOT BOUGHT]", "1");
|
better method for menu..
example:
PHP Code:
new Temp[101];
formatex(Temp, 100, "AK47 [%s]", g_bBoughtAK47[id] ? "BOUGHT" : "NOT BOUGHT")
menu_additem(hMenu, Temp, "1");