Raised This Month: $ Target: $400
 0% 

My Own Plugin from amx ;x


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
graczu
Senior Member
Join Date: Mar 2006
Old 03-25-2006 , 11:59   My Own Plugin from amx ;x
Reply With Quote #1

hi i have a question:

Code:
#include <amxmod> 

public time_status() 
{ 
  new thetime[16] 
  get_time("%H:%M",thetime,15) 
  new rs_hour[16] 
  get_cvar_string("amx_restart_hour", rs_hour, 15) 
  if(equal(thetime,rs_hour)) 
  { 
    client_print(0, print_chat, "[AMX] Automatyczne przeladowanie serwera") 
    client_print(0, print_chat, "%i Sekund do restartu", get_cvar_num("amx_restart_rtime")) 
    client_print(0, print_chat, "%i Sekund do restartu", get_cvar_num("amx_restart_rtime")) 
    client_print(0, print_chat, "%i Sekund do restartu", get_cvar_num("amx_restart_rtime")) 
    remove_task(112233) 
    set_task(get_cvar_float("amx_restart_rtime"),"hlds_quit",0) 
  } 
} 

public hlds_quit() 
{ 
  client_print(0, print_chat, "[AMX] RESTART!") 
  client_print(0, print_chat, "[AMX] RESTART!!") 
  client_print(0, print_chat, "[AMX] RESTART!!!") 
  server_cmd("quit") 
} 

public plugin_init() 
{ 
  register_plugin("Server Restart","1.0","graczu_-") 
  register_cvar("amx_restart_rtime","15") 
  register_cvar("amx_restart_hour","11:00") 
  set_task(60.0, "time_status", 112233, "", 0, "b") 
}
this my plugin, its do a restart server at 11:00, but on amxx its not work sma is compile without error's....

what is wrong here ?
graczu 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 16:44.


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