Raised This Month: $ Target: $400
 0% 

Detect "restart" command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-17-2009 , 09:47   Re: Detect "restart" command
Reply With Quote #2

the "restart" command or "sv_restart" / "sv_restartround" ?

for "restart", you just register it...

PHP Code:
plugin_init()
{
      
register_srvcmd("restart""cmd_restart")
}
 
public 
cmd_restart()
{
      
server_print("The command ^"restart^" used!")
 
      return 
PLUGIN_CONTINUE // use PLUGIN_HANDLED if you want to block the command

And I think it works also for sv_restart[round]
__________________
Hunter-Digital is offline
 



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