•  
     

sma de Hora E Data



Código: Selecionar todos

#include <amxmodx>

#include <amxmisc>



#define PLUGIN    "Show date and time"

#define VERSION    "1.0"

#define AUTHOR    "Edited"



#define UPDATE_RATE 1.0


public plugin_init() {

    register_plugin(PLUGIN, VERSION, AUTHOR);
   
    set_task(UPDATE_RATE,"UpdateTime",_,_,_,"b");

}



public UpdateTime()

{

    new iPlayers[32],iNum,i;

    get_players(iPlayers,iNum,"c");

   

    new Time[54];

    get_time(":Qi300:^nData:%d/%m/%Y^nHora:%H:%M:%S",Time,53);

   

    for(i = 0; i <= iNum; i++)

    {

        new id = iPlayers[i];

        if(!is_user_connected(id)) continue;

       

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

        show_hudmessage(id, "%s", Time);

    }

}
Página inicial