Raised This Month: $ Target: $400
 0% 

random weapons on spawn


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 11-26-2006 , 06:34   Re: random weapons on spawn
Reply With Quote #9

Quote:
Originally Posted by Emp` View Post
Code:
    new ammo[21]
    
    switch(weapon)
    {
        case CSW_P228: ammo = "ammo_357sig"
        case CSW_SCOUT: ammo = "ammo_762nato"
        //etc...
won't work/is very bad. use the following
Code:
case CSW_P228: copy(ammo, 20, "ammo_357sig")
umm.
Quote:
Originally Posted by VEN
For get_ammotype you don't really need to perform a copy every time, it's inefficient.
Deviance 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 06:50.


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