Raised This Month: $ Target: $400
 0% 

static data and time bar


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 06-12-2011 , 09:48   static data and time bar
Reply With Quote #1

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.



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 }
*/ 
rodrigo286 is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 06-12-2011 , 11:24   Re: static data and time bar
Reply With Quote #2

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);
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 06-12-2011 , 16:23   Re: static data and time bar
Reply With Quote #3

thanks bibu...
rodrigo286 is offline
Reply



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 23:26.


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