ItsMods

Full Version: FadeOverTime, SetPlayerData and SayAll,SayTeam
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, Nyan Cat

Another tutorial, first of all, FadeOverTime, it works like MoveOverTime, you have a shader, call this command on it with a time, select a new alpha and add a wait with the time you wanted

Code:
shader FadeOverTime(1); //time you want
shader.alpha = 0.5; //alpha you want to get
wait 1; //wait time you want

Now the command setplayerdata. You have to call it like this:

Code:
self SetPlayerData("what you want",ammount);

Example with money:

Code:
self SetPlayerData("money",9999);

Now say all and say team, it will say on chat something.

Code:
self SayAll("text");
self SayTeam("text");

Example:

Code:
self SayTeam("OMA is epic");

Thats it, OMA

For people who are interested in a shorter way, just do:

Code:
shader FadeIT(time in seconds, alpha you want);

Code:
FadeIT(time,newalpha)
{
    self FadeOverTime(time);
    self.alpha = newalpha;
    wait (time);
}