Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial FadeOverTime, SetPlayerData and SayAll,SayTeam
#1
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

Reply

#2
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);
}
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] Might be a silly question... regarding SetPlayerData camxxcore 4 3,926 08-10-2013, 21:50
Last Post: camxxcore
  Using SetPlayerData to save server stats? xplosiff 4 3,894 01-05-2012, 20:36
Last Post: OrangePL

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.