Blockland Forums > Suggestions & Requests
GTA V Death
Advanced Bot:
I don't understand why it takes this long to make something like this. I gave the code, lol.
Mr Queeba:
--- Quote from: Advanced Bot on February 09, 2014, 01:10:46 AM ---I don't understand why it takes this long to make something like this. I gave the code, lol.
--- End quote ---
--- Quote from: Mr Queeba on February 07, 2014, 05:22:10 PM ---Pretty much done on my part: http://www.mediafire.com/download/jt2t22cdx61ybk7/Server_Wasted.zip
Issues:
Sound won't play.
Timescale won't change.
If someone could fix those that would be great.
--- End quote ---
Advanced Bot:
--- Quote from: Mr Queeba on February 09, 2014, 07:16:25 AM ---
--- End quote ---
Oh, I didn't see the issues. I will take a look.
It was not coded correctly.
Source:
datablock AudioProfile(DedWasted)
{
filename = "./Wasted.wav";
description = AudioClosest3d;
preload = false;
};
package GTADeath
{
function gameConnection::onDeath(%client,%obj,%killer,%type,%location)
{
serverPlay2D(DedWasted); //Needs a datablock, not the file
commandtoclient(%client,'SetVignette',1, "0 0 0 255");
%client.bottomprint("<color:990000><font:Impact:30>WASTED",5,0);
//commandToclient(%client,'setTimescale',0.5); - You have to find another way of how it will work since it is calling that the player is dead
Parent::onDeath(%client,%obj,%killer,%type,%location);
}
};
activatepackage(GTADeath);
Download
xSetrox:
--- Quote from: Advanced Bot on February 09, 2014, 01:21:50 PM ---Oh, I didn't see the issues. I will take a look.
It was not coded correctly.
Source:
datablock AudioProfile(DedWasted)
{
filename = "./Wasted.wav";
description = AudioClosest3d;
preload = false;
};
package GTADeath
{
function gameConnection::onDeath(%client,%obj,%killer,%type,%location)
{
serverPlay2D(DedWasted); //Needs a datablock, not the file
commandtoclient(%client,'SetVignette',1, "0 0 0 255");
%client.bottomprint("<color:990000><font:Impact:30>WASTED",5,0);
//commandToclient(%client,'setTimescale',0.5); - You have to find another way of how it will work since it is calling that the player is dead
Parent::onDeath(%client,%obj,%killer,%type,%location);
}
};
activatepackage(GTADeath);
Download
--- End quote ---
ily
Eden:
--- Quote from: Advanced Bot on February 09, 2014, 01:21:50 PM ---Oh, I didn't see the issues. I will take a look.
It was not coded correctly.
Source:
datablock AudioProfile(DedWasted)
{
filename = "./Wasted.wav";
description = AudioClosest3d;
preload = false;
};
package GTADeath
{
function gameConnection::onDeath(%client,%obj,%killer,%type,%location)
{
serverPlay2D(DedWasted); //Needs a datablock, not the file
commandtoclient(%client,'SetVignette',1, "0 0 0 255");
%client.bottomprint("<color:990000><font:Impact:30>WASTED",5,0);
//commandToclient(%client,'setTimescale',0.5); - You have to find another way of how it will work since it is calling that the player is dead
Parent::onDeath(%client,%obj,%killer,%type,%location);
}
};
activatepackage(GTADeath);
Download
--- End quote ---
Why's it bottom print? GTA V has it center print.