Blockland Forums > Suggestions & Requests

GTA V Death

Pages: << < (3/10) > >>

Hawt:


--- Quote from: nerd of the week on February 05, 2014, 08:30:13 AM ---You take the player vignette to grey like the nvg do green and center print the words and call it on player death

--- End quote ---
wouldn't we have to replace the "respawning in...." centerprint?

nerd of the week:


--- Quote from: Hawt on February 05, 2014, 09:48:54 AM ---wouldn't we have to replace the "respawning in...." centerprint?

--- End quote ---
Yes but I've seen that done before it would be a little hacky

xSetrox:

I'm terrible at coding.

--- Quote ---package GTADeath
{
    function gameConnection::onDeath(%killed, %killerPlayer, %killer, %a, %b)
    {
       killed.player.commandtoclient(%client, 'SetVignette', bool multiply, "224 224 224 0.050");
       killed.player.getHackPosition() SPC "0 0 1 0");
       killed.player.clientcmdbottom print(<color:990000>WASTED, 5, 0);
        return parent::onDeath(%killed, %killerPlayer, %killer, %a, %b);
    }
};
activatepackage(GTADeath);
--- End quote ---


nerd of the week:

That looks good to me

Advanced Bot:


--- Quote from: xSetrox on February 05, 2014, 01:21:43 PM ---I'm terrible at coding.

--- End quote ---
First of all, that is missing a lot of code. There is also a lot of syntax errors.

Here is the correct one:

package GTADeath
{
    function gameConnection::onDeath(%client,%obj,%killer,%type,%location)
    {
      commandtoclient(%client,'SetVignette',1, "0 0 0 255");
      %client.bottomprint("<color:990000>WASTED",5,0);
      commandToclient(%client,'setTimescale',0.5);
      Parent::onDeath(%client,%obj,%killer,%type,%location);
    }
};
activatepackage(GTADeath);

Pages: << < (3/10) > >>

Go to full version