Saving spawned class?

Posts 12 of 2 · Page 1 of 1
Saving spawned class?
Ok so if I'm using a basic walking AC130 mod:
[PHP]doAc130()
{
self VisionSetNakedForPlayer( getDvar("mapname"), .1 );

self freezeControls(false);
self notify ( "exitMenu" );

self takeAllWeapons();
self clearPerks();
self giveWeapon( "ac130_105mm_mp", 0, false );
self switchToWeapon( "ac130_105mm_mp" );
while(self getCurrentWeapon() == "none")
{
self switchToWeapon("ac130_105mm_mp");
wait 0.05;
}
self giveMaxAmmo ( "ac130_105mm_mp" );
self setWeaponAmmoStock ( "ac130_105mm_mp" );

}
[/PHP]
But I only want it to last 60 seconds, I know I add:
[PHP]wait 60;[/PHP]
but is there a way to give the player back their exact loadout they had before I gave them the AC130 gun?

Oh and I tried the giving the AC130 gun without taking everything and it did not give it.

Thanks in advanced
Posts 12 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?