Viuda Comunity


Unirse al foro, es rápido y fácil

Viuda Comunity
Viuda Comunity
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.

[Script] Aviso Proximo mapa y Tiempo q keda Del map

Ir abajo

[Script] Aviso Proximo mapa y Tiempo q keda Del map Empty [Script] Aviso Proximo mapa y Tiempo q keda Del map

Mensaje  angelitoox Dom Nov 15, 2009 5:25 am

Holap! , Bueno este sma se encarga en ponerles un mensaje en la parte inferior izkierda de su pantalla La cual Su funcion es Indicarles El tiempo q keda del map Y Cual sera el proximo mapa . Uts tambn pueden modificar el mensaje . Bueno donde dice Tiempo q keda del map lo pueden modificar a su Gusto Por supuesto q tiene q ponerle tiempo q keda xq es de logica esa es la funcion de plugins , y el otro mensaje es proximo mapa Tambn lo pueden modificar Very Happy

Código:

/*
*  AMX X Mod script.
*
* (c) Copyright 2003, ST4life
* Remade by TaL
* This file is provided as is (no warranties).
*/

#include <amxmodx>

/*
* TimeProjector displays the remaining time and the next map on the top right corner of the client
* display as a hudmessage.
*
* History:
*
* v0.1: - first release
*/


public show_timer(){
    new nextmap[32]
    get_cvar_string("amx_nextmap",nextmap,31)
    new timeleft = get_timeleft()
    set_hudmessage(255,255,255,0.75,0.05,0, 1.0, 1.0, 0.1, 0.2, 13)
    show_hudmessage(0,"Tiempo q keda Del map: %d:%02d^nProximo Mapa: %s",timeleft / 60, timeleft % 60,nextmap)
    return PLUGIN_CONTINUE
}

public plugin_init()
{
    register_plugin("TimeProjector","0.1","ST4life")
    set_task(1.0, "show_timer",0,"",0,"b")
    return PLUGIN_CONTINUE
}
angelitoox
angelitoox
Miembro Veterano
Miembro Veterano

Cantidad de envíos : 81
Nivel : 163
Fecha de inscripción : 10/09/2009

Volver arriba Ir abajo

Volver arriba

- Temas similares

 
Permisos de este foro:
No puedes responder a temas en este foro.