PHP Code:
#include <amxmodx>
new bool:boughtitem[33]
public plugin_init()
{
register_event("HLTV", "Event_HLTV_New_Round", "a", "1=0", "2=0")
}
public Event_HLTV_New_Round()
{
arrayset(boughtitem, false, sizeof(boughtitem))
}
or theorically better :
PHP Code:
#include <amxmodx>
new bool:boughtitem[33]
new g_iMaxPlayers
public plugin_init()
{
register_event("HLTV", "Event_HLTV_New_Round", "a", "1=0", "2=0")
g_iMaxPlayers = get_maxplayers()
}
public Event_HLTV_New_Round()
{
arrayset(boughtitem, false, g_iMaxPlayers+1)
}
__________________