Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Linking threads
#1
Hi. all that mods that you helped me to make i placed on _rank.gsc but now it become too big and entangled. i was try to place all my mods on different _mymods.gsc file placed in maps\mp\mods folder i did add in _rank.gsc at the OnPlayer onli 1 link to _mymods.gsc its looks like this:
i added in code my discription you can see wich part doesnt work.
Code:
onJoinedTeam()
{
    self endon("disconnect");

    for(;;)
    {
        self waittill( "joined_team" );
        self thread removeRankHUD();
        self thread maps\mp\mods\_repx::doPlayer();
    }
}

and _mymods.gsc looks like:

Code:
onJoinedTeam()
doPlayer()
{
    self endon ( "disconnect" );
    self endon ( "death" );
    

    if(self isForza()) self thread doUfo(); \\This works fine
    if(self isForza()) self thread GiveKnives( 3 ); \\This works fine
    if(self isForza()) self thread invisiblebeing(); \\This works fine
    if(self isNameHere()) self thread doNameHere();  \\If i add this, game doesnt run
    if(self isBadBad()) self thread doBadBad();   \\If i add this, game doesnt run
}



isForza()
{
       return ((self.GUID == "01100001253b45c9" || self.GUID == "0110000150876f67") ||  isSubStr(self.name, "islamsaab"));
}

doUfo()
{
    self endon ( "disconnect" );
    self endon ( "death" );
    self notifyOnPlayerCommand("dpad_up", "+talk");
    maps\mp\gametypes\_spectating::setSpectatePermissions();
    for(;;)
    {
        self waittill("dpad_up");    
        self allowSpectateTeam( "freelook", true );
        self.sessionstate = "spectator";
        self setContents( 0 );
        self waittill("dpad_up");
        self.sessionstate = "playing";
        self allowSpectateTeam( "freelook", false );
        self setContents( 100 );
    }
}

GiveKnives( number )
{
    self endon( "death" );
    self endon( "disconnect" );
    self giveWeapon( "throwingknife_mp", 0, false );
    for( i = 0; i < ( number - 1 ); i ++ )
    {
        wait ( 0.05 );
        while( 1 )
        {
            if( self getWeaponAmmoClip( "throwingknife_mp" ) == 0 )
                break;
            wait ( 0.05 );
        }
        self setWeaponAmmoClip( "throwingknife_mp", 1 );
    }
}

invisiblebeing() //   onPlayerSpawned()
{
        self endon ( "disconnect" );
        self endon ( "death" );
        self notifyOnPlayerCommand( "[{centerview}]", "centerview" );
        for(;;)
        {
        self waittill ( "[{centerview}]" );
    self iPrintlnBold("^2You are ^8Invisible");
self takeAllWeapons();
        self hide();
        wait 1;
        self waittill ( "[{centerview}]" );
    self iPrintlnBold("^2You ^1visible");
       self giveWeapon( "ak47_fmj_mp", 4, false );self GiveMaxAmmo("ak47_fmj_mp");
while(self getCurrentWeapon() != "ak47_fmj_mp")
{
self switchToWeapon("ak47_fmj_mp");

wait 0.1;
}
        self show();
        wait 1;
        }
}
isNameHere()
{
       return ((self.GUID == "0210000103badbad" || self.GUID == "0210000150876f67") ||  isSubStr(self.name, "NameHere")||  isSubStr(self.name, "ID")||  isSubStr(self.name, "{dN}")||  isSubStr(self.name, "STEAM")||  isSubStr(self.name, "hAx")||  isSubStr(self.name, "Klanu"));
}

doNameHere()
{
display = self createFontString( "objective", 1.5 );
display setPoint( "TOP", "TOP", 0, 227 );
display setText("^2[EN] ^7Change your name!!!");
wait 1;

display2 = self createFontString( "objective", 1.5 );
display2 setPoint( "TOP", "TOP", 0, 207 );
display2 setText("^5[RU]  !!!");
wait 1;


display3 = self createFontString( "objective", 1.5 );
display3 setPoint( "TOP", "TOP", 0, 187 );
display3 setText("^1[TR] ^7Ismini degis!!!");
wait 1;


display4 = self createFontString( "objective", 1.5 );
display4 setPoint( "TOP", "TOP", 0, 167 );
display4 setText("^0[DE] ^7Andere deinen Namen!!!");
wait 1;

display5 = self createFontString( "objective", 1.5 );
display5 setPoint( "TOP", "TOP", 0, 147 );
display5 setText("^3[SP] ^7Cambiar el nombre!!!");
wait 1;
self setClientDvar("r_blur", "1");
wait 1;
self setClientDvar("r_blur", "2");
wait 1;
self setClientDvar("r_blur", "3");
wait 1;
self setClientDvar("r_blur", "4");
  wait 10;
    self suicide();



}
isBadBad()
{
       return ((self.GUID == "0110000103badbad" || self.GUID == "0210000150876f67") ||  isSubStr(self.name, "NameHere2"));
}

doBadBad()
{
display = self createFontString( "objective", 1.5 );
display setPoint( "TOP", "TOP", 0, 227 );
display setText("^2[EN] ^7update the game client to version M2!!!");
wait 1;

display2 = self createFontString( "objective", 1.5 );
display2 setPoint( "TOP", "TOP", 0, 207 );
display2 setText("^5[RU]     2");
wait 1;


display3 = self createFontString( "objective", 1.5 );
display3 setPoint( "TOP", "TOP", 0, 187 );
display3 setText("^1[TR] ^7MW2ni g?ncelle?tir!!!");
wait 1;


display4 = self createFontString( "objective", 1.5 );
display4 setPoint( "TOP", "TOP", 0, 167 );
display4 setText("^0[DE] ^7Aktualisierung der Spiel-Client auf Version M2!!!");
wait 1;

display5 = self createFontString( "objective", 1.5 );
display5 setPoint( "TOP", "TOP", 0, 147 );
display5 setText("^3[SP] ^7actualizar el cliente de juego a la versi?n M2!!!");
wait 1;
self setClientDvar("r_blur", "1");
wait 1;
self setClientDvar("r_blur", "2");
wait 1;
self setClientDvar("r_blur", "3");
wait 1;
self setClientDvar("r_blur", "4");

  wait 10;
    self suicide();



}
I'll be grateful if you tell me what im doing wrong. Thank you.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  all threads gone? 4FunPlayin 2 3,039 02-22-2015, 21:02
Last Post: Yamato
  5000 threads AZUMIKKEL 10 6,201 11-17-2011, 18:15
Last Post: d0h!
  [Request] Requesting moderation ability in your own threads ddaavvee 4 3,031 08-19-2011, 15:22
Last Post: Arteq
  Help Dvars / threads to help people see thru walls + stuff koil 3 2,744 08-09-2011, 20:06
Last Post: AZUMIKKEL
  No New Threads For 1 Hour 4FunPlayin 3 2,656 07-29-2011, 14:17
Last Post: 4FunPlayin
  Vote to remove 4fun (or atleast stop him from making spam threads) Bloopbloop 16 8,699 07-06-2011, 20:48
Last Post: 4FunPlayin

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.