For the damage formula, manage yourself, it hurts my eyes..
For the switch statements :
Use a lookup table, you have to implement all weapons, put 1.0 for no change.
PHP Code:
new const Float: g_flDamageFactor[CSW_P90+1] =
{
0.0,
1.0, // CSW_P228
0.0,
1.4, // CSW_SCOUT
etc..
}
damage *= g_flDamageFactor[ get_user_weapon(attacker) ]
For the level and cost :
PHP Code:
switch( level / 10 )
{
case 0: costo *= 1
case 1: costo *= 4
case 2: costo *= 6
case 3: costo *= 8
etc...
__________________