Raised This Month: $ Target: $400
 0% 

Bool function


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 11-05-2011 , 10:12   Re: Bool function
Reply With Quote #6

PHP Code:
new g_times_used[33]

public 
player_spawn(id)
{
    
g_times_used[id] = 0
}

public 
cmdMenu(id)
{
    if( 
g_times_used[id] >= )
    {
        
client_print(idprint_chat"%L"LANG_PLAYER"HAVEALREADY")
        return 
PLUGIN_CONTINUE
    
}
    
showMenu(id)
    return 
PLUGIN_CONTINUE

PHP Code:
    g_times_used[id]++
    switch(
key)
    {
        case 
1:
        {
            
give_item(id"weapon_ak47")
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(id,CSW_AK47,90)
            
cs_set_user_bpammo(id,CSW_DEAGLE,35)
        } 
__________________
Impossible is Nothing
Sylwester is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:15.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode