Raised This Month: $ Target: $400
 0% 

hud and cvars


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
omgitsme
Veteran Member
Join Date: Mar 2010
Old 08-08-2010 , 07:37   hud and cvars
Reply With Quote #1

hey, 2 questions about huds
how can i make cvars show up in the hud? eg mp_timelimit sv_nextmap and stuff? is it the same as hostname? like in amxx.cfg %hostname% so %mp_timelimit% or something? and why dosen't this work?
Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

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


public plugin_init()
{
    register_plugin("Hud", "1.0", "Omgitsme")
}

public client_connect(id)
{
    if(!is_user_alive(id))
    set_hudmessage(255, 255, 255, 0.70, 0.0, 0, 6.0, 0)
    show_hudmessage(id, "Message")
}
i want it to be, so whenever the person is dead. it will show the hud message until there alive, but it dosen't show at all -_-
__________________
omgitsme is offline
Send a message via Skype™ to omgitsme
 



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