Raised This Month: $ Target: $400
 0% 

Menu and spawn stuff


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 06-10-2010 , 20:56   Re: Menu and spawn stuff
Reply With Quote #1

Could you please make an example or the thing? Because I'm rather new to this stuff and don't really know how to use the g_iWeaponChoice thing.
vL. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-10-2010 , 23:12   Re: Menu and spawn stuff
Reply With Quote #2

PHP Code:
new g_iWeaponChoice[33]

// plugin_init()
    
arrayset(g_iWeaponChoice133)


// Ham_Spawn
    // Can be done several ways
    
switch(g_iWeaponChoice[id])
    {
        case 
2:
        {
            
// Second weapon
        
}
        case 
3:
        {
            
// Third weapon
        
}
        default:
        {
            
// default weapon
        
}
    }

// menu handler
    // ...
    
g_iWeaponChoice[id] = key 
__________________
fysiks is offline
Reply



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 05:23.


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