Raised This Month: $51 Target: $400
 12% 

top hud info need a [CODE]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ShooTeR XKy
Member
Join Date: Jul 2014
Location: Palestine
Old 08-01-2016 , 20:16   top hud info need a [CODE]
Reply With Quote #1

i saw in other server TheTime
in hud info
i want code to this plugin show Date
with DNS - time - Map - Date


Quote:
#include <amxmodx>

#define Autor "SHOOTER XKY"
#define Versiune "1.0"
#define Nume "[S-X]TOP Info"

new DNS[64]
new Owner[] = "www.Facebook.com/Shooter.xky"

public plugin_init(){
register_plugin(Nume,Versiune,Autor)
set_task(1.0, "top_info",0,"",0,"b")
}

public top_info(){
new timeleft = get_timeleft()
new currentmap[33]
get_mapname(currentmap, 32)
get_cvar_string( "hostname", DNS, 63 )
set_hudmessage(121, 83, 193, -1.0, 0.00)
show_hudmessage(0, "DNS: %s|Owner: %s|Map: %s|Time: %d:%02d", DNS, Owner, currentmap, timeleft / 60, timeleft % 60)

return PLUGIN_CONTINUE
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ fbidis\\ ansi\\ ansicpg1256\\ deff0\\ deflang2049{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ ltrpar\\ f0\\ fs16 \n\\ par }
*/
ShooTeR XKy is offline
LondoN
Senior Member
Join Date: Dec 2015
Location: Roman, Romania.
Old 08-04-2016 , 08:49   Re: top hud info need a [CODE]
Reply With Quote #2

new time[7];
get_time("%h:%m:%s", time, charsmax(time));
__________________
LondoN is offline
ShooTeR XKy
Member
Join Date: Jul 2014
Location: Palestine
Old 08-04-2016 , 09:04   Re: top hud info need a [CODE]
Reply With Quote #3

i try but _ not show in the server
||||||||||||||||||||||
plz add it for me
and show_hudmessage Please

Last edited by ShooTeR XKy; 08-04-2016 at 10:29.
ShooTeR XKy is offline
Abhinash
Senior Member
Join Date: Jan 2015
Location: India,kolkata
Old 08-09-2016 , 13:12   Re: top hud info need a [CODE]
Reply With Quote #4

Try --

Code:
#include <amxmodx>  #define Autor "SHOOTER XKY"  #define Versiune "1.0"  #define Nume "[S-X]TOP Info"  new Abhinash, Time[7], DNS[64]  new Owner[] = "www.Facebook.com/Shooter.xky" Abhinash = get_time("%h:%m:%s", time, charsmax(time));  public plugin_init(){  register_plugin(Nume,Versiune,Autor)  set_task(1.0, "top_info",0,"",0,"b")  }  public top_info(){  new timeleft = get_timeleft()  new currentmap[33]  get_mapname(currentmap, 32)  get_cvar_string( "hostname", DNS, 63 )  set_hudmessage(121, 83, 193, -1.0, 0.00)  show_hudmessage(0, "DNS: %s|Owner: %s|Map: %s|Time: ", DNS, Owner, currentmap, Abhinash)  return PLUGIN_CONTINUE  }  /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE  *{\\ rtf1\\ fbidis\\ ansi\\ ansicpg1256\\ deff0\\ deflang2049{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ ltrpar\\ f0\\ fs16 \n\\ par }  */

Last edited by Abhinash; 08-09-2016 at 13:13. Reason: Fix...
Abhinash is offline
thekiller123
Member
Join Date: Dec 2012
Old 08-09-2016 , 13:38   Re: top hud info need a [CODE]
Reply With Quote #5

Try this:

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define TOP_INFO 1.0

public plugin_init()
{
    
register_plugin("[S-X]TOP Info","1.0","SHOOTER XKY")
    
set_task(TOP_INFO,"top_info",_,_,_,"b")
}

public 
top_info()
{
    new 
hostname[128
    
get_cvar_string("hostname",hostname,charsmax(hostname))

    new 
owner[] = "www.Facebook.com/Shooter.xky"

    
new currentMap[32]
    
get_mapname(currentMap,charsmax(currentMap))

    new 
timeleft get_timeleft()

    new 
time[32]
    
get_time("Date: %d/%m/%Y|Hour: %H:%M:%S",time,charsmax(time))

    new 
iPlayers[32],iNum,i
    get_players
(iPlayers,iNum,"c")

    for(
0<= iNumi++)
    {
        new 
id iPlayers[i]
        if(!
is_user_connected(id)) continue
        
set_hudmessage(255255255, -1.00.016.01.0)
        
show_hudmessage(id"DNS: %s|Owner: %s|Map: %s|Time Left: %d:%02d|%s"hostnameownercurrentMap, (timeleft 60), (timeleft 60), time)
    }



Last edited by thekiller123; 08-09-2016 at 15:45.
thekiller123 is offline
ShooTeR XKy
Member
Join Date: Jul 2014
Location: Palestine
Old 08-09-2016 , 18:17   Re: top hud info need a [CODE]
Reply With Quote #6

Thank Y0U "thekiller123"
ShooTeR XKy 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 05:04.


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