AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   static data and time bar (https://forums.alliedmods.net/showthread.php?t=159045)

rodrigo286 06-12-2011 09:48

static data and time bar
 
Hello, I need to leave the banner of a time and date equal to the static score, because it is disappearing and appearing as other messages are displayed.

Thanks.

http://evolutioncs.com.br/coisasdoserver/data.png

date_and_time .sma:

PHP Code:

#include <amxmodx>
#include <amxmisc>

#define PLUGIN    "DATA E HORAS"
#define VERSION    "1.0"
#define AUTHOR    "AUTOR"

#define UPDATE_RATE 1.0

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
set_task(UPDATE_RATE,"data_e_horas",_,_,_,"b");
}
    public 
data_e_horas(){

    new 
iPlayers[32],iNum,i;
    
get_players(iPlayers,iNum,"c");
    new 
Time[54];
    
get_time(".::<SeMxOrA>::.^nData:%d/%m/%Y^nHorario:%H:%M:%S",Time,53);
    for(
0<= iNumi++){
        new 
id iPlayers[i];
        if(!
is_user_connected(id)) continue;
        
set_hudmessage(200000.800.0511.01.50.00.02);
        
show_hudmessage(id"%s"Time);
    }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1046{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/ 


bibu 06-12-2011 11:24

Re: static data and time bar
 
set_hudmessage(200, 0, 0, 0.80, 0.05, 1, 1.0, 1.5, 0.0, 0.0, 2)

->

set_hudmessage(200, 0, 0, 0.80, 0.05, 1, 1.0, 1.5, 0.0, 0.0, -1);

rodrigo286 06-12-2011 16:23

Re: static data and time bar
 
thanks bibu...


All times are GMT -4. The time now is 23:26.

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