View Single Post
wickedd
Veteran Member
Join Date: Nov 2009
Old 11-25-2015 , 18:21   Re: [HELP] limit buy HP
Reply With Quote #2

PHP Code:
new bool:g_iTem33 ]  // Create a bool for the item

public client_connectid )
{
    
g_iTemid ] = false  // set the bool to false when the player connect
}

public 
whatever_you_wantid )
{
    if( !
g_iTemid ] ) // check to see if it's true or false. if it's false give the player the item
    
{
        
give_itemid"your_weapon" )
        
g_iTemid ] = true // set it true when the player buy the item
    
}
}

public 
round_end()
{
    
arraysetg_iTem0sizeofg_iTem) ) // set it to false at the end of the round.

Here's a way
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline