Home   Help Search Login Register  

Author Topic: need a script  (Read 959 times)

0 Members and 1 Guest are viewing this topic.

demon of evil

  • Guest
need a script
« on: 19 Dec 2002, 19:57:17 »
hi there

I need a script for mp that the one who activated the script his name will be in white in the middle of the screen.

this is used for a race mission and the one who wins will be displayed on the screen like this: player has won the race

bye

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:need a script
« Reply #1 on: 20 Dec 2002, 19:37:52 »
I don't know how to display a player's real name (e.g., Ranger), but I do know how to display a player's group name (e.g., Alpha Black 1).

For the latter, if that'll suffice for you, you need to use the format command.  E.g.:

Code: [Select]
hint format ["%1 has won the race!",_this]

Where _this is the parameter that was passed into your script.

You can also use this with the titleText command.

Code: [Select]
titleText [format [""%1 has won the race!"",_this], "PLAIN"]
Ranger