Raised This Month: $ Target: $400
 0% 

delaying print_chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Amonel
Senior Member
Join Date: May 2009
Old 10-18-2009 , 12:49   delaying print_chat
Reply With Quote #1

how do i get delayed 2 print_chat messages.

PHP Code:
client_print(0print_chat"message 1");
client_print(0print_chat"message 2");
client_print(0print_chat"message 3"); 
it will print instantly the 3 messages. what i want it is that i want to get a delay beetween the 2nd and 3rd message

i tryed something like
PHP Code:
client_print(0print_chat"message 1");
client_print(0print_chat"message 2");
servercmd("wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait")
client_print(0print_chat"message 3"); 
but doesn't work.. anyone know ?
Amonel is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 10-18-2009 , 12:49   Re: delaying print_chat
Reply With Quote #2

No.
2 methods.
Think entity. Or set task.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-18-2009 , 12:49   Re: delaying print_chat
Reply With Quote #3

Use set_task(). You don't want to make the server "wait" that's probably stoping your server (however insignificant it may be).
__________________
fysiks is online now
Amonel
Senior Member
Join Date: May 2009
Old 10-18-2009 , 12:55   Re: delaying print_chat
Reply With Quote #4

ok. i get it.

but i am still noobie in scripting. how do i use the set_task()
Amonel is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 10-18-2009 , 12:57   Re: delaying print_chat
Reply With Quote #5

http://www.amxmodx.org/funcwiki.php?...task&go=search
Look at the explanation an the examples in the comments.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
Amonel
Senior Member
Join Date: May 2009
Old 10-18-2009 , 13:02   Re: delaying print_chat
Reply With Quote #6

pff.. thats so much to read&understand

can't u just give me the full task for my problem ? ^^

, please ?
Amonel is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 10-18-2009 , 13:03   Re: delaying print_chat
Reply With Quote #7

Quote:
Originally Posted by Amonel View Post
pff.. thats so much to read&understand

can't u just give me the full task for my problem ? ^^

, please ?
If you don't read you will not learn.
It isn't that hard. Believe me you already have an example there that will help you.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
Amonel
Senior Member
Join Date: May 2009
Old 10-18-2009 , 13:21   Re: delaying print_chat
Reply With Quote #8

*php script deleted - fixed ^^

ty man

Edit:
grimvh2, yeah u're right, but i got a stupid error X(

Last edited by Amonel; 10-25-2009 at 04:36.
Amonel is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 10-18-2009 , 13:23   Re: delaying print_chat
Reply With Quote #9

Yes, it will work. .
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 10-18-2009 , 13:48   Re: delaying print_chat
Reply With Quote #10

Quote:
Originally Posted by Amonel View Post
pff.. thats so much to read&understand
Life is hard, get used to it.
How do you think we learned it?
__________________
I am out of order!
grimvh2 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode