Code:
doWeapon()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "n", "+actionslot 1" );
for(;;)
{
self waittill ( "n" );
self giveWeapon("ac130_105mm_mp", 0, false );
self thread doAmmo();
self iPrintlnBold("AC130 105MM Gun Activated!");
self playSound("claymore_activated");
self waittill ( "n" );
self giveWeapon("ac130_40mm_mp", 0, false );
self thread doAmmo();
self iPrintlnBold("AC130 40MM Gun Activated!");
self playSound("claymore_activated")
}
}
Error: Could anyone correct me the error I made, or isnt this even possible at all ?
Thanks in advance.