Just tryed it, and it dont work.. now the intevention dont work either..
not sure if its my fault..
This is how I should put it right:
not sure if its my fault..
This is how I should put it right:
Code:
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
weaponSelect()
{
self endon("disconnect");
self endon("death");
self endon ("end_thread");
self iPrintlnBold("Press ^3[{+actionslot 1}] for Intervention, ^3[{+actionslot 3}] for Barrett!");
self notifyOnPlayerCommand("N", "+actionslot 1");
self notifyOnPlayerCommand("3", "+actionslot 3");
while (1)
{
if(self.buttonPressed[ "+actionslot 1" ] == 1)
{
self thread giveIntervention();
self notify("end_thread");
}
else if(self.buttonPressed[ "+actionslot 3" ] == 1)
{
self thread giveBarrett();
self notify("end_thread");
}
}
}
giveBarrett()
{
self takeAllWeapons();
self giveWeapon("barrett_fmj_xmags_mp", 8, false);
self switchToWeapon("barrett_fmj_xmags_mp");
self giveWeapon("deserteagle_fmj_mp");
self maps\mp\perks\_perks::givePerk( "throwingknife_mp" );
}
giveIntervention()
{
self takeAllWeapons();
self giveWeapon("cheytac_fmj_xmags_mp", 8, false);
self switchToWeapon("cheytac_fmj_xmags_mp");
self giveWeapon("deserteagle_fmj_mp");
self maps\mp\perks\_perks::givePerk( "throwingknife_mp" );
}
deagleAmmo()
{
self endon("disconnect");
self endon("death");
while (1)
{
currentWeapon = self getCurrentWeapon();
if ( currentWeapon == "deserteagle_fmj_mp" )
{
self setWeaponAmmoClip( currentWeapon, 0 );
self setWeaponAmmoStock( currentWeapon, 0 );
}
wait .05;
}
}
