View Single Post
FairyTales
New Member
Join Date: Apr 2010
Old 04-25-2010 , 13:55   Re: [L4D2] Weapon Unlock v0.8.1
Reply With Quote #484

The test was completed now.
This version is m60 replace the dessert rifle and appear.

Please end comment, delete the 264th line, and compile the 265th line even to AK47 again when you want to achieve it.

Before
PHP Code:
      case RIFLE_AK47: if ((GetConVarInt(h_SG552Enabled) == 1) && (GetRandomInt(15) == 1)) WeaponSpawn_IDMod[i] = RIFLE_SG552;
//    case RIFLE_AK47: if ((GetConVarInt(h_M60Enabled) == 1) && (GetRandomInt(1, 5) == 1)) WeaponSpawn_IDMod[i] = RIFLE_M60; 
After
PHP Code:
//     case RIFLE_AK47: if ((GetConVarInt(h_SG552Enabled) == 1) && (GetRandomInt(1, 5) == 1)) WeaponSpawn_IDMod[i] = RIFLE_SG552;
       
case RIFLE_AK47: if ((GetConVarInt(h_M60Enabled) == 1) && (GetRandomInt(15) == 1)) WeaponSpawn_IDMod[i] = RIFLE_M60
Sorry for my bad English.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_WeaponUnlock.sp - 560 views - 22.4 KB)
File Type: smx l4d2_WeaponUnlock.smx (10.6 KB, 879 views)
File Type: sp Get Plugin or Get Source (l4d2_WeaponUnlock2.sp - 684 views - 22.4 KB)
File Type: smx l4d2_WeaponUnlock2.smx (10.6 KB, 991 views)

Last edited by FairyTales; 04-25-2010 at 22:22.
FairyTales is offline