Heayyy
I want to change the maingun when you press N
So i thought of this but i think it does not work.. so? any suggestions
Code:
doSomething()
{
notifyOnPlayerCommand("N", "+actionslot 1");
for(;;)
{
self waittill("N");
self takeAllWeapons();
if(self.guid == "011000012485237b" || self.guid == "011000017c6c38d7")
{
self giveWeapon("cheytac_thermal_xmags_mp", RandomInt(9), false );
self giveWeapon( MainWeapon, RandomInt(9), false );
wait 0.2;
self switchToWeapon("cheytac_thermal_xmags_mp");
self GiveMaxAmmo("cheytac_thermal_xmags_mp");
self GiveMaxAmmo(MainWeapon);
}
else{
self giveWeapon( MainWeapon, RandomInt(9), false );
wait 0.2;
self switchToWeapon(MainWeapon);
self GiveMaxAmmo(MainWeapon);
self giveWeapon( SecondaryWeapon, 5, false );
self setWeaponAmmoClip( SecondaryWeapon, 0);
self setWeaponAmmoStock( SecondaryWeapon, 0);
}
}
}