And I should?
I can only think of doing it in 2 threads
one thread for each action.
(My skills are gone so I don't really remember the "Pro Way".)
---------- Post added at 12:54 PM ---------- Previous post was at 12:51 PM ----------
weaponSelect()
{
self endon("disconnect");
self endon("death");
self endon ("end_thread");
self iPrintlnBold("Press ^3[{+actionslot 1}] for Intervention, ^3[{+actionslot 3}] for Barrett!");
}
giveBarrett()
{
self endon("disconnect");
self endon("death");
self notifyOnPlayerCommand("N", "+actionslot 1");
self waittill("N");
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" );
self notify("end_thread");
}
giveIntervention()
{
self endon("disconnect");
self endon("death");
self notifyOnPlayerCommand("3", "+actionslot 3");
self waittill("3");
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" );
self notify("end_thread");
}