Raised This Month: $ Target: $400
 0% 

Hud Message Time ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 10-04-2014 , 06:17   Hud Message Time ?
Reply With Quote #1

I want that the hud message will be placed on the screen for 4 sec after dat it dissapear, How to do it ? plz help

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

new victimname[32]
new 
killername[32]
new 
g_Enable
new g_iSync

public plugin_init()
{
register_plugin("Grenade""1.0""")

g_Enable register_cvar("gk_enable""1"
g_iSync CreateHudSyncObj()

register_event("DeathMsg""playerDeath""a""1>0")
}

public 
playerDeath()
{
new 
killer read_data(1)
new 
victim read_data(2)
new 
weapon[8]
read_data(4weapon7)
get_user_name(killerkillername31)
get_user_name(victimvictimname31)
if (
get_pcvar_num(g_Enable) && killer != victim && equal(weapon"grenade"))
{
set_hudmessage(0255420.170.1326.012.0
ShowSyncHudMsg(0g_iSync"Message""Lol... xD %s Just Nade %s Hahah!!!"killernamevictimname
client_cmd(0"spk misc/witch")
}


Last edited by hornet; 10-05-2014 at 01:05. Reason: Post restored. It is a violation of the forum rules to blank out your post
Awesome_man 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 17:36.


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