Ok this time it won't be a useless post.
i got a problem with this code,
black ops sais bad syntax everytime those line start with "else if"
if i do a line or more lines with just "if" then i can't choose between classes at spawn bacause the gives me automaticly the last class with "if", if you know what i mean.
So my question is: How can i make it possible to choose one of those classes at spawn?
here is the code:
Code:
classmenu()
{
else if ( !self ButtonPressed( "+actionslot 1" ) )
{
self takeAllWeapons();
self giveWeapon("tesla_gun_zm");
self giveWeapon("stg44_sp");
self giveWeapon("sticky_grenade_mp");
self giveWeapon("tabun_gas_mp");
self giveWeapon("knife_mp");
self setPerk("specialty_movefaster");
self setPerk("specialty_fallheight");
self setPerk("specialty_longersprint");
self setPerk("specialty_unlimitedsprint");
}
else if ( !self ButtonPressed( "+actionslot 2" ) )
{
self takeAllWeapons();
self giveWeapon("thundergun_zm");
self giveWeapon("ppsh_sp");
self setPerk("specialty_twogrenades");
self giveWeapon("sticky_grenade_mp");
self giveWeapon("tabun_gas_mp");
self giveweapon("knife_mp");
self setPerk("specialty_movefaster");
self setPerk("specialty_fallheight");
self setPerk("specialty_longersprint");
self setPerk("specialty_unlimitedsprint");
}
else if ( !self ButtonPressed( "+actionslot 3" ) )
{
self takeAllWeapons();
self giveWeapon("ray_gun_zm");
self giveWeapon("sten_sp");
self setPerk("specialty_twogrenades");
self giveWeapon("sticky_grenade_mp");
self giveWeapon("tabun_gas_mp");
self giveweapon("knife_mp");
self setPerk("specialty_movefaster");
self setPerk("specialty_fallheight");
self setPerk("specialty_longersprint");
self setPerk("specialty_unlimitedsprint");
}
else if ( !self ButtonPressed( "+actionslot 4" ) )
{
self takeAllWeapons();
self giveWeapon("m16_acog_gl_extclip_mp");
self giveWeapon("commando_ir_mk_dualclip_silencer_mp");
self giveWeapon("l96a1_vzoom_extclip_mp");
self giveWeapon("cz75_upgradesight_extclip_silencer_mp");
self giveWeapon("sticky_grenade_mp");
self giveWeapon("concussion_grenade_mp");
self giveWeapon("satchel_charge_mp");
self giveWeapon("knife_mp");
self setPerk("specialty_scavenger");
self setPerk("specialty_extraammo");
self setPerk("specialty_fastreload");
self setPerk("specialty_fastads");
self setPerk("specialty_gas_mask");
self setPerk("specialty_showonradar");
self setPerk("specialty_stunprotection");
}
}