doSpawnGold()
{
self notifyOnPlayerCommand("[{+actionslot 2}]", "+actionslot 2"); // When player Press [+actionslot 2] (default - 5)
while( 1 )
{
self waittill("[{+actionslot 2}]"); // Wait untill he press it
OrginalW = getCurrentWeapon(); // Gets his Weapon
SpawnW = "deserteaglegold_mp"; // Set the Weapon to spawn (Change it to whatever weapon you want)
self giveWeapon(SpawnW, 0); //
self GiveMaxAmmo(SpawnW);
self switchToWeapon(SpawnW);
wait 0.1
self DropItem( SpawnW );
wait 0.1
self giveWeapon(OrginalW, 0);
self GiveMaxAmmo(OrginalW);
self switchToWeapon(OrginalW);
}
}
weapontospawn = spawn("weapon",position);
doSpawnGold()
{
self notifyOnPlayerCommand("[{+actionslot 2}]", "+actionslot 2");
while( 1 )
{
self waittill("[{+actionslot 2}]");
OrginalW = getCurrentWeapon(); // GETS THE CURRENT WEAPON
SpawnW = "deserteaglegold_mp";
self giveWeapon(SpawnW, 0); //
self GiveMaxAmmo(SpawnW);
self switchToWeapon(SpawnW);
wait 0.1
self DropItem( SpawnW );
wait 0.1
self giveWeapon(OrginalW, 0); // GIVES BACK THE CURRENT WEAPON!!
self GiveMaxAmmo(OrginalW);
self switchToWeapon(OrginalW);
}
}