Raised This Month: $ Target: $400
 0% 

random hud text


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
sky_pg
Member
Join Date: Apr 2012
Old 06-12-2014 , 06:15   random hud text
Reply With Quote #1

im trying to get this to work but it gives me errors in game someone to help me?

PHP Code:
#include <amxmodx>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "test"

#define MAX 3
new stat_hud
new randoms

new const messages[MAX][] = 
{
    
"test",
    
"test 1",
    
"test 2"
}
public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
testmessage()
    
stat_hud CreateHudSyncObj(1)
}

public 
testmessage()
{
    
randoms random_num(0MAX)
    
set_task(10.0"testmessage")
}
public 
client_PostThink(id)
{
    if(!
is_user_connected(id))
        return
    
show_stat(id)    
}

public 
show_stat(id)
{    
    
set_hudmessage(016000.020.1402.02.0)
    
ShowSyncHudMsg(idstat_hud"%s"messages[randoms])

sky_pg is offline
 


Thread Tools
Display Modes

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 09:37.


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