Author Topic: ColorPort  (Read 1677 times)

0 Members and 1 Guest are viewing this topic.

Offline Dr.Thrax

  • Major
  • *
  • Posts: 70
    • Lostgalaxy.de
ColorPort
« on: March 14, 2009, 06:04:34 am »
Script Name:  Color Port
Script Description:  A special version of MovePlayer: During the moving to "aim_x" and "aim_y", the screen of player "id" gets the color "R,G,B" and fades out x "seconds". I needed that for a special subgamemod. Maybe it might be usefull for other users.
Original Author(s):  DrThrax
Core Version: 2.6.3
Code:  procedure ColorPort(id : byte; aim_x , aim_y : single ; seconds : integer ; R,G,B : byte);


Quote
procedure ColorPort(id : byte; aim_x , aim_y : single ; seconds : integer ; R,G,B : byte);
begin
DrawText(id,'XXX',(seconds*60),RGB(R,G,B),35,-3000,-3000);
MovePlayer(id,aim_x,aim_y);
end;

kind regards , DrThrax

Offline danmer

  • Camper
  • ***
  • Posts: 466
  • crabhead
Re: ColorPort
« Reply #1 on: March 14, 2009, 06:27:26 am »
does it work with custom fonts?

Offline Dr.Thrax

  • Major
  • *
  • Posts: 70
    • Lostgalaxy.de
Re: ColorPort
« Reply #2 on: March 14, 2009, 06:48:28 am »
oh jeez.
i hope it does , sry really don't know :(
it worked the time i used it
regards Thrax

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: ColorPort
« Reply #3 on: March 15, 2009, 12:34:43 am »
Blinding script :D