GSC Explode Player

The Dark Side

Former Staff Member
Messages
1,010
Points
768
An explode player function. What else is there to say? xD Have fun! :smile: Credits: Me one of the first functions i made by myself. <3

Code:
goExplode(player)
{
     if (!player isHost()) //so no one can harm the host.
     {
         if(!player.Infinite_Health == 1)//if the player has god mode, he will suicide.
         {
              self iPrintln("Player exploded"); //lets you know you just blew someone up.
              Earthquake(0.4,4,player.origin,100); //what do you think this is? xD
              MagicBullet("remote_missile_bomblet_mp",player.origin +(0,0,1),player.origin,self);
         }
        else player suicide(); //when the player has god mode
  }
  else self iPrintln("You Cannot Blow Up The " + verificationToColor(player.status));
}
Have fun blowing people up. I do know this could be improved, if anyone would like to help. :tongueclosed: But it works fine. Thanks Cabcon for improving this! :tongueclosed:
 
Last edited:

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,616
Points
828
An explode player function. What else is there to say? xD Have fun! :smile: Credits: Me one of the first functions i made by myself. <3

Code:
goExplode(player)
{
    if (!player isHost()) //so no one can harm the host.
    {
        self iPrintln("Player exploded"); //lets you know you just blew someone up.
        Earthquake(0.4,4,player.origin,100); //what do you think this is? xD
        MagicBullet("remote_missile_bomblet_mp",player.origin +(0,0,1),player.origin,self);
    }
    else self iPrintln("You Cannot Blow Up The " + verificationToColor(player.status));
}
Have fun blowing people up. I do know this could be improved, if anyone would like to help. :tongueclosed: But it works fine.
Nice Function but I would add a suicide function or a health function (turn off godmode), that a player with god mode is kill able too.

Code:
goExplode(player)
{
    if (!player isHost()) //so no one can harm the host.
    {
        self iPrintln("Player exploded"); //lets you know you just blew someone up.
        Earthquake(0.4,4,player.origin,100); //what do you think this is? xD
        MagicBullet("remote_missile_bomblet_mp",player.origin +(0,0,1),player.origin,self); 
        player suicide(); //when he have god mode 
    }
    else self iPrintln("You Cannot Blow Up The " + verificationToColor(player.status));
}
 

God

Skiddy
Messages
340
Points
393
An explode player function. What else is there to say? xD Have fun! :smile: Credits: Me one of the first functions i made by myself. <3

Code:
goExplode(player)
{
    if (!player isHost()) //so no one can harm the host.
    {
        self iPrintln("Player exploded"); //lets you know you just blew someone up.
        Earthquake(0.4,4,player.origin,100); //what do you think this is? xD
        MagicBullet("remote_missile_bomblet_mp",player.origin +(0,0,1),player.origin,self);
    }
    else self iPrintln("You Cannot Blow Up The " + verificationToColor(player.status));
}
Have fun blowing people up. I do know this could be improved, if anyone would like to help. :tongueclosed: But it works fine.
Looks like a fun code :wink:
 

The Dark Side

Former Staff Member
Messages
1,010
Points
768
Nice Function but I would add a suicide function or a health function (turn off godmode), that a player with god mode is kill able too.

Code:
goExplode(player)
{
    if (!player isHost()) //so no one can harm the host.
    {
        self iPrintln("Player exploded"); //lets you know you just blew someone up.
        Earthquake(0.4,4,player.origin,100); //what do you think this is? xD
        MagicBullet("remote_missile_bomblet_mp",player.origin +(0,0,1),player.origin,self);
        player suicide(); //when he have god mode
    }
    else self iPrintln("You Cannot Blow Up The " + verificationToColor(player.status));
}
Like i said, i knew it could be improved. :wink:
 
Messages
95
Points
18
Nice Function but I would add a suicide function or a health function (turn off godmode), that a player with god mode is kill able too.

Code:
goExplode(player)
{
    if (!player isHost()) //so no one can harm the host.
    {
        self iPrintln("Player exploded"); //lets you know you just blew someone up.
        Earthquake(0.4,4,player.origin,100); //what do you think this is? xD
        MagicBullet("remote_missile_bomblet_mp",player.origin +(0,0,1),player.origin,self);
        player suicide(); //when he have god mode
    }
    else self iPrintln("You Cannot Blow Up The " + verificationToColor(player.status));
}
he has "player suicide();" bro it will kill the player even if the player has godmode on :smile:
 

Top