Raised This Month: $32 Target: $400
 8% 

[ES]Mantener HUD mas tiempo. (Auto restart)


  
 
 
Thread Tools Display Modes
Author Message
emilianol
Senior Member
Join Date: Jul 2010
Old 08-06-2010 , 09:27   [ES]Mantener HUD mas tiempo. (Auto restart)
#1

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

Last edited by emilianol; 08-06-2010 at 13:22.
emilianol is offline
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
emilianol
Senior Member
Join Date: Jul 2010
Old 08-06-2010 , 10:16   Re: [ES][Ayuda] Mantener HUD mas tiempo. (Auto restart)
#3

Quote:
Originally Posted by Zapdos1 View Post
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
Oka muchas gracias ahora lo pruebo
emilianol is offline
Kiske
Veteran Member
Join Date: May 2009
Old 08-06-2010 , 11:04   Re: [ES][Ayuda] Mantener HUD mas tiempo. (Auto restart)
#4

Ese es el canal.

Cambia esto:
PHP Code:
set_cvar_float("sv_restart",2.0

PHP Code:
set_cvar_float("sv_restart",5.0
Ahí se va a llegar a ver perfecto el Hud.
__________________

Kiske is offline
Send a message via Skype™ to Kiske
emilianol
Senior Member
Join Date: Jul 2010
Old 08-06-2010 , 11:47   Re: [ES][Ayuda] Mantener HUD mas tiempo. (Auto restart)
#5

Quote:
Originally Posted by Kiske View Post
Ese es el canal.

Cambia esto:
PHP Code:
set_cvar_float("sv_restart",2.0

PHP Code:
set_cvar_float("sv_restart",5.0
Ahí se va a llegar a ver perfecto el Hud.
Me cambia a restart en 7 segundos :S
emilianol is offline
Desktop
AlliedModders Donor
Join Date: Sep 2009
Location: C:\Users\Default\
Old 08-06-2010 , 12:06   Re: [ES][Ayuda] Mantener HUD mas tiempo. (Auto restart)
#6

Quote:
Originally Posted by Kiske View Post
Ese es el canal.

Cambia esto:
PHP Code:
set_cvar_float("sv_restart",2.0

PHP Code:
set_cvar_float("sv_restart",5.0
Ahí se va a llegar a ver perfecto el Hud.
Eso setea el tiempo para el restart
__________________
Massive Infection:: Piu-Games
Desktop is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 08-06-2010 , 12:08   Re: [ES][Ayuda] Mantener HUD mas tiempo. (Auto restart)
#7

PHP Code:
set_hudmessage(1272552120.050.6520.026.00.010.12)
set_hudmessagergbF:xF:yeffectsF:fxtimeF:holdtimeF:fadeinF:fadeoutchannel
El 6.0 es el holdtime

Last edited by Mxnn; 08-06-2010 at 12:11.
Mxnn is offline
Exc3ll@N
Veteran Member
Join Date: Oct 2009
Location: Donde me lleve el viento
Old 08-06-2010 , 12:50   Re: [ES][Ayuda] Mantener HUD mas tiempo. (Auto restart)
#8

tan dificil es leerse las reglas¿? saca el "[ayuda]" por dios cuando vine a esta comunidad nunca vi las reglas y haci me ba ..... 1 solo ban XDDD
Exc3ll@N is offline
Send a message via MSN to Exc3ll@N
emilianol
Senior Member
Join Date: Jul 2010
Old 08-06-2010 , 13:10   Re: [ES][Ayuda] Mantener HUD mas tiempo. (Auto restart)
#9

Quote:
Originally Posted by Exc3ll@N View Post
tan dificil es leerse las reglas¿? saca el "[ayuda]" por dios cuando vine a esta comunidad nunca vi las reglas y haci me ba ..... 1 solo ban XDDD
Oka

Last edited by emilianol; 08-06-2010 at 13:31.
emilianol is offline
Kiske
Veteran Member
Join Date: May 2009
Old 08-06-2010 , 18:58   Re: [ES]Mantener HUD mas tiempo. (Auto restart)
#10

Ya se que lo que dije es para alargar el tiempo del Restart, no soy estúpido.

Se lo dije porque es la única manera en el que el Hud dure más tiempo, ya que por más que cambies el HoldTime, cuando se restartee la Ronda, todos los Huds desaparecen.
__________________

Kiske is offline
Send a message via Skype™ to Kiske
 


Thread Tools
Display Modes

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 10:49.


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