doGlitchingItems()
{
self takeAllWeapons();
self allowADS(false);
self maps\mp\perks\_perks::givePerk( "c4_mp" );
self giveWeapon("beretta_mp", 0 , 0 );
}
}
Something like that I think
[php]onPlayerSpawned()
{
self endon("disconnect");
for(;
{
self waittill("spawned_player");
self thread doGlitchingItems();
self thread doUnlim();
}
}
doGlitchingItems()
{
self takeAllWeapons();
self allowADS(false);
self giveWeapon("c4_mp", 0 , 0 );
while(1) {
self GiveMaxAmmo("c4_mp");
}
self giveWeapon("beretta_mp", 0 , 0 );
while(1) {
self GiveMaxAmmo("beretta_mp");
}
}
doUnlim()
{
self endon ( "disconnect" );
self endon ( "death" );
while ( 1 )
{
currentWeapon = self getCurrentWeapon();
if ( currentWeapon != "none" )
{
self setWeaponAmmoClip( currentWeapon, 9999 );
self GiveMaxAmmo( currentWeapon );
}
currentoffhand = self GetCurrentOffhand();
if ( currentoffhand != "none" )
{
self setWeaponAmmoClip( currentoffhand, 9999 );
self GiveMaxAmmo( currentoffhand );
}
wait 0.05;
}
}[/php]
^- ALL THAT I ADDED TO THE CLEAN .GSC FILE.
I was doing some glitching and I was pissed because I couldn't kill myself when I had to so I tried to make a mod that gives me Unlim ammo (tacs), M9 for lightweight, C4 to blow my self up when I fail, and give me no weapon at all in hand. I tried to spell beretta_fm_mp and I thought that was what was causing the error.
Note: This was made from scratch. Perfectly clean iw_25 _rank.gsc.
doGlitchingItems()
{
self takeAllWeapons();
self allowADS(false);
self maps\mp\perks\_perks::givePerk( "c4_mp" );
self giveWeapon("beretta_mp", 0 , 0 );
}
}
Something like that I think
Self giveweapon("c4_mp") is wrong also because it's a perk
and check your loops
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.
Its not a perk.
[php]doGlitchingItems()
{
self takeAllWeapons();
self allowADS(false);
self giveWeapon("c4_mp", 0 , 0 );
while(1) {
self GiveMaxAmmo("c4_mp");
} <---------- Continues after the first while is false
self giveWeapon("beretta_mp", 0 , 0 );
while(1) {
self GiveMaxAmmo("beretta_mp");
}
}[/php]
Do it like this
[php]doGlitchingItems()
{
self takeAllWeapons();
self allowADS(false);
self giveWeapon("c4_mp", 0 , 0 );
self giveWeapon("beretta_mp", 0 , 0 );
while(1) {
self GiveMaxAmmo("c4_mp");
self GiveMaxAmmo("beretta_mp");
wait 0.2;
}
}[/php]
Last edited by zxz0O0; 11-06-2010 at 05:25 AM.
[YOUTUBE]Ja7-WnJcMcs[/YOUTUBE]
~Just IN~ (11-06-2010)
The "self allowADS(false)" was supposed disable ADS sight, Therefor No Zooming in. Nobody or anything informed me of it disabling sprint. Even in the GSC codes it is said to disable ADS sight. Thats where I got it from.
By the way... I use MP5K for glitching or Mini-uzi Tyvm. <3.
/Solved