Raised This Month: $ Target: $400
 0% 

Detect "restart" command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 05-17-2009 , 12:10   Re: Detect "restart" command
Reply With Quote #1

Quote:
Originally Posted by grankee View Post

FM_ServerDeactivate works:
- when restart is typed?
- when server reserved?

I guess it happens on restart, map change. The question is: what exactly do you want to happen?
__________________
joaquimandrade is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-17-2009 , 14:36   Re: Detect "restart" command
Reply With Quote #2

Well, you can detect restart this way:
PHP Code:
#include <amxmodx>

public plugin_init()
      
register_logevent("event_restart"2"1&Restart_Round")

public 
event_restart()
{
      
server_print("Game is restarting...")

__________________
Hunter-Digital is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 05-17-2009 , 18:43   Re: Detect "restart" command
Reply With Quote #3

Quote:
Originally Posted by Hunter-Digital View Post
Well, you can detect restart this way:
PHP Code:
#include <amxmodx>

public plugin_init()
      
register_logevent("event_restart"2"1&Restart_Round")

public 
event_restart()
{
      
server_print("Game is restarting...")

That's not "restart". That's "sv_restart".
__________________
joaquimandrade is offline
Old 05-17-2009, 21:01
Hunter-Digital
This message has been deleted by Hunter-Digital. Reason: nvm
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 01:30.


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