This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Sending command to clients just before map ends?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
- Billy The Kid -
Member
Join Date: Oct 2006
Old 10-06-2008 , 05:52   Sending command to clients just before map ends?
Reply With Quote #1

There's no problem when there is mp_timelimit, but when mp_maxrounds is set or a command to change map is issued, is there an easy way to do this?

Pls, do not tell me to count played rounds or to detect commands issued... Any other idea?
__________________
- Billy The Kid - is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 10-06-2008 , 06:18   Re: Sending command to clients just before map ends?
Reply With Quote #2

I'm not sure exactly what you're trying to say, but I'm guessing that you want a way to hook map change, if so, use this: http://www.amxmodx.org/funcwiki.php?go=func&id=869
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
- Billy The Kid -
Member
Join Date: Oct 2006
Old 10-10-2008 , 15:49   Re: Sending command to clients just before map ends?
Reply With Quote #3

Nope, that doesn't work, tried server_changelevel, plugin_end and few other functions, I suppose they are all called when clients leave the server...

...OK, is there a way to detect "chat time" at the end of the map?
__________________
- Billy The Kid - is offline
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 10-10-2008 , 16:12   Re: Sending command to clients just before map ends?
Reply With Quote #4

when i remember correctly and i am really not sure cuz the last time i had a look on a mapchanger the plugin really counted the rounds for mp_roundtime :S for mp_timelimit it hooked the RoundTime message on startup and set a task with an interval of mp_timelimit*60
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
Prajch
Senior Member
Join Date: Dec 2007
Location: anger++
Old 10-10-2008 , 16:28   Re: Sending command to clients just before map ends?
Reply With Quote #5

Quote:
Originally Posted by - Billy The Kid - View Post
Nope, that doesn't work, tried server_changelevel, plugin_end and few other functions, I suppose they are all called when clients leave the server...

...OK, is there a way to detect "chat time" at the end of the map?
PHP Code:
register_event("30""intermission""a"//in plugin_init()
...
public 
intermission()
{
   ...

This detects the SVC_INTERMISSION message.

[edit] You can replace "30" with "SVC_INTERMISSION" for better readability.

Last edited by Prajch; 10-10-2008 at 17:22.
Prajch is offline
- Billy The Kid -
Member
Join Date: Oct 2006
Old 10-12-2008 , 04:46   Re: Sending command to clients just before map ends?
Reply With Quote #6

Thx, carma up!
__________________
- Billy The Kid - 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 08:40.


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