View Single Post
Zapdos1
BANNED
Join Date: Jul 2009
Location: Chile - La Serena
Old 08-06-2010 , 10:13   Re: [ES][Ayuda] Mantener HUD mas tiempo. (Auto restart)
#2

Quote:
Originally Posted by emilianol View Post
Hola yo me baje un plugin que se llama Automatic Restart. Modifique el mensaje (Hud), yo lo que quiero que permanesca unos segundos mas porque sale tan rapido el hud que la verdad nose ve.

Code:
PHP Code:
/* 
* AMXModX script. 
* This file is provided as is (no warranties). 

* Automatic Map-Restart after xx Seconds 
*  by ToT|V!PER ([email protected]

* Homepage: http://www.totclan.de 
* IRC-Chan: #totclan @ irc.de.quakenet.org 

* ------------------------------------------------------- 
* Changelog: (Last-Update 07.01.2005)
* V1.00: Complete Rewrite, removed many useless functions
* V0.92: Complete Rewrite + added admin functions
*        - option to use hud + client-says
* V0.5 : First Public Release 
* ------------------------------------------------------- 

* Put in amxx.cfg or server.cfg: 

* amx_auto_rr_time < float > (default: 20 seconds) 
* Example: 
* -> amx_auto_rr_time 10.0 = Restart after 45 Seconds 

*/

#include <amxmodx>

public restart_time()   
   
set_task (get_cvar_float("amx_autorestart"),"restart_map",0)   

public 
restart_map() {    
      
set_hudmessage(1272552120.050.6520.026.00.010.12)     
      
show_hudmessage(0,"[High Gamers] Server restarteado automaticamente!")    
      
set_cvar_float("sv_restart",2.0)   
      return 
PLUGIN_HANDLED
   
}   

public 
plugin_init() {   
   
register_plugin("Auto-Restart","1.00","ToT | V!PER")   
   
register_event("TextMsg","restart_time","a","2&#Game_C")   
   
register_cvar("amx_autorestart","20.0")
   return 
PLUGIN_CONTINUE     
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang3082\\ f0\\ fs16 \n\\ par }
*/ 

Saludos espero su ayuda
Si no me equivoco, cambia esto:

set_hudmessage(127, 255, 212, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2)
ese 2, indica que son 2 segundos para mostrarlo.
cambia ese 2 para aumentar o disminuir el tiempo del mensaje

espero haberte ayudado
Zapdos1 is offline