PHP Code:
new bool:g_iTem[ 33 ] // Create a bool for the item
public client_connect( id )
{
g_iTem[ id ] = false // set the bool to false when the player connect
}
public whatever_you_want( id )
{
if( !g_iTem[ id ] ) // check to see if it's true or false. if it's false give the player the item
{
give_item( id, "your_weapon" )
g_iTem[ id ] = true // set it true when the player buy the item
}
}
public round_end()
{
arrayset( g_iTem, 0, sizeof( g_iTem) ) // set it to false at the end of the round.
}
Here's a way
__________________