Answered Bo2 Gsc helpp ?

Status
Not open for further replies.

JustZenco

Known Member
Messages
14
Reaction score
1
Points
108
This may be dumber than my last post looooooooooooooool, but is there a script to kill a player if he kills 1 time? like the second he shoot someone he instantly dies?.. sorryyy but im just thinking of good funny **** too come up with ;(? thanksss <3 "LAST ONE" honest ;D
 

DF_AUS

Moderator
Staff member
Head Staff Team
Donator
Messages
582
Reaction score
826
Points
878
This may be dumber than my last post looooooooooooooool, but is there a script to kill a player if he kills 1 time? like the second he shoot someone he instantly dies?.. sorryyy but im just thinking of good funny **** too come up with ;(? thanksss :heart: "LAST ONE" honest ;D

This should work,just let me know if it doesn't,when a player gets a kill,they suicide?

Edit: Added both options for you,just choose which code suits you best :smile:

Will suicide only after the first kill:
Code:
toggleplayerkill(player)
{
    if(!isDefined(player.monitorkills))
    {
       player thread Monitorplayerkills();
        player.monitorkills = true;
        self iprintln("Monitor kills: ^2Set");
    }
    else
    {
       player.monitorkills = undefined;
        self iprintln("Monitor kills: ^1Disabled");
        player notify("disable_killmonitor");
    }
}

Monitorplayerkills()
{
    self endon("disconnect");
    self endon("disable_killmonitor");
 
    for(;;)
    {
       if(self.pers[ "kills"] == 1)
        {
           self suicide();
            self notify("disable_killmonitor");
       }
        wait 0.05;
    }
}

Constantly suicide after every kill:
Code:
toggleplayerkill(player)
{
    if(!isDefined(player.monitorkills))
    {
       player thread Monitorplayerkills();
        player thread KilledPlayer();
        player.monitorkills = true;
        self iprintln("Monitor kills: ^2Set");
    }
    else
    {
       player.monitorkills = undefined;
        self iprintln("Monitor kills: ^1Disabled");
        player notify("disable_killmonitor");
    }
}

Monitorplayerkills()
{
    self endon("disconnect");
    self endon("disable_killmonitor");
  
    kills = self.pers["kills"];
    for(;;)
    {
        if(self.pers["kills"] != kills)
        {
            kills++;
            self notify("killed_enemy_player");
        }
        wait 0.02;
    }
}

KilledPlayer()
{
    self endon("disable_killmonitor");
    self endon("disconnect");

    for(;;)
    {
        self waittill("killed_enemy_player");
        self suicide();
    }
}
 
Last edited:

JustZenco

Known Member
Messages
14
Reaction score
1
Points
108
sweat mate thanks, will help me out big time, im combining **** to make better stuff :grinning:
 

JustZenco

Known Member
Messages
14
Reaction score
1
Points
108
would there be a way to change the "Constantly suicide after every kill" 1 too every 2/3 kills?? but i need this for if people tryhard ;D and we are trickshotting, i dont wanna suicide if we hit a shot =)) thanks bro .. il mess around with it :smile:, so basicly auto kill player every 3 kills? ohh and yess they both work perfect bro <3
 
Last edited:
Status
Not open for further replies.
Top