Results 1 to 3 of 3
  1. #1
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,539
    My Mood
    Angelic

    How To Make Custom Killstreaks

    NB: I didn't make the code ( Credits below )

    Make a New GSC file.

    Name it: _killstreak.gsc
    ( You can chage, but I made it based on this name. Will show below.)

    #include maps\mp\_utility;

    doKillstreaks()
    {
    self endon ("death");

    self.startscore = self.pers["kills"];

    while(1) {
    if(self.killcount != self.pers["kills"] - self.startscore) {
    self.killcount = self.pers["kills"] - self.startscore;
    switch(self.killcount)
    {
    case 1: //This is the Killstreak Number the player need
    self notify("newstreak");
    //Here you add the action/thread for what gone happen
    break;
    case 2: //This is the Killstreak Number the player need
    self notify("newstreak");
    //Here you add the action/thread for what gone happen
    break;
    }
    }
    wait 0.05;
    }
    }
    How to change the Killstreak Number:
    The case ?: is the Killstreak, so you change that to the wanted Killstreaks the player need until it get's it.
    case 1:
    case 2:
    case 5:
    case 10:
    How to add Actions:
    Code:
    			case 1:  Need 1 Killstreak.
    				self notify("newstreak");
    And here I will but the action. ( But I recommend to use threads to make it easyer to edit. If it's something long. )
    				break;
    
    ____________________________________________________________________________________________________________________
    
    Going to look like this:
    
    			case 1:  Need 1 Killstreak.
    				self notify("newstreak");
                                    self giveWeapon( "coltanaconda_mp");
    				break;
    How do I add it:

    You will add this line into your GSC ( _rank.gsc ) in the wanted thread OR inside doDvars() / OnPlayerSpawned()
    self thread maps\mp\gametypes\_mykillstreaks::doKillstreaks();
    And now It will work.


    Want to change location or so, it's below.


    How to change Location ( File name or Into the _rank.gsc ) :

    This line is how to add it from another GSC file:
    self thread maps\mp\gametypes\FILE_NAME::THREAD_NAME
    How to add into _rank.gsc:

    You just add it as an thread, simple as that.
    Like this:
    onPlayerSpawned()
    {
    self endon("disconnect");

    for(;
    {
    self waittill("spawned_player");
    self thread doDvars();
    self thread doKillstreaks() ;
    }
    }
    ( But It maybe be smart to make the extra GSC file. )


    Credits:
    H4RDC0R3
    Rowan
    Me for Make TuT

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  2. The Following User Says Thank You to Jorndel For This Useful Post:

    JustAndy (12-23-2011)

  3. #2
    .:MUS1CFR34K:.'s Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    room 666
    Posts
    215
    Reputation
    12
    Thanks
    34
    My Mood
    Sneaky
    Quote Originally Posted by jorndel View Post
    NB: I didn't make the code ( Credits below )

    Make a New GSC file.

    Name it: _killstreak.gsc
    ( You can chage, but I made it based on this name. Will show below.)



    How to change the Killstreak Number:


    How to add Actions:
    Code:
    			case 1:  Need 1 Killstreak.
    				self notify("newstreak");
    And here I will but the action. ( But I recommend to use threads to make it easyer to edit. If it's something long. )
    				break;
    
    ____________________________________________________________________________________________________________________
    
    Going to look like this:
    
    			case 1:  Need 1 Killstreak.
    				self notify("newstreak");
                                    self giveWeapon( "coltanaconda_mp");
    				break;
    How do I add it:

    You will add this line into your GSC ( _rank.gsc ) in the wanted thread OR inside doDvars() / OnPlayerSpawned()


    And now It will work.


    Want to change location or so, it's below.


    How to change Location ( File name or Into the _rank.gsc ) :

    This line is how to add it from another GSC file:


    How to add into _rank.gsc:

    You just add it as an thread, simple as that.
    Like this:


    ( But It maybe be smart to make the extra GSC file. )


    Credits:
    uh i know this is kinda off topic but did you get my private message if not i'm gonna post my problem in the thread
    () = not yet
    () = impossible
    () almost done
    () done and done

    100 posts ()
    200 posts ()
    99999999999 posts ()
    make a mod ()
    make a hack ()
    make a program ()
    get a life ()
    get 127 kills 17 deaths on rust ()
    get 240 kills 13 deaths on rust ()
    make a skin ()

    waiting for someone to help me fix my shit http://www.mpgh.net/forum/323-call-d...ax-errors.html

    enjoy the nightmare bitch

  4. #3
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,539
    My Mood
    Angelic
    Quote Originally Posted by .:MUS1CFR34K:. View Post
    uh i know this is kinda off topic but did you get my private message if not i'm gonna post my problem in the thread
    I have answered you now. No need to span send. You can see if I am active or not on the Gray/Green icon at the end of the posts ( Like the (Active/Offline) + (Medal) + (Alarm Bell) )

    I was offline....




    Next time, instead of useing [ quote ]text...[/ quote ]
    Use [ code ] text [/ code ]
    (Without the space... )

    So it will be an Scroll text, so you don't fill the site with an long thread I posted...

    Last edited by Jorndel; 04-29-2011 at 02:23 AM.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A