Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: need a script  (Read 1752 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