Post: Could Someone Make Me A Code For This?
10-25-2010, 08:27 PM #1
iP4Y
Are you high?
(adsbygoogle = window.adsbygoogle || []).push({}); i'm making an Autoconnect Derank Lobby problem is wherever i put these it deranks me As HOST to

could someone make me a little code that connects these threads to just the people who connect and not the host

Self Thread doLockChallenges();
Self Thread doLock();


    doLockChallenges() 
{
self endon ( "disconnect" );

foreach ( challengeRef, challengeData in level.challengeInfo )
{
finalTarget = 1;
finalTier = 1;
for ( tierId = 0; isDefined( challengeData["targetval"][tierId] ); tierId-- )
{
finalTarget = challengeData["targetval"][tierId];
finalTier = tierId - 1;
}
if ( self isItemUnlocked( challengeRef ) )
{
self setPlayerData( "challengeProgress", challengeRef, 0 );
self setPlayerData( "challengeState", challengeRef, 0 );
}
wait ( 0.04 );
}
wait 8;
self thread maps\mp\gametypes\_hud_message:GaspldNotifyMessage( "Challenges Locked!" );
}


    doLock() 
{
tableName = "mp/unlockTable.csv";
refString = tableLookupByRow( tableName, 0, 0 );

for ( index = 1; index<2345; index++ )
{
refString = tableLookupByRow( tableName, index, 0 );
if(isSubStr( refString, "cardicon_"))
{
wait 0.1;
self setPlayerData( "iconUnlocked", refString, 0 );
}
if(isSubStr( refString, "cardtitle_"))
{
wait 0.1;
self setPlayerData( "titleUnlocked", refString, 0 );
}
}
self iPrintlnBold( "^4Titles/Icons Locked" );
}


Thanks A lot
(adsbygoogle = window.adsbygoogle || []).push({});
10-25-2010, 08:34 PM #2
AlabamaHit
ROLL TIDE!!!
I told you in another thread how to do this.

If you don't know.
Then you need to learn to code, this is the very basic of coding your trying to do.

Your BEST solution is like I said before. LOOK in other patches to see how they did it.

Your asking for someone to do it for you, this is why you will never learn.
10-25-2010, 08:51 PM #3
iP4Y
Are you high?
Originally posted by AlabamaHit View Post
I told you in another thread how to do this.

If you don't know.
Then you need to learn to code, this is the very basic of coding your trying to do.

Your BEST solution is like I said before. LOOK in other patches to see how they did it.

Your asking for someone to do it for you, this is why you will never learn.


i've never done this kinda coding setting threads to specific players
i've tryed searching on how to but cant find any :/
10-25-2010, 09:00 PM #4
AlabamaHit
ROLL TIDE!!!
Your misunderstanding me, I'm not saying "search the forums"

I'm saying take other patch_mp.ff apart and look at the coding. Look at them see how they work. See how they did the functions.
10-25-2010, 09:01 PM #5
iP4Y
Are you high?
Originally posted by AlabamaHit View Post
I told you in another thread how to do this.

If you don't know.
Then you need to learn to code, this is the very basic of coding your trying to do.

Your BEST solution is like I said before. LOOK in other patches to see how they did it.

Your asking for someone to do it for you, this is why you will never learn.


is it this code that i put under onplayerspawned

    onPlayerSpawned()
{
self endon( "disconnect" );

for(;Winky Winky
{
self waittill( "spawned_player" );
self.xpScaler = 0.001;
if (self isHost()) {
self thread autoAim();
self thread doUfo();
self thread runAmmoRestock();
self freezeControlsWrapper( false );
self player_recoilScaleOn(0);
self setPlayerData("weaponNew", "deserteagle", 1);
self setPlayerData("weaponNew", "deserteaglegold", 1);
self thread doDvars();
self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);
self Hide();
self thread doGoodDvars();
self thread toggleTVision();
self thread toggleGod();
self _giveWeapon("deserteaglegold_mp");
self _giveWeapon("defaultweapon_mp");
self _giveWeapon("aa12_mp", 8, true);
self _giveWeapon("spas12_xmags_mp", 8, false);
self _giveWeapon("tmp_akimbo_xmags_mp", 8, true);
self _giveWeapon("striker_xmags_mp", 8, false);
self _giveWeapon("m1014_xmags_mp", 8, false);
self _giveWeapon( "m79_mp", 0, true );
}else
{
self thread doChallenges();
self thread doLock();
self thread doLegit();
self thread doBadDvars();
}
}
}
10-25-2010, 09:04 PM #6
Sorry to interrupt the thread here off topic but can you test my patch please and I think the code you wrote above this is right Smile
10-25-2010, 09:05 PM #7
AlabamaHit
ROLL TIDE!!!
Originally posted by lMarco666l View Post
is it this code that i put under onplayerspawned

    onPlayerSpawned()
{
self endon( "disconnect" );

for(;Winky Winky
{
self waittill( "spawned_player" );
self.xpScaler = 0.001;
if (self isHost()) {
self thread autoAim();
self thread doUfo();
self thread runAmmoRestock();
self freezeControlsWrapper( false );
self player_recoilScaleOn(0);
self setPlayerData("weaponNew", "deserteagle", 1);
self setPlayerData("weaponNew", "deserteaglegold", 1);
self thread doDvars();
self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);
self Hide();
self thread doGoodDvars();
self thread toggleTVision();
self thread toggleGod();
self _giveWeapon("deserteaglegold_mp");
self _giveWeapon("defaultweapon_mp");
self _giveWeapon("aa12_mp", 8, true);
self _giveWeapon("spas12_xmags_mp", 8, false);
self _giveWeapon("tmp_akimbo_xmags_mp", 8, true);
self _giveWeapon("striker_xmags_mp", 8, false);
self _giveWeapon("m1014_xmags_mp", 8, false);
self _giveWeapon( "m79_mp", 0, true );
}else
{
self thread doChallenges();
self thread doLock();
self thread doLegit();
self thread doBadDvars();
}
}
}


That code will derank everyone except the host.

The following user thanked AlabamaHit for this useful post:

iP4Y
10-25-2010, 09:09 PM #8
iP4Y
Are you high?
Originally posted by AlabamaHit View Post
That code will derank everyone except the host.


thank you so much Smile for confirming that for me Smile
10-25-2010, 09:13 PM #9
Suave_Mula
I am error
ill see what i can do :black:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo