Raised This Month: $ Target: $400
 0% 

hud and cvars


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-11-2010 , 00:13   Re: hud and cvars
Reply With Quote #9

Quote:
Originally Posted by nikhilgupta345 View Post
Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Hud"
#define VERSION "1.0"
#define AUTHOR "Omgitsme"

new timeleft
new float:timeleft2
public plugin_init()
{
    register_plugin("Hud", "1.0", "Omgitsme")
    set_task(0.9, "gettingtime", 2, _, _, "b")
    set_task(0.9, "timeleftmessage", 1, _, _, "b")
}

public gettingtime()
{
timeleft=get_timeleft()
timeleft2=timeleft/60
floatround(timeleft2, floatround_floor)
timeleft=(timeleft %60)
}

public timeleftmessage()
{    
new players[32], num, player
get_players(players, num)
for(new i;i<num;i++)
{    player=players[i]
    if(!is_user_alive(player))
    {
        set_hudmessage(255, 255, 255, 0.70, 0.0, 0, 6.0, 0.9)
        show_hudmessage(player, "Time left on this map is %i:%i", timeleft2, timeleft)
    }
}
}
I keep getting a tag mismatch error for floatround, any ideas? If that get's fixed then this is his code I guess, so don't say make your own thread plz.
Make your own thread and tell us what you are trying to do. There are several things wrong with your code.
__________________
fysiks is offline
 



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 00:17.


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