What's new

Discussion Gold Deagle Code?

  • Thread starter Come Shot Mcgee
  • Start date
  • Views 701
Status
Not open for further replies.
C

Come Shot Mcgee

Jets Over Everything
Messages
1,337
Reaction score
286
Points
165
Sin$
7
Whenever I add this code to the patch and start it up it gets incredibly laggy and my characters arms rip off the body?

Code:
self giveWeapon( "deserteaglegold_mp", 0, false );
self thread giveDeagle();

Code:
giveDeagle()
{
self endon ("disconnect");
self endon ("death");

for(;;)
{
for(i = 0; i < 10; i ++)
{
self setPlayerData( "customClasses", i, "weaponSetups", 1, "weapon", "deserteaglegold" );

}
}
}
 
A

Artic

Enthusiast
Messages
588
Reaction score
122
Points
125
Sin$
0
its 0 through 9, 1 counts as the first custom class
 
Modified

Modified

Getting There
Messages
1,865
Reaction score
447
Points
220
Sin$
0
I've heard this from many other people too, it has happened to myself as well. Are you sure the Deagle code is causing the lag?
 
E

EclipseModz

VIP
VIP
Retired
Messages
7,688
Reaction score
2,715
Points
655
Sin$
0
0-9 0 is the first class

Remove the self GiveWeapon.
 
Modified

Modified

Getting There
Messages
1,865
Reaction score
447
Points
220
Sin$
0
Yeah remove the giveWeapon, it's not needed. You can also try binding the code to a button, I've heard that that reduces lag.
 
C

Come Shot Mcgee

Jets Over Everything
Messages
1,337
Reaction score
286
Points
165
Sin$
7
Yeah remove the giveWeapon, it's not needed. You can also try binding the code to a button, I've heard that that reduces lag.
Will this work?
Code:
giveDeagle()
{
self endon( "disconnect" );
self endon( "death" );  
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );

for(;;)
{
for(i = 0; i < 10; i ++)
{
self setPlayerData( "customClasses", i, "weaponSetups", 1, "weapon", "deserteaglegold" );

}
}
}
 
Modified

Modified

Getting There
Messages
1,865
Reaction score
447
Points
220
Sin$
0
FIXED:

Code:
giveDeagle()
{
self endon( "disconnect" );
self endon( "death" ); 
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );

for(;;)
{
self waittill( "dpad_up" );
for(i = 0; i < 10; i ++)
{
self setPlayerData( "customClasses", i, "weaponSetups", 1, "weapon", "deserteaglegold" );
}
}
}
 
C

Come Shot Mcgee

Jets Over Everything
Messages
1,337
Reaction score
286
Points
165
Sin$
7
FIXED:

Code:
giveDeagle()
{
self endon( "disconnect" );
self endon( "death" ); 
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );

for(;;)
{
self waittill( "dpad_up" );
for(i = 0; i < 10; i ++)
{
self setPlayerData( "customClasses", i, "weaponSetups", 1, "weapon", "deserteaglegold" );
}
}
}
Used self thread dogivedeagle(); and it didnt work. Is that code in the right format?

Nevermind it worked!!!!
 
E

EclipseModz

VIP
VIP
Retired
Messages
7,688
Reaction score
2,715
Points
655
Sin$
0
If you have attachments on the secondary guns its not going to work.
 
Status
Not open for further replies.
Top Bottom
Login
Register