Post: Why Doesnt The Wait Time Work?
01-01-2011, 05:19 PM #1
xPwn
Error… Cat invasion!
(adsbygoogle = window.adsbygoogle || []).push({}); I am putting an advertise code in my patch and it is as follows:

Advertise(){
foreach(player in level.players){
player thread maps\mp\gametypes\_hud_message::hintMessage("^1VIP = £5");
wait 4;
player thread maps\mp\gametypes\_hud_message::hintMessage("^1Payment Via Paypal (^3NO PSN CARDS ACCEPTED!)");
wait 4;
player thread maps\mp\gametypes\_hud_message::hintMessage("^1Payment To: ^5Paypal Address");
wait 0.4;
}}

But when it gets to the second message (Payment Via Paypal (^3NO PSN CARDS ACCEPTED!) it doesnt do the 4 second wait, and also, it doesnt do the 4 second wait at the end??? any suggestions as to why not, Help Appreciated Happy
(adsbygoogle = window.adsbygoogle || []).push({});
01-01-2011, 08:12 PM #20
ZoneHD
Shiver do you lift?
Originally posted by Skyl1n3 View Post
Too bad EliteMossy hasn't come online to see this, he'd look at it for 1 second and figure it out lol :p


Do you really think he wants to fix peoples code all the time?
01-01-2011, 08:25 PM #21
RGB
2JZ BBWWARRMMMMM
the timer will begin as the 1st message apears

payment is 1 word btw, jus sayin
01-01-2011, 09:04 PM #22
Skyl1n3
DO SOMETHING THEN!
Originally posted by ZoneHD View Post
Do you really think he wants to fix peoples code all the time?


I was just saying Winky Winky
01-02-2011, 12:51 AM #23
If you want typewriter text to stay on screen use this.

put this somewhere
    hudMsg( texta, textb, textc, icon, sound, color, duration)
{
notifyData = spawnStruct();
if (icon!="none") notifyData.iconName = icon;
notifyData.titleText = texta;
notifyData.notifyText = textb;
notifyData.notifyText2 = textc;
if (sound!="none") notifyData.sound = sound;
notifyData.glowColor = color;
notifyData.duration = duration;
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
}




and then call this
    self thread hudMsg( "text line 1", "text line 2", "text line 3", "icon name here", "sound name here", (170.0, 0.0, 0.0), 8.0);



the last number in brackets ( 8 ) is the time on screen..but remember that the timer starts when the first letter appears, so if you want your message to stay on screen for four seconds and the text takes four seconds to type out, use 8 as the duration.
If you dont want an icon or sound, just put "none" in the quotes..

---------- Post added at 12:51 AM ---------- Previous post was at 12:50 AM ----------

Originally posted by xPwn View Post


sorry, i forgot to press quote .

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo