Raised This Month: $ Target: $400
 0% 

Can you tell the server to wait?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dygear
SourceMod Donor
Join Date: Apr 2004
Location: Levittown, NY
Old 07-05-2004 , 01:03   Can you tell the server to wait?
Reply With Quote #1

Code:
server_cmd("tsay 255000000 [ADMIN]%s has joined the server.;wait;wait;wait;wait", dyUserName)

Can you tell the server to wait?
__________________
Dygear is offline
Send a message via AIM to Dygear Send a message via MSN to Dygear Send a message via Skype™ to Dygear
Ryan
Senior Member
Join Date: May 2004
Location: NH, USA
Old 07-05-2004 , 01:34  
Reply With Quote #2

no, in this case you would set a task with set_task()
__________________
Warcraft 3: Expansion
Homepage | Downloads | Forums
Ryan is offline
Send a message via AIM to Ryan
Ryan
Senior Member
Join Date: May 2004
Location: NH, USA
Old 07-05-2004 , 01:35  
Reply With Quote #3

err, wait a sec, i'm confused.. why would you want to use wait; ?
__________________
Warcraft 3: Expansion
Homepage | Downloads | Forums
Ryan is offline
Send a message via AIM to Ryan
Bad HAL 9000
Senior Member
Join Date: Mar 2004
Location: Minnesota, USA
Old 07-05-2004 , 01:56  
Reply With Quote #4

I dont think he does, he wants a delay in there. use set_task
__________________
Bad HAL 9000 is offline
Send a message via ICQ to Bad HAL 9000 Send a message via AIM to Bad HAL 9000 Send a message via MSN to Bad HAL 9000 Send a message via Yahoo to Bad HAL 9000
Dygear
SourceMod Donor
Join Date: Apr 2004
Location: Levittown, NY
Old 07-05-2004 , 03:17  
Reply With Quote #5

ok ... this is the idea ...

It will display

[ADMIN]Dygear has joined the server. (In Red, then white, then blue.)
__________________
Dygear is offline
Send a message via AIM to Dygear Send a message via MSN to Dygear Send a message via Skype™ to Dygear
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 07-05-2004 , 03:39  
Reply With Quote #6

You could use a set_task function to maybe control the pause time I think.
Peli is offline
Send a message via MSN to Peli
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 07-05-2004 , 07:11  
Reply With Quote #7

try like this

Code:
client_putinserver(id) {     if (access(id,ADMIN_ADMIN)) {         new parm[1]         parm[0]=id         set_task(1.0,"doRed",0,parm,1,"",0)         set_task(3.0,"doWhite",0,parm,1,"",0)         set_task(5.0,"doBlue",0,parm,1,"",0)     } } public doRed(parm[]) {     new name[33]     new id=parm[0]     get_user_name(id,name,32)     set_hudmessage(255,0,0,-1.0,-0.45,0,0.0,5.0,0.0,0.0,3);     show_hudmessage(0,"[ADMIN] %s has joined the server",name); } public doWhite(parm[]) {     new name[33]     new id=parm[0]     get_user_name(id,name,32)     set_hudmessage(0,0,0,-1.0,-0.45,0,0.0,5.0,0.0,0.0,3);     show_hudmessage(0,"[ADMIN] %s has joined the server",name); } public doBlue(parm[]) {     new name[33]     new id=parm[0]     get_user_name(id,name,32)     set_hudmessage(0,0,255,-1.0,-0.45,0,0.0,5.0,0.0,0.0,3);     show_hudmessage(0,"[ADMIN] %s has joined the server",name); }
__________________
My Plugins

Got ??
AssKicR is offline
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 07-05-2004 , 07:22  
Reply With Quote #8

Looks like that would work fine.
__________________
QwertyAccess is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 07-05-2004 , 15:01  
Reply With Quote #9

Except it doesn't display to anyone but the admin entering, which would defeat the purpose...

Code:
new const PLUGINNAME[] = "Watch out, a patriot is inbound..." new const VERSION[] = "0.1" new const AUTHOR[] = "Unknown" #include <amxmodx> #include <amxmisc> public client_putinserver(id) {     if (access(id, ADMIN_ADMIN)) {         new parm[4]         parm[0] = id         // Red         parm[1] = 255         parm[2] = 0         parm[3] = 0         set_task(1.0, "justdoit", 0, parm, 4)         // White         parm[1] = 255         parm[2] = 255         parm[3] = 255         set_task(3.0, "justdoit", 0, parm, 4)         // Blue         parm[1] = 0         parm[2] = 0         parm[3] = 255         set_task(5.0, "justdoit", 0, parm, 4)     } } public justdoit(parm[4]) {     if (!is_user_connected(parm[0]))         return     new name[32]     get_user_name(parm[0], name, 31)     set_hudmessage(parm[1], parm[2], parm[3], -1.0, -0.45, 0, 0.0, 5.0, 0.0, 0.0, 3)     show_hudmessage(0, "[ADMIN] %s has joined the server", name) } public plugin_init() {     register_plugin(PLUGINNAME, VERSION, AUTHOR) }

Well, I didn't test this, so maybe there's a glitch somewhere...
Johnny got his gun is offline
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 07-05-2004 , 15:09  
Reply With Quote #10

Quote:
new const PLUGINNAME[] = "Watch out, a patriot is inbound..."
haha that made me laugh.
__________________

BigBaller is offline
Reply


Thread Tools
Display Modes

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 14:46.


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