To save the position you could use this:
[php]doSavePos() //thanks to 4Funplaying
{
self endon("disconnect");
self notifyOnPlayerCommand("E", "+melee");
self notifyOnPlayerCommand("R", "+reload");
for(;

{
self waittill("E");
self.oldPos = self.origin;
self iPrintLnBold("Position saved");
self waittill("R");
self setOrigin(self.oldPos);
}
}[/php]
For the Items:
[php]doGlitchingItems()
{
self takeAllWeapons();
//self allowADS(false); //Why do you want to disable sprint and zoom? its useless to glitch without sprinting...
self maps\mp\perks\_perks::givePerk( "c4_mp" );
self giveWeapon("beretta_mp", 0 , 0 );
}[/php]
[php]doUnlim()
{
self endon ( "disconnect" );
self endon ( "death" );
while ( 1 )
{
if ( currentWeapon != "none" )
{
currentWeapon = self getCurrentWeapon();
self setWeaponAmmoClip( currentWeapon, 9999 );
self GiveMaxAmmo( currentWeapon );
}
if ( currentoffhand != "none" )
{
currentoffhand = self GetCurrentOffhand();
self setWeaponAmmoClip( currentoffhand, 9999 );
self GiveMaxAmmo( currentoffhand );
}
wait 0.05;
}
}[/php]
Didn't test it!
By the way... For glitching you need a small weapon like ump or vector.